Skip to content

Commit 0f0fed4

Browse files
committed
Merge branch 'develop'
2 parents 66f0e44 + 97be630 commit 0f0fed4

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.0
2+
current_version = 0.3.1.dev0
33
commit = False
44
tag = False
55
allow_dirty = False

.github/workflows/publish.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
tags:
66
- "v*"
7+
workflow_dispatch:
8+
inputs:
9+
reason:
10+
description: Why did you trigger the pipeline?
11+
required: False
12+
default: Check if it runs again due to external changes
713

814
env:
915
PY_COLORS: 1
@@ -17,8 +23,18 @@ jobs:
1723
- uses: actions/checkout@v3
1824
with:
1925
fetch-depth: 0
20-
- name: Fail if not on 'master' branch
21-
if: github.ref != 'refs/heads/master'
26+
- name: Fail if manually triggered workflow is not on 'master' branch
27+
if: github.event_name == 'workflow_dispatch' && github.ref_name != 'master'
28+
run: exit -1
29+
- name: Extract branch name from tag
30+
id: get_branch_name
31+
if: github.ref_type == 'tag'
32+
run: |
33+
export BRANCH_NAME=$(git log -1 --format='%D' $GITHUB_REF | | sed -e 's/.*origin\/\(.*\),.*/\1/')
34+
echo ::set-output name=branch_name::${BRANCH_NAME}
35+
shell: bash
36+
- name: Fail if tag is not on 'master' branch
37+
if: github.ref_type == 'tag' && steps.get_branch_name.outputs.branch_name != 'master'
2238
run: exit -1
2339
- name: Set up Python 3.8
2440
uses: actions/setup-python@v4

notebooks/shapley_basic_spotify.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@
9393
"metadata": {},
9494
"outputs": [],
9595
"source": [
96+
"from pydvl.reporting.plots import plot_shapley\n",
9697
"from pydvl.utils import (\n",
9798
" available_cpus,\n",
9899
" load_spotify_dataset,\n",
99100
" Dataset,\n",
100101
" GroupedDataset,\n",
101102
" Utility,\n",
102-
" plot_shapley,\n",
103103
")\n",
104104
"from pydvl.value.shapley import compute_shapley_values"
105105
]

notebooks/shapley_knn_flowers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
" legend_title=\"shapley values\",\n",
367367
" suptitle=\"Distribution of Shapley values\",\n",
368368
" colorbar_limits=(-0.025, 0.027),\n",
369-
")"
369+
")\n"
370370
]
371371
}
372372
],

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
package_dir={"": "src"},
1313
packages=find_packages(where="src"),
1414
include_package_data=True,
15-
version="0.3.0",
15+
version="0.3.1.dev0",
1616
description="The Python Data Valuation Library",
1717
install_requires=[
1818
line

src/pydvl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.0"
1+
__version__ = "0.3.1.dev0"

0 commit comments

Comments
 (0)