Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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