File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changes here will be overwritten by Copier
2
- _commit : 0.8.1
2
+ _commit : 0.9.2
3
3
_src_path : gh:pawamoy/copier-pdm
4
4
5
- author_fullname : " Timoth \xE9 e Mazzucotelli"
5
+ author_fullname : Timothée Mazzucotelli
6
6
author_username : pawamoy
7
7
copyright_date : ' 2021'
8
- copyright_holder : " Timoth \xE9 e Mazzucotelli"
8
+ copyright_holder : Timothée Mazzucotelli
9
9
copyright_holder_email :
[email protected]
10
10
copyright_license : ISC License
11
11
project_description : A legacy Python handler for mkdocstrings.
@@ -17,3 +17,4 @@ repository_name: python-legacy
17
17
repository_namespace : mkdocstrings
18
18
repository_provider : github.com
19
19
use_precommit : false
20
+
Original file line number Diff line number Diff line change 28
28
uses : actions/checkout@v2
29
29
30
30
- name : Set up PDM
31
- uses : pdm-project/setup-pdm@v2.5
31
+ uses : pdm-project/setup-pdm@v2.6
32
32
with :
33
33
python-version : " 3.8"
34
34
86
86
uses : actions/checkout@v2
87
87
88
88
- name : Set up PDM
89
- uses : pdm-project/setup-pdm@v2.5
89
+ uses : pdm-project/setup-pdm@v2.6
90
90
with :
91
91
python-version : ${{ matrix.python-version }}
92
92
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ plugins:
70
70
nav_file : SUMMARY.md
71
71
- section-index
72
72
- coverage
73
+ - section-index
73
74
- mkdocstrings :
74
75
handlers :
75
76
python :
Original file line number Diff line number Diff line change 3
3
4
4
PYTHON_VERSIONS=" ${PYTHON_VERSIONS-3.7 3.8 3.9 3.10 3.11} "
5
5
6
+ restore_previous_python_version () {
7
+ if pdm use -f " $1 " & > /dev/null; then
8
+ echo " > Restored previous Python version: ${1##*/ } "
9
+ fi
10
+ }
11
+
6
12
if [ -n " ${PYTHON_VERSIONS} " ]; then
13
+ old_python_version=" $( pdm config python.path) "
14
+ echo " > Currently selected Python version: ${old_python_version##*/ } "
15
+ trap " restore_previous_python_version ${old_python_version} " EXIT
7
16
for python_version in ${PYTHON_VERSIONS} ; do
8
17
if pdm use -f " python${python_version} " & > /dev/null; then
9
- echo " > pdm run $@ (Python ${python_version} )"
18
+ echo " > pdm run $@ (python ${python_version} )"
10
19
pdm run " $@ "
11
20
else
12
21
echo " > pdm use -f python${python_version} : Python interpreter not available?" >&2
You can’t perform that action at this time.
0 commit comments