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