this is two project.
Project description
Python Package Template
📦 一个快速搭建 Python Package 的模版~
使用方法
-
点击本项目右上角的绿色按钮
Use this template
(使用此模板),输入名称和说明,完成创建。 -
将项目克隆到本地,这里以本项目为例,实际操作时这里需要替换你自己的项目。
git clone https://github.com/HaveTwoBrush/python-package-template.git --depth 1
-
修改配置,文件中有提示。
cd python-package-template # 将下文中的 your_package_name 改成你的实际项目名称 mv package_name your_package_name # 接下来修改 `setup.py` 中的参数,里面有提示。 # 最后修改 `README.md` 为你的项目介绍,也就是你当前在读的这个文本。
-
编写你的 Package 代码。
-
上传到 PyPi(需要注册)。
bash upload_pypi.sh
-
更新到 Github。
git push
文件目录
.
├── package_name # 你需要手动修改为你的项目名称
│ ├── shell # 在命令行中执行的代码
│ │ ├── __init__.py
│ │ └── usage.py
│ ├── src # 静态资源
│ │ └── temp.txt
│ └── version.py # 版本号
├── setup.py # 安装配置
├── requirements.txt # 依赖
├── README.md # 项目文档
├── LICENSE # 这里面的内容为本项目的 License,你需要手动替换它。
├── .gitignore
└── upload_pypi.sh # 上传到 PyPi 的工具
许可
参考
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
two-0.0.1.tar.gz
(3.4 kB
view hashes)