Skip to content

Commit c88a1d5

Browse files
⚒️ Reduce package clutter and adds uv (mmschlk#348)
* Bump numpy from 1.26.4 to 2.1.2 Bumps [numpy](https://github.com/numpy/numpy) from 1.26.4 to 2.1.2. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](numpy/numpy@v1.26.4...v2.1.2) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * updated python project structure * removed setup.py * adjusted toml * adjusted toml * adjusted toml * adjusted toml * adjusted toml * updated tests to get setup with uv * updated tests to get setup with uv * fixed np.nan to np.NaN * excludes test * test numpy * fixed np.NaN * fixed np.NaN * updated test run --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 53ebc3a commit c88a1d5

File tree

17 files changed

+248
-228
lines changed

17 files changed

+248
-228
lines changed

.coveragerc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.dev-pre-commit-config.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/code-quality.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20+
2021
- name: Set up Python
2122
uses: actions/setup-python@v5
2223
with:
2324
python-version: "3.10"
24-
cache: 'pip'
25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install -r requirements.txt
25+
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
with:
29+
enable-cache: true
30+
2931
- name: Install pre-commit
3032
run: |
31-
pip install pre-commit
33+
uv pip install --system pre-commit ruff
3234
pre-commit install
35+
3336
- name: Run code-quality checks
3437
run: SKIP=mypy pre-commit run --all-files
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,27 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
2223
- name: Set up Python
2324
uses: actions/setup-python@v5
2425
with:
2526
python-version: "3.10"
26-
cache: 'pip'
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v5
30+
with:
31+
enable-cache: true
32+
2733
- name: Install dependencies
2834
run: |
29-
python -m pip install --upgrade pip
30-
pip install -r requirements.txt
31-
- name: Test with pytest
35+
uv pip install --system --no-deps .
36+
uv pip install --system -r requirements.txt
37+
uv pip install --system pytest pytest-cov
38+
39+
- name: Measure coverage
3240
run: |
33-
pip install pytest pytest-cov
3441
pytest --cov=shapiq --cov-report=xml
42+
3543
- name: Coveralls
3644
uses: coverallsapp/github-action@v2
3745
with:

.github/workflows/python-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v4
26+
2627
- name: Set up Python
2728
uses: actions/setup-python@v5
2829
with:
2930
python-version: '3.10'
31+
3032
- name: Install dependencies
3133
run: |
3234
python -m pip install --upgrade pip
3335
pip install build
36+
3437
- name: Build package
3538
run: python -m build
39+
3640
- name: Publish package
3741
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
3842
with:

.github/workflows/unit-tests-current.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ jobs:
2222
uses: actions/setup-python@v5
2323
with:
2424
python-version: "3.10"
25-
cache: 'pip'
2625

27-
- name: Install current dependencies
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
with:
29+
enable-cache: true
30+
31+
- name: Install dependencies
2832
run: |
29-
pip install -r requirements.txt
33+
uv pip install --system --no-deps .
34+
uv pip install --system -r requirements.txt
35+
uv pip install --system pytest
3036
3137
- name: Test with pytest
3238
run: |

.github/workflows/unit-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
28-
cache: 'pip'
28+
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
enable-cache: true
2933

3034
- name: Install dependencies
3135
run: |
32-
pip install -r tests/requirements/requirements.txt
36+
uv pip install --system --no-deps .
37+
uv pip install --system -r tests/requirements/requirements.txt
38+
uv pip install --system pytest
3339
3440
- name: Test with pytest
3541
run: |
36-
pytest
42+
pytest tests/

.pre-commit-config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ repos:
1010
- id: mixed-line-ending
1111
- id: check-merge-conflict
1212

13-
- repo: https://github.com/psf/black-pre-commit-mirror
14-
rev: 24.4.2
15-
hooks:
16-
- id: black
17-
name: black
18-
entry: black
19-
language: python
20-
- id: black-jupyter
21-
name: black-jupyter
22-
entry: black
23-
language: python
24-
2513
- repo: local
2614
hooks:
2715
- id: ruff

CITATION.bib

Lines changed: 0 additions & 8 deletions
This file was deleted.

CITATION.cff

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
cff-version: 1.2.0
2+
message: "If you use ``shapiq`` and enjoy it, please consider citing our paper or consider starring this repository."
3+
authors:
4+
- family-names: Muschalik
5+
given-names: Maximilian
6+
- family-names: Baniecki
7+
given-names: Hubert
8+
- family-names: Fumagalli
9+
given-names: Fabian
10+
- family-names: Kolpaczki
11+
given-names: Patrick
12+
- family-names: Hammer
13+
given-names: Barbara
14+
- family-names: H\"ullermeier
15+
given-names: Eyke
16+
title: 'shapiq: Shapley Interactions for Machine Learning'
17+
version: 1.2.0
18+
url: https://openreview.net/forum?id=knxGmi6SJi
19+
date-released: '2024-11-15'
20+
preferred-citation:
21+
authors:
22+
- family-names: Muschalik
23+
given-names: Maximilian
24+
- family-names: Baniecki
25+
given-names: Hubert
26+
- family-names: Fumagalli
27+
given-names: Fabian
28+
- family-names: Kolpaczki
29+
given-names: Patrick
30+
- family-names: Hammer
31+
given-names: Barbara
32+
- family-names: H\"ullermeier
33+
given-names: Eyke
34+
title: 'shapiq: Shapley Interactions for Machine Learning'
35+
url: https://openreview.net/forum?id=knxGmi6SJi
36+
type: conference-paper
37+
year: '2024'
38+
collection-title: The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track
39+
conference: {}
40+
publisher: {}

0 commit comments

Comments
 (0)