| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| tierno | b3cda2e | 2018-10-30 17:26:59 +0000 | [diff] [blame] | 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | # Copyright 2018 Telefonica S.A. |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 15 | # implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 18 | |
| 19 | import os |
| 20 | from setuptools import setup |
| 21 | |
| 22 | _name = "osm_lcm" |
| 23 | # version is at first line of osm_lcm/html_public/version |
| 24 | here = os.path.abspath(os.path.dirname(__file__)) |
| garciadeblas | 6b70e44 | 2018-05-25 15:50:58 +0200 | [diff] [blame] | 25 | # VERSION = "4.0.1rc1" |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 26 | with open(os.path.join(here, 'README.rst')) as readme_file: |
| 27 | README = readme_file.read() |
| 28 | |
| 29 | setup( |
| 30 | name=_name, |
| tierno | b3cda2e | 2018-10-30 17:26:59 +0000 | [diff] [blame] | 31 | description='OSM Life Cycle Management module', |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 32 | long_description=README, |
| tierno | 27d003d | 2018-10-01 15:24:32 +0200 | [diff] [blame] | 33 | version_command=('git describe --match v* --tags --long --dirty', 'pep440-git-full'), |
| garciadeblas | 6b70e44 | 2018-05-25 15:50:58 +0200 | [diff] [blame] | 34 | # version=VERSION, |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 35 | # python_requires='>3.5.0', |
| 36 | author='ETSI OSM', |
| 37 | author_email='alfonso.tiernosepulveda@telefonica.com', |
| 38 | maintainer='Alfonso Tierno', |
| 39 | maintainer_email='alfonso.tiernosepulveda@telefonica.com', |
| 40 | url='https://osm.etsi.org/gitweb/?p=osm/LCM.git;a=summary', |
| 41 | license='Apache 2.0', |
| 42 | |
| 43 | packages=[_name], |
| 44 | include_package_data=True, |
| tierno | b3cda2e | 2018-10-30 17:26:59 +0000 | [diff] [blame] | 45 | # data_files=[('/etc/osm/', ['osm_lcm/lcm.cfg']), |
| 46 | # ('/etc/systemd/system/', ['osm_lcm/osm-lcm.service']), |
| 47 | # ], |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 48 | install_requires=[ |
| tierno | b3cda2e | 2018-10-30 17:26:59 +0000 | [diff] [blame] | 49 | # 'pymongo', |
| tierno | 626e015 | 2019-11-29 14:16:16 +0000 | [diff] [blame] | 50 | 'PyYAML', |
| garciaale | 6500339 | 2020-10-21 15:21:37 -0300 | [diff] [blame] | 51 | 'aiohttp>=2.3.10', |
| 52 | 'osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common', |
| 53 | 'n2vc @ git+https://osm.etsi.org/gerrit/osm/N2VC.git#egg=n2vc', |
| gcalvino | 35be915 | 2018-12-20 09:33:12 +0100 | [diff] [blame] | 54 | 'jinja2', |
| garciaale | 6500339 | 2020-10-21 15:21:37 -0300 | [diff] [blame] | 55 | 'grpcio-tools', |
| 56 | 'grpclib', |
| tierno | fa66d15 | 2018-08-28 10:13:45 +0000 | [diff] [blame] | 57 | # TODO this is version installed by 'apt python3-aiohttp' on Ubuntu Sserver 14.04 |
| 58 | # version installed by pip 3.3.2 is not compatible. Code should be migrated to this version and use pip3 |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 59 | ], |
| garciadeblas | 6b70e44 | 2018-05-25 15:50:58 +0200 | [diff] [blame] | 60 | setup_requires=['setuptools-version-command'], |
| tierno | c0e42e2 | 2018-05-11 11:36:10 +0200 | [diff] [blame] | 61 | ) |