zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
199 stars 62 forks source link

index-servers vs. index_servers #366

Open icemac opened 3 years ago

icemac commented 3 years ago

When using index-servers as suggested in the zest.releaser documentation, I get:

UserWarning: Usage of dash-separated 'index-servers' will not be supported in future versions. Please use the underscore name 'index_servers' instead

To prevent zest.releaser from uploading a package to PyPI (which was intended for a private PyPI server but had an equally named package on PyPI created by a different user) I had to use index-servers both in .pypirc and setup.cfg of the package. I am now going to switch both to index_servers and hope the best for the next release.

At least the documentation of zest.releaser could be adapted to this future warning.

mauritsvanrees commented 3 years ago

This warning does not come from from zest.releaser. Can you see where it comes from? Maybe setuptools or twine?

icemac commented 3 years ago

It comes from setuptools, but zest.releaser uses the deprecated spelling in its documentation.

icemac commented 3 years ago

Maybe it is too early for this change. twine does not support index_servers and the PyPA specification still uses the dashed version, too: https://packaging.python.org/specifications/pypirc/

Let me see what happens during the next releases I have to cut using zest.releaser. Maybe the problem lies somewhere else.