| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| tierno | 0c01ffa | 2018-11-19 14:39:33 +0100 | [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 | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 18 | |
| tierno | dfe0957 | 2018-04-24 10:41:10 +0200 | [diff] [blame] | 19 | import os |
| tierno | 02a04c1 | 2018-11-22 15:30:13 +0000 | [diff] [blame] | 20 | from setuptools import setup, find_packages |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 21 | |
| 22 | _name = "osm_nbi" |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 23 | # version is at first line of osm_nbi/html_public/version |
| 24 | here = os.path.abspath(os.path.dirname(__file__)) |
| tierno | 28b0b31 | 2018-10-01 15:25:22 +0200 | [diff] [blame] | 25 | # with open(os.path.join(here, 'osm_nbi/html_public/version')) as version_file: |
| 26 | # VERSION = version_file.readline().strip() |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 27 | with open(os.path.join(here, 'README.rst')) as readme_file: |
| 28 | README = readme_file.read() |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 29 | |
| 30 | setup( |
| 31 | name=_name, |
| 32 | description='OSM North Bound Interface', |
| tierno | dfe0957 | 2018-04-24 10:41:10 +0200 | [diff] [blame] | 33 | long_description=README, |
| tierno | 28b0b31 | 2018-10-01 15:25:22 +0200 | [diff] [blame] | 34 | version_command=('git describe --match v* --tags --long --dirty', 'pep440-git-full'), |
| garciadeblas | 2f4fc96 | 2018-05-25 15:57:26 +0200 | [diff] [blame] | 35 | # version=VERSION, |
| tierno | a8d6363 | 2018-05-10 13:12:32 +0200 | [diff] [blame] | 36 | # python_requires='>3.5.0', |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 37 | author='ETSI OSM', |
| 38 | author_email='alfonso.tiernosepulveda@telefonica.com', |
| 39 | maintainer='Alfonso Tierno', |
| 40 | maintainer_email='alfonso.tiernosepulveda@telefonica.com', |
| 41 | url='https://osm.etsi.org/gitweb/?p=osm/NBI.git;a=summary', |
| 42 | license='Apache 2.0', |
| 43 | |
| tierno | 02a04c1 | 2018-11-22 15:30:13 +0000 | [diff] [blame] | 44 | packages=find_packages(exclude=["temp", "local"]), |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 45 | include_package_data=True, |
| tierno | aa1ca7b | 2018-11-08 19:00:20 +0100 | [diff] [blame] | 46 | # exclude_package_data={'': ['osm_nbi/local', 'temp']}, |
| tierno | 0c01ffa | 2018-11-19 14:39:33 +0100 | [diff] [blame] | 47 | # data_files=[('/etc/osm/', ['osm_nbi/nbi.cfg']), |
| 48 | # ('/etc/systemd/system/', ['osm_nbi/osm-nbi.service']), |
| 49 | # ], |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 50 | install_requires=[ |
| tierno | b7e42f0 | 2019-09-03 07:24:17 +0000 | [diff] [blame] | 51 | 'CherryPy==18.1.2', |
| tierno | 454c30b | 2020-02-05 12:43:44 +0000 | [diff] [blame] | 52 | 'osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common', |
| preethika.p | 329b818 | 2020-04-22 12:25:39 +0530 | [diff] [blame] | 53 | 'jsonschema==3.2.0', |
| tierno | 0c01ffa | 2018-11-19 14:39:33 +0100 | [diff] [blame] | 54 | 'PyYAML', |
| tierno | 454c30b | 2020-02-05 12:43:44 +0000 | [diff] [blame] | 55 | 'osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git#egg=osm-im', |
| Eduardo Sousa | 29933fc | 2018-11-14 06:36:35 +0000 | [diff] [blame] | 56 | 'python-keystoneclient', |
| tierno | 970093c | 2019-10-17 14:24:58 +0000 | [diff] [blame] | 57 | 'requests', |
| tierno | 454c30b | 2020-02-05 12:43:44 +0000 | [diff] [blame] | 58 | 'aiohttp>=2.3.10', |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 59 | ], |
| garciadeblas | 2f4fc96 | 2018-05-25 15:57:26 +0200 | [diff] [blame] | 60 | setup_requires=['setuptools-version-command'], |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 61 | ) |