Skip to content

Commit

Permalink
Lift Python version upper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
soininen committed May 15, 2024
1 parent 39acd53 commit 4fa6f97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-22.04]
python-version: [3.8, 3.9, "3.10", 3.11]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -41,15 +41,12 @@ jobs:
PYTHONUTF8: 1
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install --no-deps -e .
python -m pip install -r requirements.txt
python -m pip install -e .[dev]
- name: List packages
run:
pip list
- name: Install coverage
run:
python -m pip install coverage[toml]
- name: Run tests
run: |
if [ "$RUNNER_OS" != "Windows" ]; then
Expand Down
23 changes: 10 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ description = "Spine project items"
keywords = ["energy system modelling", "workflow", "optimisation", "database"]
readme = {file = "README.md", content-type = "text/markdown"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
]
requires-python = ">=3.8.1, <3.12"
requires-python = ">=3.8.1"
dependencies = [
"pyside6 >= 6.5.0, != 6.5.3, != 6.6.3",
"pyodbc >=4.0",
# v1.4 does not pass tests
"sqlalchemy >=1.3, <1.4",
"pygments >=2.8",
"numpy >=1.20.2",
"spinedb_api>=0.31.1",
"spine_engine>=0.24.0",
# "spinetoolbox >=0.6.18",
Expand All @@ -27,6 +21,9 @@ dependencies = [
[project.urls]
Repository = "https://github.com/spine-tools/spine-items"

[project.optional-dependencies]
dev = ["coverage[toml]"]

[build-system]
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2", "wheel", "build"]
build-backend = "setuptools.build_meta"
Expand All @@ -41,9 +38,9 @@ include-package-data = true

[tool.setuptools.packages.find]
exclude = [
"bin*",
"fig*",
"tests*",
"bin*",
"fig*",
"tests*",
]

[tool.coverage.run]
Expand Down

0 comments on commit 4fa6f97

Please sign in to comment.