-
Notifications
You must be signed in to change notification settings - Fork 26
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.syntax
orcd fluent.runtime
-
Update
setup.cfg
andCHANGELOG.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.Z
orfluent.runtime X.Y.Z
for 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.