Nexus上传python包
2020-12-13 15:40
标签:sdn license alpha xxxxx 代理服务 res username stat ror 参考 1.首先创建pypi仓库 其中,PyPI类的服务,支持三种: proxy,提供代理服务 hosted,提供私有包的发布服务 group,组合以上两类的多个服务到一起,通过同一个URL对外提供 首先创建pypi-proxy,指定remote storage为阿里云 创建pypi-hosted 在电脑上配置 .pypirc 安装twine 在你的工程中创建一个setup.py文件,比如这样 setup.py文件 安装 生成压缩包 上传nexus,其中nexus就是在.pypirc文件中配置 Nexus上传python包 标签:sdn license alpha xxxxx 代理服务 res username stat ror 原文地址:https://www.cnblogs.com/tonglin0325/p/11613966.htmlhttps://blog.csdn.net/m0_37607365/article/details/79998955
http://mirrors.aliyun.com/pypi
[distutils]
index-servers =
nexus
nexustest
# 要选择所建仓库中的hosted仓库
[nexus]
repository=http://nexus.fuxi.netease.com:8081/nexus/repository/pypi-hosted/
username=xxx
password=xxx
[nexustest]
repository=http://nexus.fuxi.netease.com:8081/nexus/repository/pypi-hosted/
username=xxx
password=xxx
pip install twine
import sys
if sys.version_info = 2.13.0", "urllib3 >= 1.25.3"],
classifiers=[
‘Development Status :: 3 - Alpha‘,
‘Intended Audience :: Developers‘,
‘License :: OSI Approved :: BSD License‘,
‘Operating System :: OS Independent‘,
‘Programming Language :: Python‘,
‘Programming Language :: Python :: 2‘,
‘Programming Language :: Python :: 2.6‘,
‘Programming Language :: Python :: 2.7‘,
‘Programming Language :: Python :: 3‘,
‘Programming Language :: Python :: 3.1‘,
‘Programming Language :: Python :: 3.2‘,
‘Programming Language :: Python :: 3.3‘,
‘Programming Language :: Python :: 3.4‘,
‘Programming Language :: Python :: 3.5‘,
‘Programming Language :: Python :: 3.6‘,
‘Topic :: System :: Logging‘,
]
)
python setup.py install
python setup.py sdist
twine upload -r nexus dist/*