Tommy Carpenter | 21f659c | 2020-02-26 14:12:54 -0500 | [diff] [blame] | 1 | # ================================================================================== |
| 2 | # Copyright (c) 2020 Nokia |
| 3 | # Copyright (c) 2020 AT&T Intellectual Property. |
| 4 | # |
| 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 Carpenter | 99a0b48 | 2020-03-03 10:21:24 -0500 | [diff] [blame] | 17 | from os.path import dirname, abspath, join as path_join |
Tommy Carpenter | 21f659c | 2020-02-26 14:12:54 -0500 | [diff] [blame] | 18 | from setuptools import setup, find_packages |
| 19 | |
Tommy Carpenter | 99a0b48 | 2020-03-03 10:21:24 -0500 | [diff] [blame] | 20 | SETUP_DIR = abspath(dirname(__file__)) |
| 21 | |
| 22 | |
| 23 | def _long_descr(): |
| 24 | """Yields the content of documentation files for the long description""" |
| 25 | try: |
| 26 | doc_path = path_join(SETUP_DIR, "docs/overview.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 "" |
| 31 | |
| 32 | |
Tommy Carpenter | 21f659c | 2020-02-26 14:12:54 -0500 | [diff] [blame] | 33 | setup( |
| 34 | name="ricxappframe", |
Lott, Christopher (cl778h) | 37f008e | 2020-06-22 16:16:48 -0400 | [diff] [blame^] | 35 | version="1.2.1", |
Tommy Carpenter | 21f659c | 2020-02-26 14:12:54 -0500 | [diff] [blame] | 36 | packages=find_packages(exclude=["tests.*", "tests"]), |
Lott, Christopher (cl778h) | 37f008e | 2020-06-22 16:16:48 -0400 | [diff] [blame^] | 37 | author="O-RAN Software Community", |
Lott, Christopher (cl778h) | f55e4d8 | 2020-04-10 16:02:11 -0400 | [diff] [blame] | 38 | description="Xapp and RMR framework for python", |
Tommy Carpenter | 21f659c | 2020-02-26 14:12:54 -0500 | [diff] [blame] | 39 | url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/xapp-frame-py", |
Tommy Carpenter | 3a6ac01 | 2020-04-06 14:42:57 -0400 | [diff] [blame] | 40 | install_requires=["msgpack", "mdclogpy", "ricsdl>=2.0.3,<3.0.0"], |
Tommy Carpenter | 99a0b48 | 2020-03-03 10:21:24 -0500 | [diff] [blame] | 41 | classifiers=[ |
| 42 | "Development Status :: 4 - Beta", |
| 43 | "Intended Audience :: Telecommunications Industry", |
| 44 | "Programming Language :: Python :: 3", |
Tommy Carpenter | 99a0b48 | 2020-03-03 10:21:24 -0500 | [diff] [blame] | 45 | "License :: OSI Approved :: Apache Software License", |
| 46 | "Operating System :: POSIX :: Linux", |
| 47 | "Topic :: Communications", |
| 48 | ], |
| 49 | python_requires=">=3.7", |
| 50 | keywords="RIC xapp", |
| 51 | license="Apache 2.0", |
| 52 | data_files=[("", ["LICENSE.txt"])], |
| 53 | long_description=_long_descr(), |
| 54 | long_description_content_type="text/x-rst", |
Tommy Carpenter | 21f659c | 2020-02-26 14:12:54 -0500 | [diff] [blame] | 55 | ) |