blob: 0f3c6160d65bccce5f7f7911590c8534ff58c5ec [file] [log] [blame]
tiernoc94c3df2018-02-09 15:38:54 +01001#!/usr/bin/env python3
2
tiernodfe09572018-04-24 10:41:10 +02003import os
4from setuptools import setup
tiernoc94c3df2018-02-09 15:38:54 +01005
6_name = "osm_nbi"
tiernoa8d63632018-05-10 13:12:32 +02007# version is at first line of osm_nbi/html_public/version
8here = os.path.abspath(os.path.dirname(__file__))
tierno28b0b312018-10-01 15:25:22 +02009# with open(os.path.join(here, 'osm_nbi/html_public/version')) as version_file:
10# VERSION = version_file.readline().strip()
tiernoa8d63632018-05-10 13:12:32 +020011with open(os.path.join(here, 'README.rst')) as readme_file:
12 README = readme_file.read()
tiernoc94c3df2018-02-09 15:38:54 +010013
14setup(
15 name=_name,
16 description='OSM North Bound Interface',
tiernodfe09572018-04-24 10:41:10 +020017 long_description=README,
tierno28b0b312018-10-01 15:25:22 +020018 version_command=('git describe --match v* --tags --long --dirty', 'pep440-git-full'),
garciadeblas2f4fc962018-05-25 15:57:26 +020019 # version=VERSION,
tiernoa8d63632018-05-10 13:12:32 +020020 # python_requires='>3.5.0',
tiernoc94c3df2018-02-09 15:38:54 +010021 author='ETSI OSM',
22 author_email='alfonso.tiernosepulveda@telefonica.com',
23 maintainer='Alfonso Tierno',
24 maintainer_email='alfonso.tiernosepulveda@telefonica.com',
25 url='https://osm.etsi.org/gitweb/?p=osm/NBI.git;a=summary',
26 license='Apache 2.0',
27
tiernodfe09572018-04-24 10:41:10 +020028 packages=[_name],
tiernoc94c3df2018-02-09 15:38:54 +010029 include_package_data=True,
tiernoaa1ca7b2018-11-08 19:00:20 +010030 # exclude_package_data={'': ['osm_nbi/local', 'temp']},
tiernoc94c3df2018-02-09 15:38:54 +010031 data_files=[('/etc/osm/', ['osm_nbi/nbi.cfg']),
32 ('/etc/systemd/system/', ['osm_nbi/osm-nbi.service']),
33 ],
tiernoa8d63632018-05-10 13:12:32 +020034 dependency_links=[
35 "git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4"
36 ],
tiernoc94c3df2018-02-09 15:38:54 +010037 install_requires=[
Eduardo Sousa819d34c2018-07-31 01:20:02 +010038 'CherryPy', 'pymongo', 'jsonschema', 'PyYAML', 'python-keystoneclient'
tiernoa8d63632018-05-10 13:12:32 +020039 # 'osm-common',
tiernoc94c3df2018-02-09 15:38:54 +010040 ],
garciadeblas2f4fc962018-05-25 15:57:26 +020041 setup_requires=['setuptools-version-command'],
tiernoc94c3df2018-02-09 15:38:54 +010042 # test_suite='nose.collector',
43 # entry_points='''
44 # [console_scripts]
45 # osm=osm_nbi.nbi:nbi
46 # ''',
47)