setup.cfg generator
Project description
Install
$ [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
Functions
function | __doc__ |
---|---|
setupcfg_generator.create(path='setup.cfg') |
create setup.cfg |
Cli
usage | __doc__ |
---|---|
python -m setupcfg_generator [path] |
create setup.cfg |
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
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
Built Distribution
Close
Hashes for setupcfg-generator-2019.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e6f27960a756d44655cdc48f0a6e9531d831af8d0b31f2dd9f7017624b31b5 |
|
MD5 | f5cb2c13ad928998cbb5a743d687dfd3 |
|
BLAKE2b-256 | 3adc0d4dbf0b3c7153668aec5364b7f8fe7e032ee5a87acf29a5c39b5fdf2d2d |
Close
Hashes for setupcfg_generator-2019.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0f9f670e1f7ee670fe3f949ca90f96616499ea9f12208fa3715f4b660209e4 |
|
MD5 | 735327256e51aa28d8cd1789aeb8f785 |
|
BLAKE2b-256 | 9f2d5ff9816da84a3df0bbd09bb1740870f78896772bd6396842d84afc2e46e8 |