A useful module
Project description
关于 pypi-demo
这是统一制品库 pypi 协议的测试工程,大家可以使用这个工程体验 Python 制品构建、上传和下载。
声明
社区在 2022年 1 月 1 日 已不再支持 Python2,这里使用 Python3 演示。
使用方法
配置
在本地 ~/.pypirc 文件中写入
[pypi]
repository: http://localhost:8888/artifact/repositories/simple/
username: admin
password: adminTest2022
本地启动 artifacts 应用后默认监听 8888 端口,默认使用 simple 库。如测试联调环境,请将 localhost 替换成联调环境 ip 即可(下载时命令行参加追加 --trusted-host [联调环境ip])。
构建
python3 -m build
上传
python3 -m twine upload dist/*
下载
python3 -m pip download example-pypi-package==0.0.1 -i http://localhost:8888/artifact/repositories/simple/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for example-package-pypi-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 094b39c9fd70f4c335ed912ba0a06a4023dc195824f94aed2fbe6f276602783d |
|
MD5 | e1cd691ce7f594cefc7e4945949de9ea |
|
BLAKE2b-256 | a7edca9ffeb456f2f38fb92b3e9e76f2485f0a2503012c2fd5346302c7206d64 |
Close
Hashes for example_package_pypi-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a18baf66cc7d27fddf373ce0c9ebcd3e0df67c540b6fd323e9e9e90c41e361b |
|
MD5 | 994d07b248c0fa8b7c101a73c9ac5195 |
|
BLAKE2b-256 | 6b81a3e4a928da1a702152ccfe9b7845dc6bda80343571d4b2cb4472040e0659 |