setup.py: version_command instead of static version; added MANIFEST.in
[osm/LCM.git] / setup.py
1 #!/usr/bin/env python3
2
3 import os
4 from setuptools import setup
5
6 _name = "osm_lcm"
7 # version is at first line of osm_lcm/html_public/version
8 here = os.path.abspath(os.path.dirname(__file__))
9 # VERSION = "4.0.1rc1"
10 with open(os.path.join(here, 'README.rst')) as readme_file:
11 README = readme_file.read()
12
13 setup(
14 name=_name,
15 description='OSM North Bound Interface',
16 long_description=README,
17 version_command=('git describe --tags --long --dirty', 'pep440-git'),
18 # version=VERSION,
19 # python_requires='>3.5.0',
20 author='ETSI OSM',
21 author_email='alfonso.tiernosepulveda@telefonica.com',
22 maintainer='Alfonso Tierno',
23 maintainer_email='alfonso.tiernosepulveda@telefonica.com',
24 url='https://osm.etsi.org/gitweb/?p=osm/LCM.git;a=summary',
25 license='Apache 2.0',
26
27 packages=[_name],
28 include_package_data=True,
29 data_files=[('/etc/osm/', ['osm_lcm/lcm.cfg']),
30 ],
31 dependency_links=[
32 "git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4"
33 ],
34 install_requires=[
35 'pymongo', 'PyYAML',
36 # 'osm-common',
37 ],
38 setup_requires=['setuptools-version-command'],
39 # test_suite='nose.collector',
40 # entry_points='''
41 # [console_scripts]
42 # osm=osm_lcm.lcm:lcm
43 # ''',
44 )