-
Notifications
You must be signed in to change notification settings - Fork 1.6k
How to create a release
Tom Burrows edited this page Oct 5, 2020
·
4 revisions
- Have a local git repository, with a remote called
upstream
set to this repo usinggit add remote upstream https://github.com/Zulko/moviepy.git
Install github_changelog_generator withgem install github_changelog_generator
Create a GitHub token for running the changelog generator- Create a
.pypirc
file in your HOME folder containing
[distutils]
index-servers =
pypi
[pypi]
repository:https://pypi.python.org/pypi
username:myUsrName
password:MypasSwooord
git checkout master
git pull upstream master
- Increment version number in
version.py
-
Generate changelog withUpdate changelog manuallygithub_changelog_generator Zulko/moviepy --bug-labels bug-fix --future-release vX.X.X
- Commit version and changelog changes with
git add ...
andgit commit ...
- Push commit with
git push upstream master
- Copy
CHANGELOG.md
into a new Releases page [more info to follow] git pull upstream master
- Run
python setup.py sdist upload
to upload to PyPI Runpython setup.py build_docs
to build the docs intodocs/build/html
Copydocs/build/html
to another folder outside of your dev foldergit checkout gh-pages
Paste the docs into the dev foldergit add ...
andgit commit ...
git push upstream gh-pages
(with--force
?)