小编pba*_*nay的帖子

Test PyPI服务器的新上传URL是什么?

我正在尝试打包一个新项目并将其上传到TestPyPI服务器.由于引入了新的PyPI.org,我发现的几乎所有说明都已过时,现在尝试上传到https://testpypi.python.org/pypi401 Gone.

迁移到新PyPI.org的指南说要https://test.pypi.org/legacy用作TestPyPI的存储库.但是,当将此URL插入我的.pypirc文件并尝试上传我的包时,我收到以下错误:

python setup.py sdist upload -r testpypi
[...]
running upload
Submitting dist/<package_name> to https://test.pypi.org/legacy
Upload failed (404): Not Found
error: Upload failed (404): Not Found
Run Code Online (Sandbox Code Playgroud)

这是我的~/.pypirc文件的内容:

[distutils]
index-servers =
  pypi
  testpypi

[pypi]
repository: https://pypi.python.org/pypi
username: your_username
password: your_password

[testpypi]
repository: https://test.pypi.org/legacy
username: pbaranay
password: my_password
Run Code Online (Sandbox Code Playgroud)

python pypi python-packaging

7
推荐指数
1
解决办法
694
查看次数

pip 安装本地包到目标目录

I have a Python library that is published to PyPI. Before pushing each new version of the library, I want to test it by upgrading a sample application to use the new version.

The suggested method to do this is to work in "development mode" using the -e (--editable) flag:

$ pip install -e <my package root>
Run Code Online (Sandbox Code Playgroud)

And this does indeed install the package into my global environment.

However, my sample program is written for Google App Engine, …

python google-app-engine pip

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×2

google-app-engine ×1

pip ×1

pypi ×1

python-packaging ×1