Skip to content

switch to uv, and modernize CI yaml - #58

Merged
martindurant merged 10 commits into
fsspec:masterfrom
marimo-team:sham/update-deps-ci
Jun 29, 2026
Merged

martindurant merged 10 commits into
fsspec:masterfrom
marimo-team:sham/update-deps-ci

Conversation

@Light2Dark

@Light2Dark Light2Dark commented Jun 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Switch dependency management from pip to uv. uv is way faster and simpler to set up.
  • Rework CI into three jobs — lint, test, and integration — using a shared composite setup action (setup-uv, uv sync --frozen)
  • Expand the test matrix from Python 3.13 only to 3.10–3.14, and run unit tests separately from integration tests (integration only runs when Drive credentials are available: pushes to master, same-repo PRs, or manual dispatch). Integration tests atm only run on 3.13, maybe we can expand in the future.
  • Modernize pyproject.toml license metadata (BSD-3-Clause + license-files)

@Light2Dark Light2Dark changed the title Switch to uv for dependency management. switch to uv, and modernize CI yaml Jun 18, 2026
@Light2Dark
Light2Dark marked this pull request as ready for review June 18, 2026 18:08
@Light2Dark
Light2Dark requested a review from martindurant June 18, 2026 23:53
@martindurant

Copy link
Copy Markdown
Member

I don't mind to use uv, but I am surprised you say it is "faster" - isn't the install part of the CI run an insignificant part of total in either case? Sticking with the standard would be simpler.

@martindurant

Copy link
Copy Markdown
Member

Expand the test matrix from Python 3.13 only to 3.10–3.14

Do you find this works? I would worry about parallel access to the same drive and the weird races this can cause. Every test run had better at least run with a unique prefix and be sure to clean it up.

@Light2Dark

Light2Dark commented Jun 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

I don't mind to use uv, but I am surprised you say it is "faster"

Yeah, you're probably right. I did not benchmark this. For a repo of this size, I don't think it matters. I'm used to uv being faster on my other projects hence the statement.

To offer some reasons why to use uv:

  • Easier migration story now than in the future
  • There's a few small things that make uv really nice to develop in. For example, I added a dev dependency group, to install on pip, you'd have to run pip install --group dev --editable .. For uv, it's just uv sync.
  • Introduce the lockfile. Can do this with pip too, but this comes nicely built in with uv. We'd be able to lock CI tests from failing in the future if some upstream deps change.

Do you find this works? I would worry about parallel access to the same drive and the weird races this can cause.

I've only expanded the Python matrix for unit tests which doesn't access a real drive, and run fully isolated.
For integration test (the one against the live drive), it runs on python 3.13. Mainly because I felt it was an 'expensive' test, so limit it.

@martindurant

Copy link
Copy Markdown
Member

We'd be able to lock CI tests from failing in the future if some upstream deps change.

I'm actually against this - we want the CI to fail if a dep breaks current code. Otherwise we wouldn't be aware of real failing installations that users might be experiencing.

@Light2Dark

Light2Dark commented Jun 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

We'd be able to lock CI tests from failing in the future if some upstream deps change.

I'm actually against this - we want the CI to fail if a dep breaks current code. Otherwise we wouldn't be aware of real failing installations that users might be experiencing.

Yeah that makes sense, I should be more careful. I can remove the lockfile and the CI that generates it.

Are you still keen on using uv? Or stick to pip

@martindurant

Copy link
Copy Markdown
Member

Are you still keen on using uv? Or stick to pip

I don't mind uv, but it would put more responsibility on you, since I barely use it myself.

@Light2Dark

Copy link
Copy Markdown
Collaborator Author

done! cleaner now

Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Outdated
[project.urls]
Source = "http://github.com/fsspec/gdrive-fsspec"

[tool.setuptools.packages.find]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added because of

  self._finalize_license_expression()
error: Multiple top-level packages discovered in a flat-layout: ['tmp', 'gdrive_fsspec'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but where did tmp come from?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, okay I opted for src-layout option instead, makes it clear which package is importable.

https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/

But maybe it's far-reaching. I'm okay to undo this. The tmp folder existed in my directory for scratch Python files for testing.

Light2Dark and others added 7 commits June 23, 2026 07:51
@Light2Dark
Light2Dark force-pushed the sham/update-deps-ci branch from cb50c44 to 56bbae3 Compare June 22, 2026 23:52

@martindurant martindurant left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine to move to src/ layout along with using uv.


- name: Install dependencies
shell: bash
run: uv sync --all-groups

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose the point is to use the test group specifically? That should also be mentioned in docs/README.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is equivalent to running uv sync --group dev, but since uv sync by default looks for dev, hence equivalent to uv sync.

Adding all-groups is so that if we added more groups later, eg. docs, lint, they would all be included. Which I think is the right approach.

Comment thread README.md Resolved
@martindurant
martindurant merged commit 01bcca8 into fsspec:master Jun 29, 2026
7 checks passed
Light2Dark added a commit to marimo-team/gdrive-fsspec that referenced this pull request Jun 30, 2026
switch to uv, and modernize CI yaml (fsspec#58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants