- update these files / replace the
-template
name- pyproject.toml
- CHANGELOG.md
- readthedocs.yml
- .python-version
- .github/workflows/publish-to-pypi.yml
- .envrc
- .bumpversion.cfg
- bibt/template/* [change name of dir!]
- docs/modules/template.rst [change name of file!]
- docs/conf.py
- docs/index.rst
- docs/template.rst [change name of file!]
pyenv virtualenv 3.11.2 bibt-template
pyenv local bibt-template
pip install -r requirements-dev.txt
- Create github project
git init
pre-commit install
git remote add origin git@github-work:broadinstitute/bibt-template.git
git branch -M main
git add . && git commit -m "init commit"
git push -u origin main
- Create pypi project
- Add github to pypi project
- workflow:
publish-to-pypi.yml
- env:
publish
- workflow:
- Create protected branch rule in github
- Create publish environment in github project
- Add protections for publish environment
- branch: main
- tags:
v[0-9]*.[0-9]*.[0-9]*
- Create readthedocs project
git add && git commit -m "init deploy"
bumpversion patch
git push && git push --tags
- remember to add dependencies to BOTH
pyproject.toml
andrequirements.txt
- Developer: Matthew OBrien
- Email: mobrien@broadinstitute.org
- Project URL: https://pypi.org/project/bibt-template/
- Project Repo: https://github.com/broadinstitute/bibt-template
- Project Documentation: https://bibt-template.readthedocs.io/en/latest/
$ pip install --upgrade bibt-template
- See documentation here: https://bibt-template.readthedocs.io/en/latest/