Custom location for .pypirc file

Srikanth picture Srikanth · Jun 15, 2016 · Viewed 11.6k times · Source

Does setuptools allow for the .pypirc file to be specified in a custom location rather than $HOME/.pypirc? I'm setting up a jenkins job to publish to an internal repository, and want the .pypirc file to be inside the job's workspace.

Answer

mattmilten picture mattmilten · Jun 19, 2017

You might want to check out twine. This tool allows you to specify a custom .pypirc file via the option --config-file