File tree Expand file tree Collapse file tree 7 files changed +25
-18
lines changed Expand file tree Collapse file tree 7 files changed +25
-18
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.0
3
3
_src_path : gh:pawamoy/copier-pdm
4
4
author_email : pawamoy@pm.me
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 : pawamoy@pm.me
10
10
copyright_license : ISC License
11
11
project_description : A Python handler for mkdocstrings.
12
- project_name : Python for mkdocstrings
12
+ project_name : mkdocstrings-python
13
13
python_package_command_line_name : mkdocstrings-python
14
14
python_package_distribution_name : mkdocstrings-python
15
- python_package_import_name : mkdocstrings
15
+ python_package_import_name : mkdocstrings_handlers
16
16
repository_name : python
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 @@ -24,7 +24,7 @@ A clear and concise description of what you expected to happen.
24
24
If applicable, add screenshots to help explain your problem.
25
25
26
26
** System (please complete the following information):**
27
- - ` Python for mkdocstrings` version: [ e.g. 0.2.1]
27
+ - ` mkdocstrings-python ` version: [ e.g. 0.2.1]
28
28
- Python version: [ e.g. 3.8]
29
29
8000
td>- OS: [ Windows/Linux]
30
30
Original file line number Diff line number Diff line change 1
- # Python for mkdocstrings
1
+ # mkdocstrings-python
2
2
3
3
[ ![ ci] ( https://github.com/mkdocstrings/python/workflows/ci/badge.svg )] ( https://github.com/mkdocstrings/python/actions?query=workflow%3Aci )
4
4
[ ![ documentation] ( https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat )] ( https://mkdocstrings.github.io/python/ )
@@ -13,7 +13,7 @@ A Python handler for [mkdocstrings](https://github.com/mkdocstrings/mkdocstrings
13
13
14
14
## Requirements
15
15
16
- Python for mkdocstrings requires Python 3.7 or above.
16
+ mkdocstrings-python requires Python 3.7 or above.
17
17
18
18
<details >
19
19
<summary >To install Python 3.7, I recommend using <a href =" https://github.com/pyenv/pyenv " ><code >pyenv</code ></a >.</summary >
Original file line number Diff line number Diff line change 1
- site_name : " Python for mkdocstrings"
1
+ site_name : " mkdocstrings-python "
2
2
site_description : " A Python handler for mkdocstrings."
3
3
site_url : " https://mkdocstrings.github.io/python"
4
4
repo_url : " https://github.com/mkdocstrings/python"
@@ -70,12 +70,6 @@ plugins:
70
70
- coverage
71
71
- section-index
72
72
- mkdocstrings :
73
- handlers :
74
- python :
75
- import :
76
- - https://mkdocstrings.github.io/objects.inv
77
- rendering :
78
- show_submodules : no
79
73
watch :
80
74
- src/mkdocstrings_handlers
81
75
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ Discussions = "https://github.com/mkdocstrings/python/discussions"
44
44
Gitter = " https://gitter.im/python/community"
45
45
Funding = " https://github.com/sponsors/mkdocstrings"
46
46
47
+ [project .scripts ]
48
+ mkdocstrings-python = " mkdocstrings_handlers.cli:main"
49
+
47
50
[tool .pdm ]
48
51
version = {use_scm = true }
49
52
includes = [" src/mkdocstrings_handlers" ]
@@ -109,5 +112,5 @@ multi_line_output = 3
109
112
force_single_line = false
110
113
balanced_wrapping = true
111
114
default_section = " THIRDPARTY"
112
- known_first_party = " mkdocstrings "
115
+ known_first_party = " mkdocstrings_handlers "
113
116
include_trailing_comma = true
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
Original file line number Diff line number Diff line change 1
- """Tests suite for `mkdocstrings `."""
1
+ """Tests suite for `mkdocstrings_handlers `."""
2
2
3
3
from pathlib import Path
4
4
You can’t perform that action at this time.
0 commit comments