Skip to content

Remove data files from the main repo. - #7878

Open
mkcor wants to merge 5 commits into
scikit-image:pre-megamove-integrationfrom
mkcor:rm-local-data
Open

mkcor wants to merge 5 commits into
scikit-image:pre-megamove-integrationfrom
mkcor:rm-local-data

Conversation

@mkcor

@mkcor mkcor commented Aug 16, 2025

Copy link
Copy Markdown
Member

Description

No rush to pull the trigger... Just submitting here following #7875 and #7876. These data files are now fetched from the GitLab repo.

Checklist

Release note

For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.

...

mkcor and others added 4 commits August 15, 2025 16:00
## Description

As per our discussion at the in-person sprint, let's go for the `src`
layout and get started with the `skimage2` namespace.

/cc @lagru @stefanv @jni @matthew-brett @Czaki 

## Checklist

<!-- Before pull requests can be merged, they should provide: -->

- A descriptive but concise pull request title
- [Docstrings for all
functions](https://github.com/numpy/numpydoc/blob/main/doc/example.py)
- [Unit
tests](https://scikit-image.org/docs/dev/development/contribute.html#testing)
- A gallery example in `./doc/examples` for new features
- [Contribution
guide](https://scikit-image.org/docs/dev/development/contribute.html) is
followed

## Release note

For maintainers and optionally contributors, please refer to the
[instructions](https://scikit-image.org/docs/stable/development/contribute.html#documenting-changes)
on how to document this PR for the release notes.

```release-note
...
```

---------

Co-authored-by: Stefan van der Walt <[email protected]>
Co-authored-by: Lars Grüter <[email protected]>
Co-authored-by: Grzegorz Bokota <[email protected]>
Co-authored-by: Stefan van der Walt <[email protected]>
Co-authored-by: Grzegorz Bokota <[email protected]>
@mkcor mkcor added the 🔧 type: Maintenance Refactoring and maintenance of internals label Aug 16, 2025
@mkcor

mkcor commented Aug 16, 2025

Copy link
Copy Markdown
Member Author

Weird, there should be only one commit in this PR (the latest one)...

@mkcor

mkcor commented Aug 16, 2025

Copy link
Copy Markdown
Member Author

Oh, the README.txt file is currently required:

readme_src = osp.join(_DISTRIBUTION_DIR, "data/README.txt")

@lagru

lagru commented Nov 12, 2025

Copy link
Copy Markdown
Member

Removing test data, I'm happy to do.

But I think we should consider waiting for skimage2 before we remove data files that have so far haven't requiring an internet connection at runtime.

@Czaki floated the idea to use a skimage-data package. That would enable the download at install time and allow us to make them optional. If skimage-data is not installed, attempt to download them at runtime, if that fails raise a warning to include the new dependency. I think that would be the nicest experience for users. But it will make the machinery in _fetchers.py even more confusing.

@Czaki

Czaki commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

But it will make the machinery in _fetchers.py even more confusing.

If you have skimage-data with getter functions, it may not be confusing.
You may use something like:

try:
	from skimage_data import astronaut 
except ImportError:
    from skimage.data._fetchers import astronaut 

@github-actions github-actions Bot added the 😴 Dormant No recent activity label May 12, 2026
@scikit-image scikit-image deleted a comment from github-actions Bot May 21, 2026
@stefanv

stefanv commented May 21, 2026

Copy link
Copy Markdown
Member

A reminder that we're still doing the very expensive data download step in our CI. Wondering if we should be caching, only checking this very infrequently, etc.

We should also ensure that we're using lfs as appropriate, if that is compatible with downloading via Python without anything special installed.

@stefanv

stefanv commented May 21, 2026

Copy link
Copy Markdown
Member

A quick search indicates that it may be better if we publish data releases on GitLab, since those are served via static CDN. Raw GitLab URLs are not. To make individual files accessible, we'd use https://docs.gitlab.com/user/packages/generic_packages/

Another alternative we can consider is reaching out to Hugging Face, and asking them whether they would provide us with free storage.

@github-actions github-actions Bot removed the 😴 Dormant No recent activity label May 22, 2026
@matthew-brett
matthew-brett changed the base branch from main to pre-megamove-integration June 19, 2026 19:57
@matthew-brett

Copy link
Copy Markdown
Contributor

We have changed the base branch for this PR from the main branch to the pre-megamove-integration branch.

Summary - what this means for your PR

You can continue to work on your PR, now based on pre-megamove-integration. You should update your branch to the current state of pre-megamove-integration (this is what the Github "Update branch" button does). Please do not merge the scikit-image main branch into your PR branch.

Once we've merged your PR into the pre-megamove-integration branch, we'll update your changes for Megamove, and merge into the main branch.

Read on for the rationale, and more detailed instructions.

Details

Rationale

We've changed the base branch to make it easier and smoother to continue to work on your PR, while we work through a rather large change in the directory structure of the repository - a change that we have called Megamove.

See the Megamove explanation issue for more detail.

Changing the base branch means you do not see merge conflicts related to the Megamove change, and can continue to work with the repository in its original state, without worrying about porting those changes across to the new post-Megamove structure.

As you'll see in the linked issue, you can continue to work on your PR as before, and you can continue to use the Github GUI to "Update branch" - this updates from the new pre-megamove-integration branch. However, there is one caveat: please, do not try and merge the scikit-image main branch into this one, but instead, keep track of the pre-megamove-integration branch. The issue explains more.

To emphasize again, do not try and merge the scikit-image main branch. You will get Megamove related merge conflicts that are rather tricky to resolve correctly.

When we've approved your PR, we'll merge into the pre-megamove-integration branch, and then process it so we can merge it into the main branch. We'll let you know when we've merged your PR changes into main.

Any questions, please reply here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants