blob: 0171edb9c4894e6775909f212335c99aec8a0415 [file] [log] [blame]
Tommy Carpenter46ae0f42019-05-20 15:12:30 +00001# ==================================================================================
Tommy Carpenter839fc1e2020-03-19 08:30:39 -04002# Copyright (c) 2020 Nokia
3# Copyright (c) 2018-2020 AT&T Intellectual Property.
Tommy Carpenter46ae0f42019-05-20 15:12:30 +00004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16# ==================================================================================
Tommy Carpenterce909212019-07-31 12:44:00 -040017from os.path import dirname, abspath, join as path_join
Tommy Carpenter46ae0f42019-05-20 15:12:30 +000018from setuptools import setup, find_packages
19
Tommy Carpenterce909212019-07-31 12:44:00 -040020SETUP_DIR = abspath(dirname(__file__))
21
22
23def _long_descr():
24 """Yields the content of documentation files for the long description"""
Tommy Carpenter91aa7022019-08-14 11:03:25 -040025 try:
26 doc_path = path_join(SETUP_DIR, "docs/source/index.rst")
27 with open(doc_path) as f:
28 return f.read()
29 except FileNotFoundError: # this happens during unit testing, we don't need it
30 return ""
Tommy Carpenterce909212019-07-31 12:44:00 -040031
32
Tommy Carpenter46ae0f42019-05-20 15:12:30 +000033setup(
34 name="rmr",
Tommy Carpenter839fc1e2020-03-19 08:30:39 -040035 version="4.0.0",
Tommy Carpenter46ae0f42019-05-20 15:12:30 +000036 packages=find_packages(),
E. Scott Danielsf68c2ce2019-08-08 10:15:43 -040037 author="Tommy Carpenter, E. Scott Daniels",
Tommy Carpenter46ae0f42019-05-20 15:12:30 +000038 description="Python wrapper for RIC RMR",
39 url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/lib/rmr",
Tommy Carpenter7b7c92c2019-08-13 10:53:29 -040040 classifiers=[
41 "Development Status :: 4 - Beta",
42 "Intended Audience :: Telecommunications Industry",
43 "Programming Language :: Python :: 3",
44 "Programming Language :: Python :: 3.7",
45 "License :: OSI Approved :: Apache Software License",
46 "Operating System :: POSIX :: Linux",
47 "Topic :: Communications",
48 ],
49 python_requires=">=3.7",
50 keywords="RIC rmr",
Tommy Carpenterce909212019-07-31 12:44:00 -040051 license="Apache 2.0",
52 data_files=[("", ["LICENSE.txt"])],
Tommy Carpenter46ae0f42019-05-20 15:12:30 +000053 install_requires=[],
Tommy Carpenterce909212019-07-31 12:44:00 -040054 long_description=_long_descr(),
Lott, Christopher (cl778h)54697552019-10-03 11:39:33 -040055 long_description_content_type="text/x-rst",
Tommy Carpenter46ae0f42019-05-20 15:12:30 +000056)