10000 Backport PR #5104: Use v{} for version tags with pooch (#5110) · scikit-image/scikit-image@ee94733 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee94733

Browse files
meeseeksmachinejni
andauthored
Backport PR #5104: Use v{} for version tags with pooch (#5110)
Co-authored-by: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu>
1 parent df9170c commit ee94733

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

skimage/data/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,12 @@ def create_image_fetcher():
125125
# This helps pooch understand that it should look in master
126126
# to find the required files
127127
pooch_version = __version__.replace('.dev', '+')
128-
url = "https://github.com/scikit-image/scikit-image/raw/{version}/skimage/"
128+
if '+' in pooch_version:
129+
url = ("https://github.com/scikit-image/scikit-image/raw/"
130+
"{version}/skimage/")
131+
else:
132+
url = ("https://github.com/scikit-image/scikit-image/raw/"
133+
"v{version}/skimage/")
129134

130135
# Create a new friend to manage your sample data storage
131136
image_fetcher = pooch.create(

0 commit comments

Comments
 (0)
0