Skip to main content

A small example package

Project description

mypk1

测试项目

常用脚本

#上传
python -m twine upload --repository testpypi dist/*

打包安装上传流程

测试环境

  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 --extra-index-url https://test.pypi.org/simple/ mypk1
  7. 卸载 pip uninstall mypk1

正式环境

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypk1-0.0.3.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

mypk1-0.0.3-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page