- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
所以我创建了一个文件 ~/.pypirc
[distutils]
index-servers =
custom
[custom]
repository: https://dist.secretrepo.com/simple/
username: user
password: 12345
并在我的 requirements.txt 中添加了一个仅在我的自定义 pypi 实例上可用的包版本。但是,无论我尝试什么,它都不会拾取它?同样的设置在 linux 机器上工作正常,只是在 OS X 10.10.3 上不行。
最佳答案
不,pip
根本不使用 .pypirc
。 .pypirc
仅供将包发布到索引的工具使用,pip
不发布包。
您需要创建一个 pip.conf
file ,并添加一个全局 index-url
条目:
[global]
index-url = https://user:12345@dist.secretrepo.com/simple/
请注意,用户名和密码包含在 URL 中。
您还可以包含 --index-url
选项 in your requirements.txt
file .
关于python - 安装软件包时,OS X pip 不搜索 .pypirc?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28973513/
setuptools 是否允许在自定义位置指定 .pypirc 文件而不是 $HOME/.pypirc?我正在设置一个 jenkins 作业以发布到内部存储库,并希望 .pypirc 文件位于作业的工
我正在尝试使用 CloudPypi 设置私有(private) Pypi 云。而且我真的不想将我的密码存储在 .pypirc 中。我希望每次上传包时都提示输入我的密码。 在Python documen
我已安装 pip pypirc 并使用必要的密码设置 ~/.pypirc 文件。为什么每次调用 python setup.py 时,tine 都要求输入密码? $twine upload --re
我想在我的 ~/.pypirc 文件中有多个 PyPI 服务器,这样我就可以根据项目轻松地发布到不同的服务器。 我的用例是这样的,我有一些内部项目要发布到内部 PyPI 服务器 (https://py
这件事让我抓狂。难道不能像下面这样简单地做一些事情吗? python setup.py sdist upload --username me --password 1234 或者提示输入密码: pyt
所以我创建了一个文件 ~/.pypirc [distutils] index-servers = custom [custom] repository: https://dist.secret
我的 .pypirc 文件: [distutils] index-servers = pypi internal [pypi] username:pypiusername password:p
我正在使用 ubuntu,我已经创建了一个 python 包,它已准备好在 PyPI 上注册,但是当我使用 python setup.py register 时,它显示如下错误: Server res
我是一名优秀的程序员,十分优秀!