diff options
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | docs/development.rst | 4 | ||||
-rw-r--r-- | setup.cfg | 6 | ||||
-rw-r--r-- | tox.ini | 2 |
4 files changed, 13 insertions, 11 deletions
@@ -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 ------------------- @@ -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: @@ -1,5 +1,5 @@ [tox] -envlist = py37,py38,py39,pylint,pydocstyle,bandit +envlist = py38,py39,pylint,pydocstyle,bandit [testenv] commands = pytest tests/ |