Skip to content

Commit 7f23fc2

Browse files
authored
chore: add release process (#332)
1 parent 2233054 commit 7f23fc2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tox.ini

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ passenv =
4141
ALGOLIA*
4242
commands = python runtests.py
4343

44+
[versions]
45+
twine = >=1.13,<2.0
46+
wheel = >=0.34,<1.0
47+
4448
[testenv:coverage]
4549
basepython = python3.8
4650
deps = coverage
@@ -61,3 +65,16 @@ commands =
6165
coverage run --branch --source=algoliasearch_django runtests.py
6266
coverage report
6367
coveralls
68+
69+
[testenv:release]
70+
basepython = python3.8
71+
deps =
72+
twine {[versions]twine}
73+
wheel {[versions]wheel}
74+
passenv =
75+
PYPI_USER
76+
PYPI_PASSWORD
77+
commands =
78+
python setup.py sdist bdist_wheel
79+
twine check dist/*
80+
twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*

0 commit comments

Comments
 (0)