Metadata-Version: 2.1
Name: hi2020
Version: 1.0.4
Summary: 一个hi问候包
Home-page: UNKNOWN
Author: happylay
License: Apache Software License
Keywords: hi2020 cli
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: click

#### 开源pypi包制作

##### 1.注册账号
```
https://pypi.org
```
##### 2.添加许可证
```
https://choosealicense.com/licenses/
```
##### 3.定义项目包结构
```
hi2020
├── LICENSE
├── MANIFEST.in
├── README.md
├── setup.py
├── src
│ └── hi2020
│     ├── __init__.py
│     ├── bin
│     │ ├── __init__.py
│     │ └── cli.py
│     ├── calculate.py
│     ├── say.py
│     └── static
│         └── hi.js
└── tests
    └── index.py
```
##### 4.安装打包工具
```
# 安装依赖
pip install setuptools
pip install wheel

# 更新依赖
python -m pip install --upgrade setuptools wheel
```
##### 5.打包代码
```
python setup.py sdist bdist_wheel
```
##### 6.安装上传工具
```
python -m pip install --upgrade twine
或
pip install --upgrade twine
```
##### 7.发布模块
```
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
或
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
```
##### 8.使用模块
```
# 安装模块
pip install hi2020

# 导入模块
from hi2020 import say

# 执行函数
say.hi()
```
##### 9.使用命令行
```
hi -h

hi hello
```

