Skip to content

Commit 4025247

Browse files
committed
Bump minimum python version to 3.10
1 parent 00ffd42 commit 4025247

File tree

6 files changed

+6
-23
lines changed

6 files changed

+6
-23
lines changed

.github/workflows/run-docs-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
include:
1818
- os: ubuntu-20.04
19-
python: "3.9"
19+
python: "3.10"
2020

2121
steps:
2222
- uses: actions/checkout@v4

.github/workflows/run-tests-workflow.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ jobs:
1717
matrix:
1818
include:
1919
# Linux
20-
- os: ubuntu-20.04
21-
python-version: 3.9
22-
test-env: "PyQt5~=5.14.0"
23-
2420
- os: ubuntu-20.04
2521
python-version: "3.10"
2622
test-env: "PyQt5~=5.15.0"
@@ -49,10 +45,6 @@ jobs:
4945
extra-system-packages: "glibc-tools"
5046

5147
# macOS
52-
- os: macos-13
53-
python-version: 3.9
54-
test-env: "PyQt5~=5.14.0"
55-
5648
- os: macos-13
5749
python-version: "3.10"
5850
test-env: "PyQt5~=5.15.0"
@@ -78,10 +70,6 @@ jobs:
7870
test-env: "PyQt6~=6.7.0 PyQt6-Qt6~=6.7.0"
7971

8072
# Windows
81-
- os: windows-2019
82-
python-version: 3.9
83-
test-env: "PyQt5~=5.15.0"
84-
8573
- os: windows-2019
8674
python-version: "3.10"
8775
test-env: "PyQt5~=5.15.0"

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.9"
6+
python: "3.10"
77

88
python:
99
install:

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import os
1717
import shlex
1818

19-
import importlib_metadata
20-
dist = importlib_metadata.distribution("orange-canvas-core")
19+
import importlib.metadata
20+
dist = importlib.metadata.distribution("orange-canvas-core")
2121

2222
# If extensions (or modules to document with autodoc) are in another directory,
2323
# add these directories to sys.path here. If the directory is relative to the

orangecanvas/application/examples.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
from orangecanvas import config as _config
1212
from orangecanvas.utils.pkgmeta import Distribution
1313

14-
try:
15-
from importlib.resources import files as _files
16-
except ImportError:
17-
from importlib_resources import files as _files
14+
from importlib.resources import files as _files
1815

1916
log = logging.getLogger(__name__)
2017

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
"pip>=18.0",
3535
"dictdiffer",
3636
"qasync>=0.10.0",
37-
"importlib_metadata>=4.6; python_version<'3.10'",
38-
"importlib_resources; python_version<'3.9'",
3937
"typing_extensions",
4038
"packaging",
4139
"numpy",
@@ -64,7 +62,7 @@
6462
"Documentation": "https://orange-canvas-core.readthedocs.io/en/latest/",
6563
}
6664

67-
PYTHON_REQUIRES = ">=3.9"
65+
PYTHON_REQUIRES = ">=3.10"
6866

6967

7068
class InstallMultilingualCommand(install):

0 commit comments

Comments
 (0)