Skip to content

Commit

Permalink
Merge pull request #412 from johnthagen/build-instructions
Browse files Browse the repository at this point in the history
Add build environment
  • Loading branch information
johnthagen committed Dec 19, 2021
2 parents 7fa01ce + 5e4a613 commit bdc9ab5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,18 @@ Django3.2 you would run:
tox -e py3.9-django3.2

The available test environments can be found in ``tox.ini``.

Publishing
==========

To build a source distribution and wheel:

::

tox -e build

To publish to PyPI:

::

tox -e upload
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,19 @@ deps =
-rrequirements-tests.txt
djongo
commands = {posargs:bash -x functional.sh}

[testenv:build]
basepython = python
skip_install = true
deps =
build
commands =
{envpython} -m build

[testenv:upload]
basepython = python
skip_install = true
deps =
twine
commands =
{envpython} -m twine upload {toxinidir}/dist/*

0 comments on commit bdc9ab5

Please sign in to comment.