| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import os |
| 4 | from setuptools import setup |
| 5 | |
| 6 | _name = "osm_lcm" |
| 7 | # version is at first line of osm_lcm/html_public/version |
| 8 | here = os.path.abspath(os.path.dirname(__file__)) |
| garciadeblas | 6b70e44 | 2018-05-25 15:50:58 +0200 | [diff] [blame] | 9 | # VERSION = "4.0.1rc1" |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 10 | with open(os.path.join(here, 'README.rst')) as readme_file: |
| 11 | README = readme_file.read() |
| 12 | |
| 13 | setup( |
| 14 | name=_name, |
| 15 | description='OSM North Bound Interface', |
| 16 | long_description=README, |
| Mike Marchetti | ae5c74b | 2018-10-05 14:18:34 -0400 | [diff] [blame] | 17 | version_command=('git describe --tags --long --dirty --match v*', 'pep440-git'), |
| garciadeblas | 6b70e44 | 2018-05-25 15:50:58 +0200 | [diff] [blame] | 18 | # version=VERSION, |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 19 | # python_requires='>3.5.0', |
| 20 | author='ETSI OSM', |
| 21 | author_email='alfonso.tiernosepulveda@telefonica.com', |
| 22 | maintainer='Alfonso Tierno', |
| 23 | maintainer_email='alfonso.tiernosepulveda@telefonica.com', |
| 24 | url='https://osm.etsi.org/gitweb/?p=osm/LCM.git;a=summary', |
| 25 | license='Apache 2.0', |
| 26 | |
| 27 | packages=[_name], |
| 28 | include_package_data=True, |
| 29 | data_files=[('/etc/osm/', ['osm_lcm/lcm.cfg']), |
| tierno | 8d95001 | 2018-05-22 12:27:48 +0200 | [diff] [blame] | 30 | ('/etc/systemd/system/', ['osm_lcm/osm-lcm.service']), |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 31 | ], |
| 32 | dependency_links=[ |
| 33 | "git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4" |
| 34 | ], |
| 35 | install_requires=[ |
| 36 | 'pymongo', 'PyYAML', |
| 37 | # 'osm-common', |
| 38 | ], |
| garciadeblas | 6b70e44 | 2018-05-25 15:50:58 +0200 | [diff] [blame] | 39 | setup_requires=['setuptools-version-command'], |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 40 | # test_suite='nose.collector', |
| 41 | # entry_points=''' |
| 42 | # [console_scripts] |
| 43 | # osm=osm_lcm.lcm:lcm |
| 44 | # ''', |
| 45 | ) |