Skip to content

Instantly share code, notes, and snippets.

@marius92mc
Last active January 26, 2018 11:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marius92mc/06c44a2d10f60773a5f116afc2dc0a75 to your computer and use it in GitHub Desktop.
Save marius92mc/06c44a2d10f60773a5f116afc2dc0a75 to your computer and use it in GitHub Desktop.
  • Bump the version in setup.py

Release a new version on GitHub

  • $ git tag x.y.z -m "..."
  • To see the versions $ git tag
  • $ git push --tags origin master

Update version on PyPi

  • $ pipenv run python setup.py sdist --dist-dir dist
  • $ pipenv run twine upload --repository-url https://test.pypi.org/legacy/ dist/name-of-the-package-x.y.z.tar.gz
  • $ pipenv run twine upload --repository-url https://upload.pypi.org/legacy/ dist/name-of-the-package-x.y.z.tar.gz

https://github.com/marius92mc/github-stargazers/blob/master/setup.py

Source

It is up-to-date only until License section. http://peterdowns.com/posts/first-time-with-pypi.html

@marius92mc
Copy link
Author

pip install -U https://github.com/marius92mc/github-stargazers/archive/master.zip

Installs the version from latest master branch, by installing the zip file github provides.

Instead of pip probably it works with pipenv too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment