pip3 install setuptools
pip3 install wheel
pip3 install twine
setup.py
from setuptools import setup
setup(
name='pytest_assume',
version='1.0.0',
description='A print test for PyPI',
author='winsrh',
author_email='win@163.com',
url='https://www.python.org/',
license='MIT',
keywords='ga nn',
project_urls={
'Documentation': 'https://packaging.python.org/tutorials/distributing-packages/',
'Funding': 'https://donate.pypi.org',
'Source': 'https://github.com/pypa/sampleproject/',
'Tracker': 'https://github.com/pypa/sampleproject/issues',
},
packages=['pytest_assume'], # 包名
python_requires='>=3'
)
- 打包 tar.gz 源码包
python setup.py sdist
- 打包 whl 包
python setup.py bdist_wheel
/<项目目录>/dist/pytest_assume-1.0.0-py3-none-any.whl
/<项目目录>/dist/pytest_assume-1.0.0.tar.gz
twine upload dist/*