blob: bb0a0ab1470c07a9cb3c6ad7ddfe06aa9df97ff4 [file] [log] [blame]
tiernoc0e42e22018-05-11 11:36:10 +02001#!/usr/bin/env python3
2
3import os
4from setuptools import setup
5
6_name = "osm_lcm"
7# version is at first line of osm_lcm/html_public/version
8here = os.path.abspath(os.path.dirname(__file__))
garciadeblas6b70e442018-05-25 15:50:58 +02009# VERSION = "4.0.1rc1"
tiernoc0e42e22018-05-11 11:36:10 +020010with open(os.path.join(here, 'README.rst')) as readme_file:
11 README = readme_file.read()
12
13setup(
14 name=_name,
15 description='OSM North Bound Interface',
16 long_description=README,
tierno27d003d2018-10-01 15:24:32 +020017 version_command=('git describe --match v* --tags --long --dirty', 'pep440-git-full'),
garciadeblas6b70e442018-05-25 15:50:58 +020018 # version=VERSION,
tiernoc0e42e22018-05-11 11:36:10 +020019 # 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']),
tierno8d950012018-05-22 12:27:48 +020030 ('/etc/systemd/system/', ['osm_lcm/osm-lcm.service']),
tiernoc0e42e22018-05-11 11:36:10 +020031 ],
32 dependency_links=[
33 "git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4"
34 ],
35 install_requires=[
tiernofa66d152018-08-28 10:13:45 +000036 'pymongo',
37 'PyYAML',
38 'aiohttp==0.20.2',
39 # TODO this is version installed by 'apt python3-aiohttp' on Ubuntu Sserver 14.04
40 # version installed by pip 3.3.2 is not compatible. Code should be migrated to this version and use pip3
tiernoc0e42e22018-05-11 11:36:10 +020041 # 'osm-common',
42 ],
garciadeblas6b70e442018-05-25 15:50:58 +020043 setup_requires=['setuptools-version-command'],
tiernoc0e42e22018-05-11 11:36:10 +020044 # test_suite='nose.collector',
45 # entry_points='''
46 # [console_scripts]
47 # osm=osm_lcm.lcm:lcm
48 # ''',
49)