Setup.cfg is a proper place to setup whole thing for setuptools
example (taken from setuptools page)
# setup.py
from setuptools import setup
setup() # All details are in setup.cfg
#setup.cfg
[metadata]
name = my_package
version = attr: my_package.VERSION
author = Author Name
author_email =author.name@email.hosting
description = My package description
long_description = file: README.rst, CHANGELOG.rst, LICENSE.rst
keywords = one, two
license = BSD-3-Clause
classifiers =
Framework :: Django
Programming Language :: Python :: 3
[options]
zip_safe = False
include_package_data = True
packages = find:
python_requires = >=3.7
install_requires =
requests
importlib-metadata; python_version<"3.8"
[options.package_data]
* = *.txt, *.rst
hello = *.msg
[options.entry_points]
console_scripts =
executable-name = my_package.module:function
[options.extras_require]
pdf = ReportLab>=1.2; RXP
rest = docutils>=0.3; pack ==1.1, ==1.3
[options.packages.find]
exclude =
examples*
tools*
docs*
my_package.tests*
Setup.cfg is a proper place to setup whole thing for setuptools
example (taken from setuptools page)