Skip to content

Commit

Permalink
fix ci for tables 3.9 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmeagher authored Oct 5, 2023
1 parent c810430 commit 934973d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ jobs:
if: ${{ startsWith( matrix.os, 'ubuntu') && matrix.python-version == 3.12 }}
run: |
sudo apt-get install libhdf5-dev
python3 -m pip install --upgrade pip
python3 -m pip install git+https://github.com/PyTables/PyTables.git
- name: Install SimWeights
run: |
python3 -m pip install --upgrade pip
python3 -m pip install flit
python3 -m flit install --symlink --deps=production --extras=test
- name: Download Test Data
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: BSD-2-Clause

[build-system]
requires = ["flit_core >=2,<4"]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
Expand All @@ -24,14 +24,15 @@ classifiers = [
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
]
dependencies = ["numpy>=1.21.2", "scipy"]
dynamic = ["version", "description"]

[project.optional-dependencies]
test = [ "h5py", "tables", "pandas", "uproot", "pytest-cov"]
test = ["h5py", "tables < 3.8; python_version < '3.9'", "tables", "pandas", "uproot", "pytest-cov"]
docs = ["sphinx","sphinx-rtd-theme","pandas"]
dev = ["pytest","pre-commit","reuse","black","ruff","pylint","mypy"]

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
; SPDX-License-Identifier: BSD-2-Clause

[tox]
envlist = py3{7,8,9,10,11}
envlist = py3{8,9,10,11,12}
isolated_build = True

[testenv]
passenv = SIMWEIGHTS_TESTDATA
passenv = SIMWEIGHTS_TESTDATA, HDF5_DIR
deps = .[test]
commands = pytest

0 comments on commit 934973d

Please sign in to comment.