Skip to content

How to create a new release

Bertrand Néron edited this page Mar 7, 2019 · 7 revisions

how to create a new release

  1. check that the version is up to date and tests are OK
    git pull
    python tests/run_tests.py -vv
    
  2. create a new branch
    git co -b branch_X.X.X
    
  3. bump version
    • in integron_finder.__init__.py
    • commit the file
  4. generate the doc (html and pdf)
    cd doc
    make html
    make latexpdf
    
  5. 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"
    
  6. fix docker file using the new release
    git add docker/Dockerfile
    git commit -m "use release X.X.X in docker"
    
  7. create a new tag
    git tag vX.X.X
    
  8. create the source distribution python setup.py sdist
  9. 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
    
  10. push the tag
    git push origin <tag_name>
    
  11. 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

Clone this wiki locally