| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| tierno | dfe0957 | 2018-04-24 10:41:10 +0200 | [diff] [blame] | 3 | import os |
| 4 | from setuptools import setup |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 5 | |
| 6 | _name = "osm_nbi" |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 7 | # version is at first line of osm_nbi/html_public/version |
| 8 | here = os.path.abspath(os.path.dirname(__file__)) |
| tierno | 28b0b31 | 2018-10-01 15:25:22 +0200 | [diff] [blame] | 9 | # with open(os.path.join(here, 'osm_nbi/html_public/version')) as version_file: |
| 10 | # VERSION = version_file.readline().strip() |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 11 | with open(os.path.join(here, 'README.rst')) as readme_file: |
| 12 | README = readme_file.read() |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 13 | |
| 14 | setup( |
| 15 | name=_name, |
| 16 | description='OSM North Bound Interface', |
| tierno | dfe0957 | 2018-04-24 10:41:10 +0200 | [diff] [blame] | 17 | long_description=README, |
| tierno | 28b0b31 | 2018-10-01 15:25:22 +0200 | [diff] [blame] | 18 | version_command=('git describe --match v* --tags --long --dirty', 'pep440-git-full'), |
| garciadeblas | 2f4fc96 | 2018-05-25 15:57:26 +0200 | [diff] [blame] | 19 | # version=VERSION, |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 20 | # python_requires='>3.5.0', |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 21 | author='ETSI OSM', |
| 22 | author_email='alfonso.tiernosepulveda@telefonica.com', |
| 23 | maintainer='Alfonso Tierno', |
| 24 | maintainer_email='alfonso.tiernosepulveda@telefonica.com', |
| 25 | url='https://osm.etsi.org/gitweb/?p=osm/NBI.git;a=summary', |
| 26 | license='Apache 2.0', |
| 27 | |
| tierno | dfe0957 | 2018-04-24 10:41:10 +0200 | [diff] [blame] | 28 | packages=[_name], |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 29 | include_package_data=True, |
| tierno | aa1ca7b | 2018-11-08 19:00:20 +0100 | [diff] [blame] | 30 | # exclude_package_data={'': ['osm_nbi/local', 'temp']}, |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 31 | data_files=[('/etc/osm/', ['osm_nbi/nbi.cfg']), |
| 32 | ('/etc/systemd/system/', ['osm_nbi/osm-nbi.service']), |
| 33 | ], |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 34 | dependency_links=[ |
| 35 | "git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4" |
| 36 | ], |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 37 | install_requires=[ |
| Eduardo Sousa | 819d34c | 2018-07-31 01:20:02 +0100 | [diff] [blame] | 38 | 'CherryPy', 'pymongo', 'jsonschema', 'PyYAML', 'python-keystoneclient' |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 39 | # 'osm-common', |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 40 | ], |
| garciadeblas | 2f4fc96 | 2018-05-25 15:57:26 +0200 | [diff] [blame] | 41 | setup_requires=['setuptools-version-command'], |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 42 | # test_suite='nose.collector', |
| 43 | # entry_points=''' |
| 44 | # [console_scripts] |
| 45 | # osm=osm_nbi.nbi:nbi |
| 46 | # ''', |
| 47 | ) |