From 8889c4d3e071db57730500118212b59d6f1b0ff0 Mon Sep 17 00:00:00 2001 From: Takashi Matsuo Date: Fri, 11 Sep 2015 14:26:19 -0700 Subject: [PATCH] Use twine to upload the package to pypi. --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6366e77dc7f..a4b03289a72 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,9 @@ prerelease: -sudo rm -rf dist/ -rm -rf snapshot/ -sudo rm -rf snapshot/ - # ./tools/gae-zip-creator.sh python expandsymlinks.py cd snapshot; python setup.py clean - cd snapshot; python setup.py sdist --formats=gztar,zip + cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal cd snapshot; tar czf google-api-python-client-samples-$(shell python setup.py --version).tar.gz samples cd snapshot; zip -r google-api-python-client-samples-$(shell python setup.py --version).zip samples @@ -43,5 +42,5 @@ release: prerelease @echo "Are you sure you want to proceed? (yes/no)" @read yn; if [ yes -ne $(yn) ]; then exit 1; fi @echo "Here we go..." - cd snapshot; python setup.py sdist --formats=gztar,zip register upload - \ No newline at end of file + cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal + cd snapshot; twine upload dist/*