Skip to content

Commit 5e4a613

Browse files
committed
Add build environment
1 parent 7fa01ce commit 5e4a613

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,18 @@ Django3.2 you would run:
200200
tox -e py3.9-django3.2
201201

202202
The available test environments can be found in ``tox.ini``.
203+
204+
Publishing
205+
==========
206+
207+
To build a source distribution and wheel:
208+
209+
::
210+
211+
tox -e build
212+
213+
To publish to PyPI:
214+
215+
::
216+
217+
tox -e upload

tox.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,19 @@ deps =
6363
-rrequirements-tests.txt
6464
djongo
6565
commands = {posargs:bash -x functional.sh}
66+
67+
[testenv:build]
68+
basepython = python
69+
skip_install = true
70+
deps =
71+
build
72+
commands =
73+
{envpython} -m build
74+
75+
[testenv:upload]
76+
basepython = python
77+
skip_install = true
78+
deps =
79+
twine
80+
commands =
81+
{envpython} -m twine upload {toxinidir}/dist/*

0 commit comments

Comments
 (0)