Changeset 1766:eae3caeeb146


Ignore:
Timestamp:
Jan 30, 2019, 8:16:49 PM (3 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use `twine` to upload package to PyPI

According to https://truveris.github.io/articles/configuring-pypirc/ ,
twine uses the `~/.pypirc` configuration file. Note, however, that the
section `server-login` is no longer used. Instead, username and
password go in the `[pypi]` section.

Should the configuration file _not_ be picked up by twine, there's
still the possibility of setting the environment variables
`TWINE_USERNAME` and `TWINE_PASSWORD`. Of course, care must be taken
so that they're only readable/usable by the owner of the PyPI account!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r1765 r1766  
    9696# Upload package to PyPI.
    9797upload:
    98         # TODO: Use `twine`. See https://python3statement.org/practicalities/
     98        # See https://python3statement.org/practicalities/
    9999        # and https://github.com/pypa/warehouse/issues/3889 .
    100100        @echo "Uploading new version to PyPI"
    101         ${PYTHON_BINARY} setup.py sdist upload
     101        twine upload dist/ftputil-$(cat VERSION).tar.gz
    102102
    103103# Remove files with `orig` suffix (caused by `hg revert`).
Note: See TracChangeset for help on using the changeset viewer.