setup: Add an [all_importers] extra for ease of installation.
This commit is contained in:
parent
6fb447a43a
commit
15bba54e4e
1 changed files with 5 additions and 2 deletions
7
setup.py
7
setup.py
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import itertools
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
@ -17,11 +16,15 @@ REQUIREMENTS = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
all_extras_require = [
|
||||||
|
req for reqlist in REQUIREMENTS['extras_require'].values() for req in reqlist
|
||||||
|
]
|
||||||
|
|
||||||
|
REQUIREMENTS['extras_require']['all_importers'] = all_extras_require
|
||||||
REQUIREMENTS['tests_require'] = [
|
REQUIREMENTS['tests_require'] = [
|
||||||
'pytest',
|
'pytest',
|
||||||
'PyYAML',
|
'PyYAML',
|
||||||
*itertools.chain(*REQUIREMENTS['extras_require'].values()),
|
*all_extras_require,
|
||||||
]
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|
Loading…
Reference in a new issue