Skip to content

Commit fb4d348

Browse files
committed
minor improvements to tox.ini
1 parent 12a9a3f commit fb4d348

File tree

4 files changed

+8
-27
lines changed

4 files changed

+8
-27
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pytest.xml
1313
*.py[co]
1414
*.egg-info
1515
*.sqlite
16-
dist/*
16+
dist
1717
docs/site
1818
stubs/
1919
uv.lock

.readthedocs.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

scripts/check_version.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import toml
77
from admin_extra_buttons import VERSION
88

9-
expected = toml.load(Path('pyproject.toml').open())['project']['version']
9+
expected = toml.load((Path(__file__).parent.parent / 'pyproject.toml').open())['project']['version']
10+
print("Expected version:", expected)
11+
print("Metadata version:", version('django_admin_extra_buttons'))
12+
print("Package version:", VERSION)
1013
assert VERSION == expected
1114
assert version('django_admin_extra_buttons') == expected
12-
print(VERSION)

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ setenv =
6969
TWINE_PASSWORD = {env:TWINE_TEST_PASSWORD}
7070

7171
commands =
72-
python -c "import shutil; shutil.rmtree('{work_dir}/dist', ignore_errors=True)"
73-
python -m build --sdist --outdir {work_dir}/dist
74-
pip install django-admin-extra-buttons --use-pep517 --no-deps --no-cache-dir --find-links file://{work_dir}/dist/
72+
python -c "import shutil; shutil.rmtree('{toxinidir}/dist', ignore_errors=True)"
73+
python -m build --sdist --outdir {toxinidir}/dist
74+
pip install django-admin-extra-buttons --use-pep517 --no-deps --no-cache-dir --find-links file://{toxinidir}/dist/
7575
python scripts/check_version.py

0 commit comments

Comments
 (0)