From 86815002360f4792413ba4391cbbe04a1dbe5fe5 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 30 Jun 2020 16:40:30 -0400 Subject: [PATCH] Start using twine for dist uploading to PyPI (#259) --- Makefile | 12 ++++++++++-- requirements-dev.txt | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ab0bfa3e..a2051585 100644 --- a/Makefile +++ b/Makefile @@ -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)* diff --git a/requirements-dev.txt b/requirements-dev.txt index e30132f5..d7af1d66 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,3 +5,5 @@ coverage flake8 pydocstyle sphinx_autobuild +pip +twine