aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2023-10-16 12:48:39 +0200
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2023-10-18 08:20:50 +0200
commit302843649277556deb8fb885213283f866e90ae8 (patch)
treeb2270e9a757898d14f8be47a9e9879daf72a71fa
parentb9b646a6fdaad61cb239ef99a9b52c75ec22db99 (diff)
Remove Python 3.7 support
Python 3.7 version is end of life Issue-ID: TEST-404 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ia41a7029d03098e03c26ed227aeee18bbb6be9c0
-rw-r--r--README.md12
-rw-r--r--docs/development.rst4
-rw-r--r--setup.cfg6
-rw-r--r--tox.ini2
4 files changed, 13 insertions, 11 deletions
diff --git a/README.md b/README.md
index 20c2f94..3ca49a4 100644
--- a/README.md
+++ b/README.md
@@ -22,8 +22,8 @@ $ pip install onapsdk
## Development
-Before you start, ensure you have Python installation in version 3.7 or higher.
-Please see [the official Python documentation](https://docs.python.org/3/using/index.html)
+Before you start, ensure you have Python installation in version 3.8 or higher.
+Please see [the official Python documentation](https://docs.python.org/3/using/index.html)
in case you have to upgrade or install certain Python version.
### Setting up development environment
@@ -90,13 +90,13 @@ OS (3.7, 3.8, 3.9). To limit execution to only specific version of Python interp
use the following example:
```
-$ tox -e py37
+$ tox -e py38
```
### Integration testing
It is possible to run integration tests using [mock-servers](https://gitlab.com/Orange-OpenSource/lfn/onap/mock_servers)
-project.
+project.
Make sure Docker Compose is available on your system. Install required dependencies:
```
$ pip install pytest mock
@@ -107,8 +107,8 @@ Go to *integration_tests/* directory and execute:
$ docker-compose up
```
Please note that *docker-compose* attempts to create subnet 172.20.0.0/24, so it can not be run if the scope is already allocated.
-Also, containers are not reachable by their IP addresses on Windows host since
-Docker for Windows [does not support](https://docs.docker.com/desktop/networking/#known-limitations-for-all-platforms)
+Also, containers are not reachable by their IP addresses on Windows host since
+Docker for Windows [does not support](https://docs.docker.com/desktop/networking/#known-limitations-for-all-platforms)
bridged network interface for Linux containers.
Once containers are running, execute the following in the project's directory:
diff --git a/docs/development.rst b/docs/development.rst
index 107970d..7140ef6 100644
--- a/docs/development.rst
+++ b/docs/development.rst
@@ -80,12 +80,12 @@ execute *tox*:
$ tox
Please note that the above runs unit tests on all major versions of Python available on your
-OS (3.7, 3.8, 3.9). To limit execution to only specific version of Python Interpreter,
+OS (3.8, 3.9). To limit execution to only specific version of Python Interpreter,
use the following example:
.. code:: shell
- $ tox -e py37
+ $ tox -e py38
Integration testing
-------------------
diff --git a/setup.cfg b/setup.cfg
index 48986d9..5206f2c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -10,13 +10,15 @@ author = Orange OpenSource
license = Apache 2.0
classifiers =
Programming Language :: Python :: 3
- Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
+ Programming Language :: Python :: 3.9
+ Programming Language :: Python :: 3.10
+ Programming Language :: Python :: 3.11
[options]
zip_safe = False
include_package_data = True
-python_requires = >=3.7,<4
+python_requires = >=3.8,<4
package_dir=
=src
packages=find_namespace:
diff --git a/tox.ini b/tox.ini
index 8e757f9..ebbb348 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py37,py38,py39,pylint,pydocstyle,bandit
+envlist = py38,py39,pylint,pydocstyle,bandit
[testenv]
commands = pytest tests/