2 # -*- coding: utf-8 -*-
4 # Copyright 2018 Telefonica S.A.
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 from setuptools
import setup
, find_packages
23 # version is at first line of osm_nbi/html_public/version
24 here
= os
.path
.abspath(os
.path
.dirname(__file__
))
25 # with open(os.path.join(here, 'osm_nbi/html_public/version')) as version_file:
26 # VERSION = version_file.readline().strip()
27 with
open(os
.path
.join(here
, 'README.rst')) as readme_file
:
28 README
= readme_file
.read()
32 description
='OSM North Bound Interface',
33 long_description
=README
,
34 version_command
=('git describe --match v* --tags --long --dirty', 'pep440-git-full'),
36 # python_requires='>3.5.0',
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',
44 packages
=find_packages(exclude
=["temp", "local"]),
45 include_package_data
=True,
46 # exclude_package_data={'': ['osm_nbi/local', 'temp']},
47 # data_files=[('/etc/osm/', ['osm_nbi/nbi.cfg']),
48 # ('/etc/systemd/system/', ['osm_nbi/osm-nbi.service']),
51 "git+https://osm.etsi.org/gerrit/osm/IM.git#egg=osm-im",
52 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common'
60 'python-keystoneclient'
62 setup_requires
=['setuptools-version-command'],