Skip to content

Commit

Permalink
use python 3.11 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Feb 8, 2023
1 parent 08885a0 commit 0aac1bf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ jobs:
include:
# linter tests
- os: ubuntu-latest
python-version: 3.7
python-version: 3.11
allow-failure: false
test-case: check
# remote test
- os: ubuntu-latest
python-version: 3.7
python-version: 3.11
allow-failure: true
test-case: start test-remote
# coverage test
- os: ubuntu-latest
python-version: 3.7
python-version: 3.11
allow-failure: false
test-case: coverage
# smoke test of Docker image
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Changes
`Unreleased <https://github.com/Ouranosinc/Magpie/tree/master>`_ (latest)
------------------------------------------------------------------------------------

* Nothing new for the moment.
Features / Changes
~~~~~~~~~~~~~~~~~~~~~
* Use Python 3.11 in the `Magpie` Docker application to take advantage of performance improvements and security fixes.
* Use ``twitcher>=0.9.0`` based on Python 3.11 for the `Twitcher` Docker with ``MagpieAdapter`` preinstalled.
* Use Python 3.11 by default for CI tests and linting checks.

.. _changes_3.31.0:

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-alpine3.16
FROM python:3.11-alpine3.17
LABEL Description="Runs Magpie AuthN/AuthZ service for REST-API and UI interfaces."
LABEL Maintainer="Francis Charette-Migneault <francis.charette-migneault@crim.ca>"
LABEL Vendor="CRIM"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.adapter
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# docker run will need to override ini file with mounted volume
# using config 'twitcher.adapter = magpie.adapter.MagpieAdapter'
#
FROM birdhouse/twitcher:v0.8.0
FROM birdhouse/twitcher:v0.9.0
LABEL Description="Configures MagpieAdapter on top of Twitcher application."
LABEL Maintainer="Francis Charette-Migneault <francis.charette-migneault@crim.ca>"
LABEL Vendor="CRIM"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pylint>=2.11,!=2.12,!=2.15; python_version >= "3.6"
pylint-quotes
# bird-house/twticher, must match version in Dockerfile.adapater
pyramid-twitcher>=0.5.3; python_version < "3.6" # pyup: ignore
pyramid-twitcher>=0.8.0; python_version >= "3.6"
pyramid-twitcher>=0.9.0; python_version >= "3.6"
pytest
python2-secrets; python_version <= "3.5"
safety
Expand Down

0 comments on commit 0aac1bf

Please sign in to comment.