setup.py 761 Bytes
Newer Older
1
from setuptools import setup
2
3
4
5
try:  # for pip >= 10
    from pip._internal.req import parse_requirements
except ImportError:  # for pip <= 9.0.3
    from pip.req import parse_requirements
6

7
8
9
10
11
12
13
14
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session='hack')
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs if 'sphinxcontrib.httpdomain' not in str(ir.req)]

setup(
    name='nomad',
15
    version='0.5.4',
Markus Scheidgen's avatar
Markus Scheidgen committed
16
    description='The nomad@FAIRDI infrastructure python package',
17
18
19
20
    py_modules=['nomad'],
    install_requires=reqs,
    entry_points='''
        [console_scripts]
21
        nomad=nomad.cli:run_cli
22
    ''')