zestsoftware / zest.releaser

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

index-servers option in setup.cfg not working #436

Closed wesleybl closed 9 months ago

wesleybl commented 9 months ago

I have a project with the following setup.cfg:

[zest.releaser]
extra-message = [skip ci]

[distutils]
index-servers =
    nexus

But when I run fullrelease on this project, I am asked if I want to upload it to all the servers that I have registered in .pypirc.

I'm using zest.releaser 9.0.0 and python 3.11. It seems that in version 8.0.0 this worked.

wesleybl commented 9 months ago

@mauritsvanrees does this commit have anything to do with this?

https://github.com/zestsoftware/zest.releaser/commit/8aed13ae84c0206569ad4026c6ada6a83994bc2d

mauritsvanrees commented 9 months ago

@wesleybl Confirmed. Well, my commit actually tries to restore previous behaviour, but it had no influence on the part that bites you, only on the parts that try to read [zest.releaser] config from some files. Before this commit, there was a big restructuring, and some bits were lost. I am making a PR.

BTW, I have six index-servers in my ~/.pypirc, one of them named pypi, and in my bash config I have export TWINE_REPOSITORY=pypi. Then zest.releaser only uses this single index server, also with my new code.

wesleybl commented 9 months ago

BTW, I have six index-servers in my ~/.pypirc, one of them named pypi, and in my bash config I have export TWINE_REPOSITORY=pypi. Then zest.releaser only uses this single index server, also with my new code.

I tried in 9.0.0:

TWINE_REPOSITORY=nexus fullrelease

But it still asks for other repositories.

wesleybl commented 9 months ago

I tried it again and can confirm that

TWINE_REPOSITORY=nexus fullrelease

works. Cool!

mauritsvanrees commented 9 months ago

Fix released in 9.1.1. Thanks for the report!