diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 78a014db5182ec6eea25d45714af8b713a57b32f..cb86d9da02ec4e8597385b49f95bfd084cc7a5a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python37:$CI_COMMIT_SHORT_SHA # minimum supported version + image: $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python39:$CI_COMMIT_SHORT_SHA # minimum supported version # Make sure each step is executed in a virtual environment with some basic dependencies present before_script: - python --version # For debugging @@ -26,7 +26,7 @@ stages: variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" -build_test_image_python37: +build_test_image_python39: stage: image image: docker services: @@ -36,8 +36,8 @@ build_test_image_python37: before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - - docker build -t $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python37:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile.ci_python37 docker - - docker push $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python37:$CI_COMMIT_SHORT_SHA + - docker build -t $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python39:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile.ci_python39 docker + - docker push $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python39:$CI_COMMIT_SHORT_SHA run_black: stage: lint @@ -54,11 +54,6 @@ run_pylint: script: - tox -e pylint -# build_extensions: -# stage: build_extensions -# script: -# - echo "build fortran/c/cpp extension source code" - sast: variables: SAST_EXCLUDED_ANALYZERS: brakeman, flawfinder, kubesec, nodejs-scan, phpcs-security-audit, @@ -75,11 +70,11 @@ secret_detection: before_script: - uname -run_unit_tests_py37: +run_unit_tests_py39: stage: test script: - - echo "run python3.7 unit tests /w coverage" - - tox -e py37 + - echo "run python3.9 unit tests /w coverage" + - tox -e py39 .run_unit_tests_pyXX: # installs the prerequisites explicitly, instead of piggy backing @@ -87,40 +82,22 @@ run_unit_tests_py37: # images with different python versions. stage: test before_script: - - apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-python-dev libtango-dev # Needed to install pytango - python -m pip install --upgrade pip - pip --version - pip install --upgrade tox - tox --version -run_unit_tests_py38: - extends: .run_unit_tests_pyXX - image: python:3.8-buster - script: - - echo "run python3.8 unit tests /w coverage" - - tox -e py38 - -run_unit_tests_py39: - extends: .run_unit_tests_pyXX - image: python:3.9-bullseye - script: - - echo "run python3.9 unit tests /w coverage" - - tox -e py39 - run_unit_tests_py310: extends: .run_unit_tests_pyXX image: python:3.10-bullseye script: - # Debian Bullseye ships with libboost-python linked to Python 3.9. Use the one from Debian Sid instead. - - echo 'deb http://deb.debian.org/debian sid main' >> /etc/apt/sources.list - - apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-python1.74-dev - echo "run python3.10 unit tests /w coverage" - tox -e py310 coverage: stage: test script: - - echo "run python3.7 unit tests /w coverage" + - echo "run python3.9 unit tests /w coverage" - tox -e coverage coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' artifacts: diff --git a/README.md b/README.md index 9287d521e529ccbfeb2b479f3ab39f34806f2948..366d0392dbdd6cd7149f294cfb3a3214688604f0 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ tox -e debug tests.requests.test_prometheus ## Release notes +- 0.18.4 - Compatability with PyTango 9.5.0 - 0.18.3 - Refactoring statistics packets. Moving tango to optional dependency `[tango]` - 0.18.2 - Bugfix when closing unused HDF5 files - 0.18.1 - Flush HDF5 files explicitly, reduce memory usage for XSTs diff --git a/docker/Dockerfile.ci_python37 b/docker/Dockerfile.ci_python37 deleted file mode 100644 index 1f4362fcff091ce1ba35661777eeb3e78c2a8b98..0000000000000000000000000000000000000000 --- a/docker/Dockerfile.ci_python37 +++ /dev/null @@ -1,9 +0,0 @@ -FROM python:3.7-buster - -# Install PyTango dependencies -RUN apt-get update -y -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-python-dev libtango-dev - -# Make sure we have the latest tooling for our tests -RUN python -m pip install --upgrade pip -RUN pip install --upgrade tox diff --git a/docker/Dockerfile.ci_python39 b/docker/Dockerfile.ci_python39 new file mode 100644 index 0000000000000000000000000000000000000000..641e8cb3c4edc4473ce4fb95b75590578afb28df --- /dev/null +++ b/docker/Dockerfile.ci_python39 @@ -0,0 +1,5 @@ +FROM python:3.9-bullseye + +# Make sure we have the latest tooling for our tests +RUN python -m pip install --upgrade pip +RUN pip install --upgrade tox diff --git a/requirements-tango.txt b/requirements-tango.txt index 3b2e762f751fcc925629a2c1985d5a453d95d51c..db6212627462b86ed54078ad91b5c4edeb3497ef 100644 --- a/requirements-tango.txt +++ b/requirements-tango.txt @@ -1 +1 @@ -PyTango>=9.4.0 # LGPL v3 +PyTango>=9.5.0 # LGPL v3 diff --git a/tox.ini b/tox.ini index 8dd13c8bebbd9db79c5fd9ed2c53a28c78d8da7d..af7f0597a44151bc8366565135f79a3e803a064d 100644 --- a/tox.ini +++ b/tox.ini @@ -8,8 +8,6 @@ usedevelop = True package = wheel wheel_build_env = .pkg setenv = - LANGUAGE=en_US - LC_ALL=en_US.UTF-8 PYTHONWARNINGS=default::DeprecationWarning deps = -r{toxinidir}/requirements.txt