[__pkginfo/setup] move logilab-constraints to extras for nogecode (#9343431)

authorArthur Lutz <arthur.lutz@logilab.fr>
changeset04bcb2070ee7
branchdefault
phasedraft
hiddenyes
parent revision#1b0072446a14 Do not set uidrel if RHS of the relation is not a constant.
child revision<not specified>
files modified by this revision
__pkginfo__.py
setup.py
# HG changeset patch
# User Arthur Lutz <arthur.lutz@logilab.fr>
# Date 1481191365 -3600
# Thu Dec 08 11:02:45 2016 +0100
# Node ID 04bcb2070ee74d31d1fa2b3f42179e1b21b5f7f5
# Parent 1b0072446a14dcea566c150012e4bec3bce4bc26
[__pkginfo/setup] move logilab-constraints to extras for nogecode (#9343431)

diff --git a/__pkginfo__.py b/__pkginfo__.py
@@ -88,9 +88,14 @@
1 
2  install_requires = [
3      'logilab-common >= 0.47.0',
4      'logilab-database >= 1.6.0',
5      'yapps2 >= 2.2.0', # XXX to ensure we don't use the broken pypi version
6 -    'logilab-constraint >= 0.5.0', # fallback if the gecode compiled module is missing
7      'six >= 1.4.0',
8      'setuptools',
9      ]
10 +nogecode_requires = [
11 +    'logilab-constraint >= 0.5.0', # fallback if the gecode compiled module is missing
12 +    ]
13 +extra_requires = {
14 +   'nogecode' : install_requires + nogecode_requires
15 +    }
diff --git a/setup.py b/setup.py
@@ -75,10 +75,11 @@
16      license=pkginfo['license'],
17      # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
18      classifiers=pkginfo.get('classifiers', []),
19      packages=find_packages(exclude=['contrib', 'docs', 'test*']),
20      install_requires=pkginfo.get('install_requires'),
21 +    extras_require=pkginfo.get('extra_requires'),
22      tests_require=pkginfo.get('tests_require'),
23      scripts=pkginfo.get('scripts', []),
24      ext_modules=pkginfo.get('ext_modules'),
25      cmdclass={'build_ext':MyBuildExt},
26      **kwargs