Fix Flask version in Enhanced Catalogue 94/12094/1
authorJohnKeeney <john.keeney@est.tech>
Sun, 17 Dec 2023 15:30:50 +0000 (15:30 +0000)
committerJohn Keeney <john.keeney@est.tech>
Sun, 17 Dec 2023 19:38:44 +0000 (19:38 +0000)
Change-Id: I590f5fa947d8e41056db46b08e75df6e8ba75f55
issue-ID: NONRTRIC-958
Signed-off-by: JohnKeeney <john.keeney@est.tech>
(cherry picked from commit c8890f7f4dfaca51762e04b24999ab0ef1a1c72e)

catalogue-enhanced/Dockerfile
catalogue-enhanced/setup.py
catalogue-enhanced/src/main.py
catalogue-enhanced/tox.ini

index db33be5..9939ebf 100644 (file)
 #  ============LICENSE_END=================================================
 #
 
-FROM python:3.8-slim-buster
-
-RUN pip install connexion[swagger-ui]
-
-#install nginx and curl
+FROM python:3.10-slim-buster
 RUN apt-get update && apt-get install -y nginx=1.14.* nginx-extras curl
+RUN pip install  Flask==2.2.5 connexion[swagger-ui,flask]==2.14.2
 
 WORKDIR /usr/src/app
 
index 0c82586..6f92040 100644 (file)
@@ -2,6 +2,7 @@
 
 #  ============LICENSE_START===============================================
 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
 from setuptools import setup
 
 setup(name='rappcatalogue-enhanced',
-      version='1.0.0',
+      version='1.1.0',
       description='The O-RAN Non-RT RIC rApp Catalogue Enhanced provides an OpenApi 3.0 REST API for rApp services to register/unregister themselves and discover other services',
-      maintainer='Halil Cakal',
-      maintainer_email='halil.cakal@est.tech',
       url='https://gerrit.o-ran-sc.org/r/admin/repos/nonrtric/plt/rappcatalogue,general',
       license='Apache License, Version 2.0',
       platforms='any',
index 5dda795..0f504be 100644 (file)
@@ -1,5 +1,6 @@
 #  ============LICENSE_START===============================================
 #  Copyright (C) 2022-2023 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
index e21b9b5..094c5f0 100644 (file)
@@ -17,7 +17,7 @@
 
 [tox]
 envlist = code
-minversion = 2.0
+minversion = 4.0
 skipsdist = true
 
 # basic test and coverage job
@@ -27,8 +27,8 @@ deps=
   pytest
   coverage
   pytest-cov
-  connexion
-
+  connexion==2.14.2
+  Flask==2.2.5
 setenv = TESTS_BASE_PATH = {toxinidir}/tests
 commands =
   pytest --cov-append --cov {toxinidir} --cov-report xml --cov-report term-missing --cov-report html