企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 1.新建setup.py 例如 ``` from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="short-chn-yn", version="0.0.2", author="cltian", author_email="cl.tian@live.com", description="Short Chinses literal YES or NO recognition by logic", long_description=long_description, url="https://github.com/foowaa/short-chn-yn/", packages=find_packages(), classifiers=[ "Programming Language :: Python :: 3.7", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Natural Language :: Chinese (Simplified)", "Development Status :: 3 - Alpha", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], package_data = { '': ['*.txt', '*.rst'], }, keywords = "Chinese, NLP" ) ``` 详见: [http://blog.konghy.cn/2018/04/29/setup-dot-py/](http://blog.konghy.cn/2018/04/29/setup-dot-py/) [pypi classifiers](https://pypi.org/classifiers/) ### 2.pypi上新建账户 ### 3.构建上传 ```sh python setup.py register python setup.py sdist twine upload dist/* ```