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 |
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 projects
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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3025da379e43e9176498a6808426785cd252136ef9ced563b45838d28a80c0 |
|
MD5 | bff093fbd03eed3b8167c30277611430 |
|
BLAKE2b-256 | 08d16d0b2792c73187d70e26124e98d722a3686614b2dd25968dabb21314c0f2 |
Close
Hashes for setupcfg_generator-2019.3.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c28681e7b6509b9b4830d64109dfc3eefef2755039c54c7b53be7da3a358c66 |
|
MD5 | 2fff15b8d4cf73a59e9a25b9a5221ad5 |
|
BLAKE2b-256 | 5ca1212bfe31528f3589cc6a98f9d8564a76c183509ab7a2a8a2899906522539 |