Start using twine for dist uploading to PyPI (#259)

This commit is contained in:
Roman Mogylatov 2020-06-30 16:40:30 -04:00 committed by GitHub
parent 17621d9fd7
commit 8681500236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -67,6 +67,12 @@ check:
pydocstyle src/dependency_injector/
pydocstyle examples/
test-publish: cythonize
# Create distributions
python setup.py sdist
# Upload distributions to PyPI
twine upload --repository testpypi dist/dependency-injector-$(VERSION)*
publish: cythonize
# Merge release to master branch
git checkout master
@ -75,5 +81,7 @@ publish: cythonize
# Create and upload tag
git tag -a $(VERSION) -m 'version $(VERSION)'
git push --tags
# Create and upload build
python setup.py sdist upload
# Create distributions
python setup.py sdist
# Upload distributions to PyPI
twine upload dist/dependency-injector-$(VERSION)*

View File

@ -5,3 +5,5 @@ coverage
flake8
pydocstyle
sphinx_autobuild
pip
twine