Adding upstream version 0.11.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f89f073565
commit
2f2c7f3767
146 changed files with 9553 additions and 0 deletions
30
setup.py
Normal file
30
setup.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env python
|
||||
from setuptools import setup # isort:skip
|
||||
import os
|
||||
from itertools import chain
|
||||
|
||||
try:
|
||||
# Recommended for setuptools 61.0.0+
|
||||
# (though may disappear in the future)
|
||||
from setuptools.config.setupcfg import read_configuration
|
||||
except ImportError:
|
||||
from setuptools.config import read_configuration
|
||||
|
||||
################################################################################
|
||||
# Programmatically generate some extras combos.
|
||||
################################################################################
|
||||
extras = read_configuration("setup.cfg")["options"]["extras_require"]
|
||||
|
||||
# Dev is everything
|
||||
extras["dev"] = list(chain(*extras.values()))
|
||||
|
||||
# All is everything but tests and docs
|
||||
exclude_keys = ("tests", "docs", "dev")
|
||||
ex_extras = dict(filter(lambda i: i[0] not in exclude_keys, extras.items()))
|
||||
# Concatenate all the values together for 'all'
|
||||
extras["all"] = list(chain.from_iterable(ex_extras.values()))
|
||||
|
||||
setup(
|
||||
extras_require=extras,
|
||||
use_scm_version={"write_to": os.path.join("src", "ablog", "_version.py")},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue