Pypi upload tool.
Project description
PySetup
Pypi 上传工具
安装
pip install pysetup --upgrade
使用流程
- 进入项目目录, 打开命令行界面
- 输入
pysetup init
创建setup.py
文件 - 修改
setup.py
文件信息 - 输入
pysetup upload t
打包并上传
命令
pysetup help
: 查看命令列表pysetup init
: 创建 setup.py 文件pysetup upload <is_clear=False>
: 打包项目上传到 pypi(https://upload.pypi.org/legacy). [is_clear: 清除上传前后的打包文件]pysetup upload_test <is_clear=False>
: 打包项目上传到 testpypi(https://test.pypi.org/legacy). [is_clear: 清除上传前后的打包文件]pysetup package
: 打包项目.pysetup clear
: 清除打包文件 (build/dist/*.egg-info).pysetup install_test <package_name>
: 从 testpypi 安装测试包.
下次更新内容
- 保存 pypi/testpypi 登陆信息
- 查看 pypi 包名是否被占用
- 注册 pypi 包名
- 直接将包安装在 python 模块中, 而非从 testpypi 下载安装测试包
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
pysetup-2019.6.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for pysetup-2019.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbec40dac3bb853cda7adfbf657ff049a2d0ea1a0d8c079ddb8a2026f5292a64 |
|
MD5 | 3e6fa758b507e24d45d7ad60a804b7b2 |
|
BLAKE2b-256 | 0f458428c9dfab73dba751424ee6e33d6c5e33eae3a6d27cb55827326fb4888d |