1letter
(Jan)
May 23, 2024, 12:33pm
1
Is it possible to use zest.releaser without upload the packages to pypi.org ? I can comment out the index-servers in my .pypirc
, yes. But is there an option to do this via commandline? fullrelease -upload-to-repository=XYZ
Background: sometimes i will upload a package to my own pypi repository server, but not to pypi.org .
my .pipyrc file:
[distutils]
index-servers =
pypi
testpypi
local
[pypi]
username: __token__
password:XXX
[testpypi]
repository:https://test.pypi.org/legacy/
username:__token__
password:XXX
[local]
repository:http://pypi.local
username:pypi-local
password:XXX
[zest.releaser]
upload-pypi:false
gforcada
(gforcada)
May 23, 2024, 4:38pm
2
We are using gocept.zestreleaser.customupload
for that
alert
(Alessandro Pisa)
May 24, 2024, 6:27am
3
I usually do it using the TWINE_REPOSITORY
variable, e.g.:
TWINE_REPOSITORY=pypi.example.com fullrelease
You can also use the global options at a project level with a setup.cfg
file.
https://zestreleaser.readthedocs.io/en/latest/options.html#per-project-options
[tool.zest-releaser]
upload-pypi = false
Alternatively you can restrict uploads to a specific server:
https://zestreleaser.readthedocs.io/en/latest/uploading.html#pypi-configuration-file-pypirc
Note that since version 3.15, zest.releaser also looks for this information in the setup.cfg
if your package has that file.
[distutils]
index-servers =
local
1letter
(Jan)
May 24, 2024, 2:32pm
5
Thats what i'm looking for. Thanks!