0f5c60dd5b2538320077c922c4fdef5d32d00657
[ric-plt/sdlpy.git] / ricsdl-package / setup.py
1 # Copyright (c) 2019 AT&T Intellectual Property.
2 # Copyright (c) 2018-2019 Nokia.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 #
17 # This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 # platform project (RICP).
19 #
20
21 """Setup script of Shared Data Layer (SDL) package."""
22
23 from os.path import dirname, abspath, join as path_join
24 from setuptools import setup, find_packages
25 from ricsdl import __version__
26
27 SETUP_DIR = abspath(dirname(__file__))
28
29
30 def _long_descr():
31     """Yields the content of documentation files for the long description"""
32     try:
33         doc_path = path_join(SETUP_DIR, "README.md")
34         with open(doc_path) as file:
35             return file.read()
36     except FileNotFoundError:  # this happens during unit testing, we don't need it
37         return ""
38
39
40 setup(
41     name="ricsdl",
42     version=__version__,
43     packages=find_packages(exclude=["tests.*", "tests"]),
44     author="Timo Tietavainen",
45     author_email='timo.tietavainen@nokia.com',
46     license='Apache 2.0',
47     description="Shared Data Layer (SDL) provides a high-speed interface to access shared storage",
48     url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/sdlpy",
49     classifiers=[
50         "Development Status :: 4 - Beta",
51         "Intended Audience :: Telecommunications Industry",
52         "Programming Language :: Python :: 3",
53         "Programming Language :: Python :: 3.7",
54         "License :: OSI Approved :: Apache Software License",
55         "Operating System :: POSIX :: Linux",
56     ],
57     python_requires=">=3.7",
58     keywords="RIC SDL",
59     install_requires=[
60         'setuptools',
61         'redis==4.1.1',
62         'hiredis==2.0.0'
63     ],
64     long_description=_long_descr(),
65     long_description_content_type="text/markdown",
66 )