-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Migrate from hatch
to uv
#3723
Draft
dangotbanned
wants to merge
31
commits into
main
Choose a base branch
from
migrate-hatch-scripts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
5819a2e
ci: remove unused `--parents` option
dangotbanned ddc8358
ci: replace `sync_website.sh` with `.py`
dangotbanned 6ebc0ee
ci(DRAFT): migrate `hatch` scripts to hybrid `tasks.py` runner
dangotbanned fbc5a0f
ci: switch `Tasks` runner to `"uv"`
dangotbanned f614e4f
build(uv): Generate `uv.lock`
dangotbanned 0fa8ecc
refactor: Move `PYTEST_ARGS` -> `tool.pytest.ini_options.addopts`
dangotbanned dca3f0d
fix: Add recursive guard during `Tasks._expand`
dangotbanned 8bf774f
ci: add `export-tasks` and update `tasks.toml`
dangotbanned 3513259
ci: try fixing `anywidget` import error
dangotbanned c160c4c
feat: Improve `*_cmd` functions
dangotbanned 53bc298
refactor: reduce overloading of term `"cmd"`
dangotbanned 8323881
feat: adds `cmd` helper class
dangotbanned 1fd5790
chore: re-enable `tasks.py` export
dangotbanned cd9ccf9
docs: fix incorrect import path
dangotbanned ee426d9
Merge branch 'main' into migrate-hatch-scripts
dangotbanned 74c10bb
ci: Prefix doc-related tasks
dangotbanned 9900aa1
ci: Adds `clean`, `build`, `publish` tasks
dangotbanned ba836ab
ci: disable hard-coded no-op for `tools/sync_website.py`
dangotbanned 404bb26
fix(DRAFT): resolve some `sync_website.py` issues
dangotbanned 9285871
ci: Add different no-op in `sync_website.py`
dangotbanned 6e792a1
fix: Resolve typo in `hatch` extras check
dangotbanned e8d57cd
ci: Remove all unused `hatch` config
dangotbanned 1c0310b
refactor: Use `tomlkit.toml_file_TOMLFile` directly
dangotbanned fc6496f
ci: Support updating `tasks` table in-place
dangotbanned aaca9bc
Merge branch 'main' into migrate-hatch-scripts
dangotbanned 9150935
Merge remote-tracking branch 'upstream/main' into migrate-hatch-scripts
dangotbanned f240884
Merge remote-tracking branch 'upstream/main' into migrate-hatch-scripts
dangotbanned b61dc3c
Merge remote-tracking branch 'upstream/main' into migrate-hatch-scripts
dangotbanned f3a7f62
ci(uv): sync dependencies
dangotbanned e43e464
chore(typing): Ignore `mypy` inference
dangotbanned 00f353a
ci: Port to `taskipy`
dangotbanned File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[tool.altair.tasks] | ||
lint = ["ruff check"] | ||
format = ["ruff format --diff --check"] | ||
ruff-fix = ["ruff check", "ruff format"] | ||
type-check = ["mypy altair tests"] | ||
pytest = ["pytest"] | ||
test = ["lint", "format", "type-check", "pytest"] | ||
test-fast = ["ruff-fix", "pytest -m \"not slow\""] | ||
test-slow = ["ruff-fix", "pytest -m \"slow\""] | ||
generate-schema-wrapper = [ | ||
"mypy tools", | ||
"python tools/generate_schema_wrapper.py", | ||
"test", | ||
] | ||
update-init-file = ["python tools/update_init_file.py", "ruff-fix"] | ||
doc-clean = [ | ||
"python -c \"import shutil;shutil.rmtree('doc/_build', ignore_errors=True)\"", | ||
] | ||
doc-clean-generated = [ | ||
"python -c \"import shutil;shutil.rmtree('doc/user_guide/generated', ignore_errors=True)\"", | ||
"python -c \"import shutil;shutil.rmtree('doc/gallery', ignore_errors=True)\"", | ||
] | ||
doc-clean-all = [ | ||
"doc-clean", | ||
"doc-clean-generated", | ||
"python -c \"import shutil;shutil.rmtree('doc/_images', ignore_errors=True)\"", | ||
] | ||
doc-serve = [ | ||
"python -m http.server --bind \"127.0.0.1\" --directory doc/_build/html 8000", | ||
] | ||
doc-publish = ["python tools/sync_website.py"] | ||
clean = [ | ||
"python -c \"import shutil;shutil.rmtree('dist', ignore_errors=True)\"", | ||
] | ||
build = ["clean", "uv build"] | ||
publish = ["build", "uv publish"] | ||
export-tasks = [ | ||
"python -c \"from tools.tasks import app;app.to_path('tasks.toml')\"", | ||
] | ||
|
||
[tool.altair.tasks.doc-build-html] | ||
commands = [ | ||
"python -c \"from pathlib import Path;Path('doc/_images').mkdir(parents=True, exist_ok=True)\"", | ||
"sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html", | ||
] | ||
extras = ["doc"] | ||
|
||
[tool.altair.tasks.doc-clean-build] | ||
commands = ["doc-clean-all", "doc-build-html"] | ||
extras = ["doc"] | ||
|
||
[tool.altair.tasks.doc-publish-clean-build] | ||
commands = ["doc-clean-build", "doc-publish"] | ||
extras = ["doc"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to make
tomli
available on all versions, sincetaskipy
imports it unconditionally.Originally added with a runtime version gate block in
dd0980b
(#3720)