File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -49,4 +49,5 @@ dev-dependencies = [
49
49
" flake8>=7.1.1" ,
50
50
" black>=24.10.0" ,
51
51
" pdbpp>=0.10.3" ,
52
+ " toml>=0.10.2" ,
52
53
]
Original file line number Diff line number Diff line change
1
+ # tired to have too many packaging errors
2
+ # small script to check the package is correctly installed
3
+ from pathlib import Path
4
+ from importlib .metadata import version
5
+
6
+ import toml
7
+ from admin_extra_buttons import VERSION
8
+
9
+ expected = toml .load (Path ('pyproject.toml' ).open ())['project' ]['version' ]
10
+ assert VERSION == expected
11
+ assert version ('django_admin_extra_buttons' ) == expected
12
+ print (VERSION )
Original file line number Diff line number Diff line change @@ -71,6 +71,5 @@ setenv =
71
71
commands =
72
72
python -c " import shutil; shutil.rmtree('{work_dir}/dist', ignore_errors=True)"
73
73
python -m build --sdist --outdir {work_dir}/dist
74
- pip install file://{work_dir}/dist/django_admin_extra_buttons-1.6.0.tar.gz
75
- python -c " from admin_extra_buttons import VERSION;"
76
- python -m twine upload --repository-url https://test.pypi.org/legacy/ {work_dir}/dist/*
74
+ pip install django-admin-extra-buttons --use-pep517 --no-deps --no-cache-dir --find-links file://{work_dir}/dist/
75
+ python scripts/check_version.py
You can’t perform that action at this time.
0 commit comments