setup.cfg generator
Project description
Installation
$ [sudo] pip install setupcfg-generator
Features
[metadata] |
files/environment variables |
---|---|
name |
current directory basename or $NAME |
classifiers |
classifiers.txt , $CLASSIFIERS |
description |
description.txt , $DESCRIPTION |
keywords |
keywords.txt , $KEYWORDS |
long_description |
README.md /README.rst , $LONG_DESCRIPTION |
long_description_content_type |
text/markdown if long_description is .md file |
version |
version.txt , $VERSION |
url |
$URL |
[options] |
files/environment variables |
---|---|
install_requires |
requirements.txt |
packages |
setuptools.find_packages() result, folders with __init__.py |
py_modules |
python files in a current directory |
scripts |
bin/* or scripts/* files |
files can be in the current directory or any subdirectory
Examples
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
Related
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for setupcfg-generator-2020.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c007d5e8d8cc27da999b740a24c741fc2e383321f1e83a702e099340e38d023e |
|
MD5 | eb109bc3b49a57af3bf003de0c60ce18 |
|
BLAKE2b-256 | ef4a7d584020cc08692f539b13db0122bb71dc51c1771ea3bea5fd7e994e9a0d |