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-pagesThis will create a new folder calledgempy_docsin the parent directory of the current repo. This folder will contain thegh-pagesbranch 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/htmlfolder to theVisualBayesicDocsfolder.cd ../gempy_docsThis will change the current directory to thegempy_docsfolder.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-pagesbranch.git push origin gh-pagesThis will push the changes to thegh-pagesbranch of the repo.cd ../gempyThis will change the current directory back to thegempyfolder.