This document is only relevant for maintainers of openPMD-viewer. It explains how to create a new release. In future versions of this packages, some of the steps below will be automatized.
Make sure that your local environment is ready for a full release on PyPI and conda. In particular:
- you should install the package
twine
. - you should have a registered account on PyPI and test PyPI, and your
$HOME
should contain a file.pypirc
which contains the following text:
[distutils]
index-servers=
pypitest
pypi
[pypitest]
repository = https://testpypi.python.org/pypi
username = <yourPypiUsername>
[pypi]
repository = https://pypi.python.org/pypi
username = <yourPypiUsername>
- you should have a registered account on Anaconda.org
-
Make sure that the version number in
openpmd_viewer/__version__.py
correspond to the new release, and that the corresponding changes have been documented inCHANGELOG.md
. -
Create a new release through the graphical interface on Github
The code will be automatically uploaded to PyPI upon creation of a new release on Github.