- 
        Couldn't load subscription status. 
- Fork 10
How to release
        WolfBunke edited this page Oct 27, 2018 
        ·
        4 revisions
      
    - Start a reminder issue a few days before the release and label various issues to the release. Leave this issue open until the release is done and close it with a comment to inform the other developers.
- Create a release branch. Mind the Dreissen Branching Model
- Test the examples and start in issue for non working examples.
- Use empty virtual environment e.g. virtualenv etrago_release --clear -p python3.5and install the new version from your local folder withpip3 install /home/.../.../eGo --process-dependency-links
- Start documentation of release in doc/whatsnew/ v[X]_[Y].rst
- ...
- check setup.py and add new version no.
- Merge release branch into master and dev branch.
- Create a release tag.
- Release by using the tag.
- Release via PyPI (if you don't have permissions for this repo, ask someone who does, e.g. @ulfmueller)
- The upload requires a ~/.pypircfile with your PyPI credentials. Mind this: https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html
- Make sure you are in masterbranch.
- (Use python3 setup.py sdist bdist_wheelto create the distribution)
- use twine to upload the distribution by twine upload dist/eTraGo-x.y.z.tar.gz
 
- The upload requires a 
- In case of mayor changes of the files and folder structure create or update the doc/api files for ReadtheDocs by using sphinx-apidoc -o api/ ../etrago/
- check import of packages and add in case if not 'READTHEDOCS' in os.environ: import ...
- include new release massage /news file doc/whatsnew/v[X]_[Y].rstinto/doc/whatsnew.rstby adding.. include:: whatsnew/v[X]_[Y].rst
- add new version no. of release in doc/conf.py
- In case of missing files like *.csv, *.json etc. check our setup.pyfile and add our files topackage_data
- In case of wrong installed packages and/or the use of clones and forks use dependency_linksand read A and B. If using a fork make sure the egg version number of your dependency link is different to the original e.g.#egg=pypsa-0.11.0fork
In Order to check our setup.py use https://pypi.org/project/collective.checkdocs/ or python setup.py check -r -s
rst-lint README.rst from https://github.com/twolfson/restructuredtext-lint
- Learn more on: https://packaging.python.org/guides/using-testpypi/;` pip install restructuredtext_lint`
pip3 install --index-url https://test.pypi.org/simple/ eGo --extra-index-url https://pypi.org/simple --process-dependency-links
Based on: How to release (oemof)