Skip to content

Commit

Permalink
Update CI, support Python 3.12 (#72)
Browse files Browse the repository at this point in the history
* Update CI actions, bump Python test versions (drop 3.8, add 3.12)

* Update Poetry syntax

* set Numpy version which is compatible with Python 3.12's lack of distutils
  • Loading branch information
pagmatt committed Feb 8, 2024
1 parent da63bc5 commit a6c5b29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Expand Up @@ -14,17 +14,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install GCC
uses: egor-tensin/setup-gcc@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Expand Up @@ -10,18 +10,20 @@ homepage = "https://github.com/signetlabdei/sem"
keywords = ["ns-3", "simulation", "execution"]

[tool.poetry.dependencies]
python = ">3.8,<4"
python = ">=3.9,<4"
tqdm = "*"
gitpython = "*"
drmaa = "*"
tinydb = "^4.0.0"
xarray = "*"
numpy = "^1.21.5"
# Numpy 1.26.0 is needed to support Python >=3.12, which dropped distutils.
# See https://github.com/python-poetry/poetry/issues/7611#issuecomment-1793859449
numpy = "^1.26.0"
pandas = "*"
click = "*"
salib = "^1.3.8"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
sphinx = "*"
pylint = "*"
sphinxcontrib-napoleon = "*"
Expand Down

0 comments on commit a6c5b29

Please sign in to comment.