set version number in setup.py, also in the config file of the documentation and init of the package
- setup.py
- gempy.init
Note: in the config for sphinx~ this is taken from gempy.init
- requirements.txt, optional_requirements.txt, dev_requirements.txt should either set minimum version and reject versions
# add new tag
$ git tag X.X -m "Add X.X tag for PyPI"
# push git tag
$ git push --tags origin master
New
# First create the dist
python -m build
# Second upload the distributions
twine upload dist/*
- ENH: Enhancement, new functionality
- BUG: Bug fix
- DOC: Additions/updates to documentation
- TST: Additions/updates to tests
- BLD: Updates to the build process/scripts
- PERF: Performance improvement
- CLN: Code cleanup
git worktree add ../gempy_docs gh-pages
This will create a new folder calledgempy_docs
in the parent directory of the current repo. This folder will contain thegh-pages
branch of the repo. This is where the docs will be pushed to.cp -r --force ./docs/build/html/* ../gempy_docs/
This will copy the contents of thedocs/build/html
folder to theVisualBayesicDocs
folder.cd ../gempy_docs
This will change the current directory to thegempy_docs
folder.git add .
This will add all the files in the current directory to the staging area.git commit -m "Update docs"
This will commit the changes to thegh-pages
branch.git push origin gh-pages
This will push the changes to thegh-pages
branch of the repo.cd ../gempy
This will change the current directory back to thegempy
folder.