blob: 3e17a5af0d7d98522dd24f40027db5ba8c088e37 [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__))
9with open(os.path.join(here, 'osm_nbi/html_public/version')) as version_file:
10 VERSION = version_file.readline().strip()
11with 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,
tiernoc94c3df2018-02-09 15:38:54 +010018 # version_command=('git describe --tags --long --dirty', 'pep440-git'),
tiernodfe09572018-04-24 10:41:10 +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,
30 data_files=[('/etc/osm/', ['osm_nbi/nbi.cfg']),
31 ('/etc/systemd/system/', ['osm_nbi/osm-nbi.service']),
32 ],
tiernoa8d63632018-05-10 13:12:32 +020033 dependency_links=[
34 "git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4"
35 ],
tiernoc94c3df2018-02-09 15:38:54 +010036 install_requires=[
tiernoa8d63632018-05-10 13:12:32 +020037 'CherryPy', 'pymongo', 'jsonschema', 'PyYAML',
38 # 'osm-common',
tiernoc94c3df2018-02-09 15:38:54 +010039 ],
tiernodfe09572018-04-24 10:41:10 +020040 # setup_requires=['setuptools-version-command'],
tiernoc94c3df2018-02-09 15:38:54 +010041 # test_suite='nose.collector',
42 # entry_points='''
43 # [console_scripts]
44 # osm=osm_nbi.nbi:nbi
45 # ''',
46)
tiernodfe09572018-04-24 10:41:10 +020047