From 105ee405ff962254ccecdbf88a5432a909250890 Mon Sep 17 00:00:00 2001 From: Baifan Hu Date: Mon, 3 Dec 2018 10:24:22 -0400 Subject: [PATCH 1/2] update readme and fix format --- README.rst | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/README.rst b/README.rst index 7f3c39f..ddd1b81 100644 --- a/README.rst +++ b/README.rst @@ -80,12 +80,12 @@ Create a ``.pypirc`` file with your production and test server accounts in your testpypi [testpypi] - repository = https://testpypi.python.org/pypi + repository = https://test.pypi.org/legacy/ username = password = [pypi] - repository = https://pypi.python.org/pypi + repository = https://test.pypi.org/legacy/ username = password = @@ -93,18 +93,18 @@ Create a ``.pypirc`` file with your production and test server accounts in your Note that ``testpypi`` and ``pypi`` require separate registration. Testing Publication ------------------ +------------------- 1. Ensure you have tagged the master repository according to the tagging instructions above. -2. Register the package:: +2. Package source and wheel distributions:: - python setup.py register -r testpypi + python setup.py sdist bdist_wheel -3. Package source and wheel distributions:: +3. Check format:: - python setup.py sdist bdist_wheel + twine check dist/* 4. Upload to PyPI with twine:: @@ -118,16 +118,12 @@ Publishing ----------- 1. Ensure you have tagged the master repository according to the tagging -instructions above. +instructions above, testing publication before publication. -2. Register the package:: - - python setup.py register -r pypi - -3. Package source and wheel distributions:: +2. Package source and wheel distributions:: python setup.py sdist bdist_wheel -4. Upload to PyPI with twine:: +3. Upload to PyPI with twine:: twine upload dist/* -r pypi From 9391e094f48204516fa8b262bb71de4a909e5c52 Mon Sep 17 00:00:00 2001 From: Baifan Hu Date: Mon, 3 Dec 2018 10:31:22 -0400 Subject: [PATCH 2/2] update url --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index ddd1b81..4b16bad 100644 --- a/README.rst +++ b/README.rst @@ -85,7 +85,7 @@ Create a ``.pypirc`` file with your production and test server accounts in your password = [pypi] - repository = https://test.pypi.org/legacy/ + repository = https://upload.pypi.org/legacy/ username = password =