Changeset - 15bba54e4eb4
[Not reviewed]
0 1 0
Brett Smith - 6 years ago 2018-01-23 14:02:47
brettcsmith@brettcsmith.org
setup: Add an [all_importers] extra for ease of installation.
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
setup.py
Show inline comments
 
#!/usr/bin/env python3
 

	
 
import itertools
 
import sys
 

	
 
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'] = [
 
    'pytest',
 
    'PyYAML',
 
    *itertools.chain(*REQUIREMENTS['extras_require'].values()),
 
    *all_extras_require,
 
]
 

	
 
setup(
0 comments (0 inline, 0 general)