File tree Expand file tree Collapse file tree 4 files changed +8
-27
lines changed Expand file tree Collapse file tree 4 files changed +8
-27
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pytest.xml
1313* .py [co ]
1414* .egg-info
1515* .sqlite
16- dist / *
16+ dist
1717docs /site
1818stubs /
1919uv.lock
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66import toml
77from 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 )
1013assert VERSION == expected
1114assert version ('django_admin_extra_buttons' ) == expected
12- print (VERSION )
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ setenv =
6969 TWINE_PASSWORD = {env:TWINE_TEST_PASSWORD}
7070
7171commands =
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
You can’t perform that action at this time.
0 commit comments