Ich folgte dem Leitfaden How to submit a package to PyPI, um ein Paket einzureichen. Es throwed den Fehler unten:Wie behebt man das Problem "PyPI-Test nicht in .pypic gefunden", wenn Paket an PyPI gesendet wird?
Traceback (most recent call last): File "setup.py", line 27, in 'Programming Language :: Python', File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/usr/lib/python2.6/site-packages/setuptools/command/register.py", line 9, in run _register.run(self) File "/usr/lib64/python2.6/distutils/command/register.py", line 33, in run self._set_config() File "/usr/lib64/python2.6/distutils/command/register.py", line 84, in _set_config raise ValueError('%s not found in .pypirc' % self.repository) ValueError: PyPI-test not found in .pypirc
Meine .pypirc Datei Kontext ist:
[distutils] # this tells distutils what package indexes you can push to index-servers = PyPI # the live PyPI PyPI-test # test PyPI [PyPI] # authentication details for live PyPI repository: https://PyPI.python.org/PyPI username: {{username}} password: {{password}} [PyPI-test] # authentication details for test PyPI repository: https://testPyPI.python.org/PyPI username: {{username}}
Mein OS env ist
CentOS release 6.2 (Final)
und Python env ist
Python 2.6.6
.
Was ist der Grund und wie man es beheben kann?
Ich glaube, der entscheidende Punkt ist, wo die .pyirc-Datei gehen soll. Siehe meine Antwort unten. – Overdrivr