pypi 提交记录

pypi打包
目录结构

 

 

1. 创建setup.py 文件,内容如下
import setuptools

with open("README.md", "r") as fh:
    long_description = fh.read()

setuptools.setup(
    name="pyjsonec",
    version="0.0.1",
    author="Anran",
    author_email="1978529954@qq.com",
    description="InterfaceUseCaseParameterExplosion",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/Duchongc/pyjsonec",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires='>=3.6',
)
2.编写代码逻辑
 
3.打包
python3 setup.py sdist bdist_wheel
4.推送到pypi(需要自己注册账号)
pip install twine
python3 -m twine upload dist/*
 

posted @ 2021-03-06 17:02  绝世老中医  阅读(64)  评论(0编辑  收藏  举报