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
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
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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db0a7172a38b0c8629f2d723052a004eb9aec41275cd9de608fcfda2c56756a7 |
|
MD5 | ec6d71840d28fdaec16b616cd80df984 |
|
BLAKE2b-256 | 17ad5ff03bfe5162b8f6502e8e6f759a9284e793a3f56968cc5b90481bc14eb6 |
Close
Hashes for setupcfg_generator-2019.3.23-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7b19957692193503d67621c44c1a239593034900e6add278eaf929a18955df |
|
MD5 | a58062d015e02311d7d8aab0439a8bb1 |
|
BLAKE2b-256 | a9b82328ce817eb725a0e44ae9e5716b05f9b01c9bad1dd4155fe6ebada35564 |