Skip to main content

ulang programming.

Reason this release was yanked:

当前木兰重现项目仅支持 python3.7。建议用conda等安装python3.7环境使用。如有特别需要使用其他python版本,请在repo(issue链接)建issue反馈并告知细节,谢谢。

Project description

Python Package Template

📦 一个快速搭建 Python Package 的模版。

使用方法

  1. 点击本项目右上角的绿色按钮 Use this template(使用此模板),输入名称和说明,完成创建;

  2. 将项目克隆到本地,这里以本项目为例,实际操作时这里需要替换你自己的项目;

    git clone https://github.com/HaveTwoBrush/python-package-template.git --depth 1
    
  3. 修改配置,文件中有提示;

    cd python-package-template
    
    # 1. 将下文中的 your_package_name 改成你的实际项目名称
    mv package_name your_package_name
    
    # 2. 接下来修改 `setup.py /package_name/shell/usage.py`中的参数,里面有提示。
    
    # 3. 最后 `README.md` 修改为你的项目介绍,也就是你当前在读的这个文本。
    
  4. 编写你的 Package 代码;

  5. 上传到 PyPi(需要注册),参考如何发布自己的包到 pypi

    bash upload_pypi.sh
    
  6. 更新到 Github。

    git push
    

项目结构

.
├── package_name # 你需要手动修改为你的项目名称
│   ├── shell # 在命令行中执行的代码
│   │   ├── __init__.py
│   │   └── usage.py
│   ├── src # 静态资源
│   │   └── temp.txt
│   └── version.py # 版本号
├── setup.py # 安装配置
├── requirements.txt # 包依赖
├── requirements_dev.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

ulang-0.0.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

ulang-0.0.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page