X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fbindings%2Frmr-python%2Fsetup.py;h=ef31241709b733601fb1a325f5713e1f0254f86a;hb=c5de5c7413901b8de1da928b084a3ca2e88d490a;hp=2ea41f6f111c1dc5fc2b6ce5051e84f736d969a6;hpb=7b7c92c8a3bba11117b30b658a111d6595b146b6;p=ric-plt%2Flib%2Frmr.git diff --git a/src/bindings/rmr-python/setup.py b/src/bindings/rmr-python/setup.py index 2ea41f6..ef31241 100644 --- a/src/bindings/rmr-python/setup.py +++ b/src/bindings/rmr-python/setup.py @@ -22,14 +22,17 @@ SETUP_DIR = abspath(dirname(__file__)) def _long_descr(): """Yields the content of documentation files for the long description""" - doc_path = path_join(SETUP_DIR, "README.rst") - with open(doc_path) as f: - return f.read() + try: + doc_path = path_join(SETUP_DIR, "docs/source/index.rst") + with open(doc_path) as f: + return f.read() + except FileNotFoundError: # this happens during unit testing, we don't need it + return "" setup( name="rmr", - version="0.10.5", + version="2.1.0", packages=find_packages(), author="Tommy Carpenter, E. Scott Daniels", description="Python wrapper for RIC RMR", @@ -49,4 +52,5 @@ setup( data_files=[("", ["LICENSE.txt"])], install_requires=[], long_description=_long_descr(), + long_description_content_type="text/x-rst", )