-
Couldn't load subscription status.
- Fork 30
Publishing to PyPI
Axel Hecht edited this page May 20, 2020
·
10 revisions
python-fluent hosts the code of the following packages available on PyPI:
To publish new versions, first follow the setup instructions for twine and for the .pypirc file.
For either package:
-
From the root, ensure correct file permissions:
$ git ls-tree --full-tree --name-only -r HEAD | xargs chmod ugo+r $ find . -type d | xargs chmod ugo+x -
If you normally use a different umask, set umask to 000:
$ umask 000 -
cd fluent.syntaxorcd fluent.runtime -
Update
setup.cfgandCHANGELOG.rst. -
Commit and push. One of:
$ git commit -m "fluent.pygments X.Y.Z" $ git commit -m "fluent.syntax X.Y.Z" $ git commit -m "fluent.runtime X.Y.Z"Then
$ git push -
Draft a new release on GitHub.
- Use
[email protected]or[email protected]for the tag name - Use
fluent.syntax X.Y.Zorfluent.runtime X.Y.Zfor the release title. - Copy the relevant part of the CHANGELOG.
- Use
-
Publish:
$ rm -rf *.egg-info build dist $ python setup.py sdist bdist_wheel $ twine upload dist/XXX.tar.gz dist/XXX.whl # the new packages you just created
Up to version 0.10, the fluent.syntax module used to be published as fluent on PyPI. That package is still available but shouldn't be updated any more.