Skip to content

Commit fa130de

Browse files
update docs
1 parent c4351f7 commit fa130de

File tree

2 files changed

+87
-2
lines changed

2 files changed

+87
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To update a release of a Python package, you'll typically go through the followi
8888

8989
5. Tag the commit with the version number:
9090
```shell
91-
git tag -a v0.1.1 -m "Release version 0.1.1"
91+
git tag -a v0.1.3 -m "Release version 0.1.3"
9292
git push --tags
9393
```
9494

@@ -99,7 +99,7 @@ Run the build module from the root of the project where the `pyproject.toml` fil
9999
This command will generate distribution files in the newly created `dist/` directory within your project. You will find both a source archive (`.tar.gz`) and a wheel file (`.whl`).
100100
```shell
101101
pip install build
102-
python -m build --version 0.1.2
102+
python -m build --version 0.1.3
103103
```
104104

105105

tox.ini

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[tox]
2+
requires =
3+
tox>=4.2
4+
env_list =
5+
fix
6+
py312
7+
py311
8+
py310
9+
py39
10+
py38
11+
py37
12+
type
13+
docs
14+
pkg_meta
15+
skip_missing_interpreters = true
16+
17+
[testenv]
18+
description = run the tests with pytest under {envname}
19+
package = wheel
20+
wheel_build_env = .pkg
21+
extras =
22+
testing
23+
pass_env =
24+
PYTEST_*
25+
SSL_CERT_FILE
26+
set_env =
27+
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}}
28+
commands =
29+
pytest {tty:--color=yes} {posargs: --no-cov-on-fail --cov-context=test \
30+
--cov={envsitepackagesdir} --cov={toxinidir}{/}tests --cov-config={toxinidir}{/}pyproject.toml \
31+
--cov-report=term-missing:skip-covered --cov-report=html:{envtmpdir}{/}htmlcov \
32+
--cov-report=xml:{toxworkdir}{/}coverage.{envname}.xml --junitxml={toxworkdir}{/}junit.{envname}.xml \
33+
tests}
34+
labels = test
35+
36+
[testenv:fix]
37+
description = run formatter and linters
38+
skip_install = true
39+
deps =
40+
pre-commit>=3.5
41+
pass_env =
42+
{[testenv]passenv}
43+
PROGRAMDATA
44+
commands =
45+
pre-commit run --all-files --show-diff-on-failure {tty:--color=always} {posargs}
46+
47+
[testenv:type]
48+
description = run type check on code base
49+
deps =
50+
mypy==1.7.1
51+
set_env =
52+
{tty:MYPY_FORCE_COLOR = 1}
53+
commands =
54+
mypy src --strict
55+
mypy tests --strict
56+
57+
[testenv:docs]
58+
description = build documentation
59+
extras =
60+
docs
61+
commands =
62+
sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html {posargs} -W
63+
python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")'
64+
65+
[testenv:pkg_meta]
66+
description = check that the long description is valid
67+
skip_install = true
68+
deps =
69+
build[virtualenv]>=1.0.3
70+
check-wheel-contents>=0.6
71+
twine>=4.0.2
72+
commands =
73+
python -m build -o {envtmpdir} -s -w .
74+
twine check --strict {envtmpdir}{/}*
75+
check-wheel-contents --no-config {envtmpdir}
76+
77+
[testenv:dev]
78+
description = dev environment with all deps at {envdir}
79+
package = editable
80+
extras =
81+
docs
82+
testing
83+
commands =
84+
python -m pip list --format=columns
85+
python -c "print(r'{envpython}')"

0 commit comments

Comments
 (0)