-
-
Notifications
You must be signed in to change notification settings - Fork 515
Switch to uv_build build system & cleanup
#2848
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| [build-system] | ||
| build-backend = "hatchling.build" | ||
| requires = ["hatchling"] | ||
|
|
||
| [project] | ||
| name = "django-stubs-ext" | ||
| # NB! For clarity, keep version major.minor.patch in sync with django-stubs. | ||
|
|
@@ -43,5 +39,10 @@ Homepage = "https://github.com/typeddjango/django-stubs" | |
| Funding = "https://github.com/sponsors/typeddjango" | ||
| "Release notes" = "https://github.com/typeddjango/django-stubs/releases" | ||
|
|
||
| [tool.hatch.build] | ||
| packages = ["django_stubs_ext"] | ||
| [build-system] | ||
| requires = ["uv_build>=0.8.22,<0.9.0"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to be this specific? Will There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is recommended by official docs https://docs.astral.sh/uv/concepts/build-backend/#using-the-uv-build-backend I guess patchlevel versions may contain fixes, I see no reason to allow downgrading to more buggy versions given that we haven't tested with them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why isn't @dependabot updating this? 🤔 It updated in djangorestframework-stubs: |
||
| build-backend = "uv_build" | ||
|
|
||
| [tool.uv.build-backend] | ||
| module-name = ["django_stubs_ext"] | ||
| module-root = "" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I never liked that this was at the top of the file; moved to below package metadata. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can also lean on https://github.com/tox-dev/pyproject-fmt/ for a consistent sort |
||
|
|
||
| [project] | ||
| name = "django-stubs" | ||
| version = "5.2.5" | ||
|
|
@@ -80,8 +76,13 @@ Funding = "https://github.com/sponsors/typeddjango" | |
| django-stubs = { workspace = true } | ||
| django-stubs-ext = { path = "ext", editable = true } | ||
|
|
||
| [tool.hatch.build] | ||
| packages = ["django-stubs", "mypy_django_plugin"] | ||
| [build-system] | ||
| requires = ["uv_build>=0.8.22,<0.9.0"] | ||
| build-backend = "uv_build" | ||
|
|
||
| [tool.uv.build-backend] | ||
| module-name = ["django-stubs", "mypy_django_plugin"] | ||
| module-root = "" | ||
|
|
||
| [tool.codespell] | ||
| ignore-words-list = "aadd,acount,nam,asend" | ||
|
|
||
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.
Does
uvhas an alternative with a dry-run?Uh oh!
There was an error while loading. Please reload this page.
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.
See #2846 (comment) -
twine checkis only making sure that rST is valid in the long description, but we're using markdown.