Skip to main content

mypk1

测试项目

打包安装上传流程

安装相关工具

## 打包工具
python -m pip install --upgrade setuptools wheel
## 打包工具2
python -m pip install --upgrade build
## 上传工具twine
python -m pip install --upgrade twine

准备工作

到https://test.pypi.org/simple/和 https://pypi.org/project注册相关账号,并将token分别保存到`~/.pypirc`

测试环境

  1. 编译打包方式一 这里打两种包sdist打包为tar.gz,bdist_wheel打包为whl python setup.py sdist bdist_wheel
  2. 编译打包方式二 也是打包为两个包,作用一样 python -m build
  3. 使用本地包安装 python -m pip install ./dist/mypk1-0.0.3.tar.gz
  4. twine上传 python -m twine upload --repository testpypi dist/*
  5. 从远程安装 pip install -i https://test.pypi.org/simple/ mypk1 pip install -i https://test.pypi.org/simple/ mypk1==0.0.1 pip install -i https://test.pypi.org/simple/ mypk1==0.0.2
  6. 升级安装 pip install --upgrade -i https://test.pypi.org/simple/ mypk1
  7. 卸载 pip uninstall mypk1

正式环境

  1. 上传 python -m twine upload --repository pypi dist/*
  2. 安装 pip install -i https://pypi.org/project mypk1

Metadata

Release files for mypk1 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mypk1 0.0.6
File Size Uploaded
mypk1-0.0.6.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mypk1 0.0.6
File Interpreter ABI Platform
mypk1-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / mypk1-0.0.6.tar.gz

Download URL mypk1-0.0.6.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f252bff6353ceee8bc1af426b7a49b22338ce8e29919db00c17c430f00b71eea
BLAKE2b-256 checksum
How to use checksums
7ba20d48c77448a2d7e8b3e48698ab6785d69803e861b7180ea0e2e1e57f7519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.56.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7

Release files / mypk1-0.0.6-py3-none-any.whl

Download URL mypk1-0.0.6-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
580ecc999db2daaa242aed3d89afed39c0b798c0239550277d4fdc84d346b676
BLAKE2b-256 checksum
How to use checksums
21892c66b8aa1d3bc0c428ccc76bf6b00819290c7622e69f1b8e9c92b8b885f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.56.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page