学习如何构建python模块,并打包上传pypi
Project description
# -!- coding: utf-8 -!-
# 这是我尝试进行构建的第一个python包
# 配置文件的优先级 setup.py < MANIFEST.in < setup.cfg
#创建.pypirc # windows的用户文件夹目录为: # C:UsersAdministrator.pypirc # .pypirc内容: # # [distutils] # index-servers = pypi # # [pypi] # username: 用户名 # password: 密码
#python setup.py register
#本地打包 #python setup.py sdist build #python setup.py bdist_wheel –universal
#上传到pypi #python setup.py sdist upload #python setup.py bdist_wheel upload
#或者使用twine上传,先安装twine # pip install twine #
rm -rf src/hello_python_demo_demo.egg-info dist build && python setup.py sdist build && python setup.py bdist_wheel –universal twine upload dist/*
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
Hashes for hello_python_demo-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0451048a7c4c34cae326d7343f2f026cbc59448fc73c7288316bf7097dcc1e75 |
|
MD5 | f757a7833e645895c34fc7fdcd18c068 |
|
BLAKE2b-256 | c70d0cba79582d2ca844ee46a4ae82abdb76e2f6866dd7f07c49ceecd462043e |