Skip to content
Falk Herwig edited this page Nov 19, 2017 · 3 revisions

Updating the PyPI version

  1. clone the repo
  2. make sure there is a .pypirc file in the home directory. See below. User and passwd information are on the NuGrid for Members plone page
  3. make a GitHub release on the GitHub page
  4. update setup.py file
    • editing for example the version number to match the GitHub repo release
    • uncomment line long_description=...
  5. create README.rst file if README.md has been updated pandoc --from=markdown --to=rst --output=README.rst README.md
  6. test upload python setup.py sdist upload -r pypitest and check on https://testpypi.python.org/pypi/NuGridpy
  7. upload for real python setup.py sdist upload -r pypi and check on https://pypi.python.org/pypi/NuGridpy

Additional info:

.pypirc file:

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
username: nugridcollaboration2007
password: Mesadotpy24000

[pypitest]
repository: https://test.pypi.org/legacy/ 
username: 
password: 
Clone this wiki locally