Skip to content

Commit 17fbd08

Browse files
rename shell command to pyo3-stubgen (#11)
- cli is now `pyo3-stubgen MODULENAME OUTPUTLOCATION` to avoid conflicts when mypy is also installed - fixed a bug in optional dependencies `[cov]`
1 parent c7367fc commit 17fbd08

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.3.0 - rename shell command to `pyo3-stubgen`
4+
5+
- cli is now `pyo3-stubgen MODULENAME OUTPUTLOCATION` to avoid conflicts when mypy is also installed
6+
37
## v0.2.0 - command line interface
48

59
- added a cli `stubgen MODULENAME OUTPUTLOCATION`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Install via pip:
2727
Easiest from the command line:
2828

2929
```sh
30-
(.venv)/projectroot$ stubgen MODULENAME OUTPUTLOCATION
30+
(.venv)/projectroot$ pyo3-stubgen MODULENAME OUTPUTLOCATION
3131
```
3232

33-
See `stubgen --help` for more details
33+
See `pyo3-stubgen --help` for more details
3434

3535
Alternatively via the python API. See [the docs](https://musicalninjas.github.io/pyo3-stubgen) for more details.
3636

__pyversion__

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0
1+
0.3.0

docs/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Install via pip:
2626
Easiest from the command line:
2727

2828
```sh
29-
(.venv)/projectroot$ stubgen MODULENAME OUTPUTLOCATION
29+
(.venv)/projectroot$ pyo3-stubgen MODULENAME OUTPUTLOCATION
3030
```
3131

32-
??? tip "`stubgen --help`"
32+
??? tip "`pyo3-stubgen --help`"
3333
```text
3434
Generate a `.pyi` file for MODULENAME and store it under the project root OUTPUTLOCATION.
3535

@@ -45,11 +45,14 @@ Easiest from the command line:
4545

4646
Example:
4747

48-
`stubgen pypkg.rustlib python` creates `./python/pypkg/rustlib.pyi`
48+
`pyo3-stubgen pypkg.rustlib python` creates `./python/pypkg/rustlib.pyi`
4949
```
5050

5151
Alternatively via the python API. See [the docs](https://musicalninjas.github.io/pyo3-stubgen) for more details.
5252

53+
??? note "Changes"
54+
- v0.3.0: renamed shell command to `pyo3-stubgen`
55+
5356
## Issues, Bugs, Ideas
5457

5558
Please contribute on github [MusicalNinjas/pyo3-stubgen](https://github.com/MusicalNinjas/pyo3-stubgen).

pyo3_stubgen/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ def _stubgen(modulename: str, outputlocation: Path) -> None: # noqa: D417
9898
9999
Example:
100100
101-
`stubgen pypkg.rustlib python` creates `./python/pypkg/rustlib.pyi`
101+
`pyo3-stubgen pypkg.rustlib python` creates `./python/pypkg/rustlib.pyi`
102102
""" # noqa: D412
103103
genfile(modulename, outputlocation)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
version = { file = "__pyversion__" }
2929

3030
[project.scripts]
31-
stubgen = "pyo3_stubgen:generate._stubgen"
31+
pyo3-stubgen = "pyo3_stubgen:generate._stubgen"
3232

3333
# ===========================
3434
# Build, package
@@ -47,7 +47,7 @@
4747
[project.optional-dependencies]
4848
lint = ["ruff"]
4949
test = ["pytest", "pytest-doctest-mkdocstrings"]
50-
cov = ["pyigen[test]", "pytest-cov"]
50+
cov = ["pyo3-stubgen[test]", "pytest-cov"]
5151
doc = ["black", "mkdocs", "mkdocstrings[python]", "mkdocs-material"]
5252
dev = ["pyo3-stubgen[lint,test,cov,doc]"]
5353

0 commit comments

Comments
 (0)