Skip to content

Commit 41d2811

Browse files
authored
464 fix publish workflow (#475)
* add MANIFEST.in * add MANIFEST.in * updated MANIFEST.in and python-publish.yml workflow * updated CHANGELOG.md * updated shapiq-games warning
1 parent 99f0c30 commit 41d2811

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@ jobs:
3232
fetch-depth: 0
3333
ref: ${{ github.event.release.tag_name }} # build exactly the released tag
3434

35-
- name: Set up Python
36-
uses: actions/setup-python@v6
37-
with:
38-
python-version: '3.12'
39-
40-
- name: Install uv
35+
- name: Install uv and python
4136
uses: astral-sh/setup-uv@v7
37+
with:
38+
python-version: '3.12'
4239

4340
- name: Build package
44-
run: python -m build
41+
run: uv build
4542

4643
- name: Upload dist artifact
4744
uses: actions/upload-artifact@v5

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v1.4.1 (2025-11-10)
4+
5+
### Bugfix
6+
- fixes a bug in `ProxySPEX` where the `baseline_value` was set to a wrong id and not the correct score of the empty coalition. [#469](https://github.com/mmschlk/shapiq/issues/469)
7+
- fixes the build process of `shapiq` to correctly exclude all test/benchmark/docs/etc. files from the built package. [#464](https://github.com/mmschlk/shapiq/issues/464)
8+
39
## v1.4.0 (2025-10-31)
410

511
### Introducing ProxySPEX [#442](https://github.com/mmschlk/shapiq/pull/442)

MANIFEST.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# exclude configuration and metadata files
2+
exclude .readthedocs.yml
3+
exclude .pre-commit-config.yaml
4+
exclude uv.lock
5+
6+
# exclude unnecessary directories
7+
prune data
8+
prune examples
9+
prune tests
10+
prune docs
11+
prune scripts
12+
prune benchmark

src/shapiq_games/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The shapiq-games library."""
22

33
import importlib.util
4+
import warnings
45

56
_missing = [
67
module
@@ -10,10 +11,8 @@
1011

1112
if _missing:
1213
msg = (
13-
"The 'shapiq_games' package requires optional dependencies. "
14-
"Please install shapiq with the 'games' extra:\n"
15-
" uv pip install 'shapiq[games]'\n"
16-
"or\n"
17-
" pip install 'shapiq[games]'\n"
14+
"The 'shapiq_games' package requires optional dependencies that are more than the normal"
15+
" shapiq package. Install and import the packages as you go or preferably via,\n\n "
16+
" uv add --group all_ml"
1817
)
19-
raise ImportError(msg)
18+
warnings.warn(msg, ImportWarning, stacklevel=2)

0 commit comments

Comments
 (0)