Skip to content

Latest commit

 

History

History
96 lines (84 loc) · 2.19 KB

RELEASING.md

File metadata and controls

96 lines (84 loc) · 2.19 KB

Releasing clld/glottolog

  1. Check out master and pull the latest changes:
git checkout master
git pull origin master
  1. Check the tree and references running
glottolog check

making sure there are no ÈRRORs

Also run

glottolog index

and commit up-to-date languoid index pages.

Merging the BibTeX files

  1. Update automatically created files:
    • iso6393.bib: Run glottolog isobib
    • evobib.bib: Run glottolog evobib
    • benjamins.bib:
      • Switch to the clone of clld/benjamins
      • Pull the latest changes via FTP
      • Recreate benjamins.bib, running python to_bib.py
      • Switch back to clld/glottolog
      • Run glottolog copy_benjamins PATH/TO/benjamins/benjamins.bib
  2. Run glottolog bib to create build/monster-utf8.bib
  3. Add the release to CHANGES.md
  4. Run git commit -a -m"release <version>"
  5. Run git tag -a v<version> -m "release <version>"
  6. Push all changes to origin.

Releasing

  1. Add release notes to CHANGES.md
  2. Draft a new release running
git commit -a -m"release <version>"
git tag -a v<version> -m "release <version>"

and have it picked up by ZENODO by turning the tag into a "proper" release on GitHub. 11. Add DOI badge from ZENODO as soon as it becomes available.

Releasing pyglottolog

  • Make sure the tests pass:

    tox -r
    
  • Make sure flake8 passes:

    flake8 pyglottolog
    
  • Change version to the new version number in

    • setup.py
    • pyglottolog/__init__.py
  • Bump version number:

    git commit -a -m "release pyglottolog <version>"
    
  • Create a release tag:

    git tag -a pyglottolog-<version> -m "first version to be released on pypi"
    
  • Release to PyPI:

    git checkout tags/v$1
    rm dist/*
    python setup.py sdist bdist_wheel
    twine upload dist/*
    
  • Push to github:

    git push origin
    git push --tags
    
  • Increment version number and append .dev0 to the version number for the new development cycle:

    • pyglottolog/__init__.py
    • setup.py
  • Commit/push the version change:

    git commit -a -m "bump version for development"
    git push origin