Steps:
-
Change the version in the files
dse_do_utils.version.py
to something like0.2.0
. (setup.py
and/docs/source/conf.py
now automatically gets it fromversion.py
)` Update the CHANGELOG.md (version and release date) -
Regenerate the documentation with
make html
(seedocs/doc_readme.md
). Open Terminal (Alt+F12),cd docs
, run
make clean
make html
If Powershell:cmd.exe /c make html
Or first switch to classic cmd usingcmd
. Note that if you added/removed modules, you first need to re-run the sphinx command:sphinx-apidoc -f -o source/ ../dse_do_utils/
-
For PyPI, build the wheel file. a. Delete all files in
./dist
b. Open Terminal, from root, run
python setup.py sdist bdist_wheel
-
Upload to PyPI (from PyCharm terminal run):
twine upload dist/* --verbose
Enter username and password when prompted. (For TestPyPI use:twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose
)
Before the twine upload, you can check the distribution with:
twine check dist/*
-
For JFrog, run
setup.py
with the following arguments:
python setup.py sdist bdist_wheel upload -r local
(This is in the saved PyCharm run configurationsetup_egg_wheel_artifactory
) -
From GitGui, commit into beta branch and push into git repo. Then either:
- In GitHub do a pull-request from the beta into the master, or
- In GitGui, switch to master and merge from beta branch. Then push into GitHub. (In case we need to resolve conflicts.)
-
In GitHub, create a new release with a tag like v0.2.0
-
In GitGui, make a new branch
v0.2.1b
-
Change the versions in
dse_do_utils.version.py
to the next beta version, e.g.0.2.1b