Skip to content

Commit 29605f8

Browse files
Use twine to check generated package and readme
The setup.py check command is deprecated. Use twine check instead. Rename the tox environment to packaging, it now checks the package.
1 parent 7f2ad72 commit 29605f8

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,4 @@ jobs:
216216
python -m pip install --upgrade tox
217217
218218
- name: Test with tox
219-
run: tox -e docs,style,readme
219+
run: tox -e docs,style,packaging

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = django-debug-toolbar
33
version = 3.2.1
44
description = A configurable set of panels that display various debug information about the current request/response.
55
long_description = file: README.rst
6+
long_description_content_type = text/x-rst
67
author = Rob Hudson
78
author_email = [email protected]
89
url = https://github.com/jazzband/django-debug-toolbar

tox.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist =
33
docs
44
style
5-
readme
5+
packaging
66
py{36,37}-dj{22,31,32}-sqlite
77
py{38,39}-dj{22,31,32,main}-sqlite
88
py{36,37,38,39}-dj{22,31,32}-{postgresql,mysql}
@@ -74,9 +74,14 @@ deps =
7474
isort>=5.0.2
7575
skip_install = true
7676

77-
[testenv:readme]
78-
commands = python setup.py check -r -s
79-
deps = readme_renderer
77+
[testenv:packaging]
78+
commands =
79+
python setup.py sdist bdist_wheel
80+
twine check --strict dist/*
81+
deps =
82+
readme_renderer
83+
twine
84+
wheel
8085
skip_install = true
8186

8287
[gh-actions]

0 commit comments

Comments
 (0)