跳转到主要内容

setup.cfg 生成器

项目描述

安装

$ [sudo] pip install setupcfg-generator

功能

[metadata] 环境变量
名称 当前目录基本名或 $NAME
分类器 classifiers.txt, $CLASSIFIERS
描述 description.txt, $DESCRIPTION
关键字 keywords.txt, $KEYWORDS
长描述 README.md/README.rst, $LONG_DESCRIPTION
长描述内容类型 text/markdown 如果 long_description.md 文件
版本 version.txt, $VERSION
网址 $URL
[options] 环境变量
install_requires requirements.txt
setuptools.find_packages()结果,带有 __init__.py 的文件夹
py_modules 当前目录中的Python文件
脚本 bin/*scripts/* 文件

文件可以位于当前目录或任何子目录

示例

project-name.py/
├── bin
|   └── script
├── classifiers.txt
├── description.txt
├── subfolder/keywords.txt
├── requirements.txt
├── module.py
├── package
|   └── __init__.py
├── README.md
├── scripts
|   └── script
├── setup.py
├── subfolder/version.txt
$ cd path/to/project-name.py
$ export URL="https://github.com/owner/repo"
$ python -m setupcfg_generator
$ cat setup.cfg
[metadata]
name = project-name
version = 1.0.0
url = https://github.com/owner/repo
classifiers = file: classifiers.txt
description = file: description.txt
long_description = file: README.md
long_description_content_type = text/markdown
keywords = key1 key2

[options]
install_requires =
    req1
    req2
packages =
    pkgname
py_modules =
    module
scripts =
    bin/script
    scripts/script

相关

readme42.com

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

setupcfg-generator-2020.12.3.tar.gz (3.2 kB 查看哈希值)

上传时间

由以下提供支持

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误日志StatusPageStatusPage状态页