-
Notifications
You must be signed in to change notification settings - Fork 22
How to create a new release
Bertrand Néron edited this page Mar 7, 2019
·
7 revisions
- check that the version is up to date and tests are OK
git pull python tests/run_tests.py -vv
- create a new branch
git co -b branch_X.X.X
- bump version
- in integron_finder.__init__.py
- commit the file
- generate the doc (html and pdf)
cd doc make html make latexpdf
- add new singularity file using the new release and add it to repos
git add singularity/Singularity.X.X.X git commit -m "add singularity definition file for release X.X.X"
- fix docker file using the new release
git add docker/Dockerfile git commit -m "use release X.X.X in docker"
- create a new tag
git tag vX.X.X
- create the source distribution
python setup.py sdist
- upload the new release
- on pypy:
twine upload dist/integron_finder-x.x.x.tar.gz
- on pypytest:
twine upload --repository-url https://test.pypi.org/legacy/ dist/integron_finder-x.x.x.tar.gz
- on pypy:
- push the tag
git push origin <tag_name>
- build and push the docker image
cd docker docker login --username=yourhubusername docker build -f Dockerfile.ext -t gempasteur/integron_finder:tagname . docker push gempasteur/integron_finder:tagname
12 check if Singularity image is building https://www.singularity-hub.org/collections/1314