Skip to content

How to create a release

Tom Burrows edited this page Oct 5, 2020 · 4 revisions

One-time setup

  • Have a local git repository, with a remote called upstream set to this repo using git add remote upstream https://github.com/Zulko/moviepy.git
  • Install github_changelog_generator with gem 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

Pushing a new release

  • git checkout master
  • git pull upstream master
  • Increment version number in version.py
  • Generate changelog with github_changelog_generator Zulko/moviepy --bug-labels bug-fix --future-release vX.X.X Update changelog manually
  • Commit version and changelog changes with git add ... and git 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
  • Run python setup.py build_docs to build the docs into docs/build/html
  • Copy docs/build/html to another folder outside of your dev folder
  • git checkout gh-pages
  • Paste the docs into the dev folder
  • git add ... and git commit ...
  • git push upstream gh-pages (with --force?)
Clone this wiki locally