From 520968ffe93ce8ac3122c77cbe449ea4aeb07113 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Mon, 19 Dec 2022 16:13:57 +0000 Subject: [PATCH 1/3] getdefaultlocale -> getlocale --- cairosvg/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairosvg/features.py b/cairosvg/features.py index 199a1a0e..b47dacf3 100644 --- a/cairosvg/features.py +++ b/cairosvg/features.py @@ -6,7 +6,7 @@ import locale ROOT = 'http://www.w3.org/TR/SVG11/feature' -LOCALE = locale.getdefaultlocale()[0] or '' +LOCALE = locale.getlocale()[0] or '' SUPPORTED_FEATURES = frozenset(( ROOT + '#' + feature for feature in ( 'SVG', From 1fdbcd115cef36c5f491b3775cfb89f0479cc255 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Wed, 21 Dec 2022 11:36:28 +0000 Subject: [PATCH 2/3] Remove python 3.6 (beyond end-of-life) and add python 3.11 --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac8492d7..aba70332 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,12 +9,12 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: - - "3.6" + python-version: - "3.7" - "3.8" - "3.9" - "3.10" + - "3.11" steps: - uses: actions/checkout@v2 with: @@ -32,7 +32,7 @@ jobs: - name: Install tests’ requirements run: python -m pip install .[test] pytest-xdist - name: Launch tests - run: python -m pytest -n auto + run: python -m pytest -n auto -W error - name: Check coding style run: python -m flake8 - name: Check imports order From 9f501df8b9f5bc3277df6c4cb85ab16459303051 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Wed, 21 Dec 2022 11:37:26 +0000 Subject: [PATCH 3/3] Didn't mean to add -W error --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aba70332..6a6fe93e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: - name: Install tests’ requirements run: python -m pip install .[test] pytest-xdist - name: Launch tests - run: python -m pytest -n auto -W error + run: python -m pytest -n auto - name: Check coding style run: python -m flake8 - name: Check imports order