File tree Expand file tree Collapse file tree 6 files changed +10
-36
lines changed Expand file tree Collapse file tree 6 files changed +10
-36
lines changed Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier
2- _commit : 0.9.3
2+ _commit : 0.9.6
33_src_path : gh:pawamoy/copier-pdm
4455author_fullname : Timothée Mazzucotelli
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ jobs:
105105 key : tests-cache-${{ runner.os }}-${{ matrix.python-version }}
106106
107107 - name : Install dependencies
108- run : pdm install -G duty -G tests -G numpy-style
108+ run : pdm install --no-editable - G duty -G tests -G numpy-style
109109
110110 - name : Run the test suite
111111 run : pdm run duty test
Original file line number Diff line number Diff line change @@ -57,17 +57,14 @@ As usual:
57571 . create a new branch: ` git checkout -b feature-or-bugfix-name `
58581 . edit the code and/or the documentation
5959
60- If you updated the documentation or the project dependencies:
61-
62- 1 . run ` make docs-regen `
63- 1 . run ` make docs-serve ` ,
64- go to http://localhost:8000 and check that everything looks good
65-
6660** Before committing:**
6761
68621 . run ` make format ` to auto-format the code
69631 . run ` make check ` to check everything (fix any warning)
70641 . run ` make test ` to run the tests (fix any issue)
65+ 1 . if you updated the documentation or the project dependencies:
66+ 1 . run ` make docs-serve `
67+ 1 . go to http://localhost:8000 and check that everything looks good
71681 . follow our [ commit message convention] ( #commit-message-convention )
7269
7370If you are unsure about how to fix or ignore a warning,
Original file line number Diff line number Diff line change 99
1010Load Python objects documentation.
1111
12- ## Requirements
13-
14- pytkdocs requires Python 3.7 or above.
15-
16- <details >
17- <summary >To install Python 3.7, I recommend using <a href =" https://github.com/pyenv/pyenv " ><code >pyenv</code ></a >.</summary >
18-
19- ``` bash
20- # install pyenv
21- git clone https://github.com/pyenv/pyenv ~ /.pyenv
22-
23- # setup pyenv (you should also put these three lines in .bashrc or similar)
24- export PATH=" ${HOME} /.pyenv/bin:${PATH} "
25- export PYENV_ROOT=" ${HOME} /.pyenv"
26- eval " $( pyenv init -) "
27-
28- # install Python 3.7
29- pyenv install 3.7.12
30-
31- # make it available globally
32- pyenv global system 3.7.12
33- ```
34- </details >
35-
3612## Installation
3713
3814With ` pip ` :
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ pytkdocs = "pytkdocs.cli:main"
5656[tool .pdm ]
5757version = {use_scm = true }
5858package-dir = " src"
59+ editable-backend = " editables"
5960
6061[tool .pdm .dev-dependencies ]
6162duty = [" duty>=0.7" ]
@@ -75,7 +76,6 @@ format = [
7576 " isort>=5.10" ,
7677]
7778maintain = [
78- # TODO: remove this section when git-changelog is more powerful
7979 " git-changelog>=0.4" ,
8080]
8181quality = [
Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ restore_previous_python_version() {
2121}
2222
2323if [ -n " ${PYTHON_VERSIONS} " ]; then
24- old_python_version=" $( pdm config python.path) "
25- echo " > Currently selected Python version: ${old_python_version##*/ } "
26- trap " restore_previous_python_version ${old_python_version} " EXIT
24+ if old_python_version=" $( pdm config python.path 2> /dev/null) " ; then
25+ echo " > Currently selected Python version: ${old_python_version##*/ } "
26+ trap " restore_previous_python_version ${old_python_version} " EXIT
27+ fi
2728 for python_version in ${PYTHON_VERSIONS} ; do
2829 if pdm use -f " python${python_version} " & > /dev/null; then
2930 echo " > Using Python ${python_version} interpreter"
You can’t perform that action at this time.
0 commit comments