-
Notifications
You must be signed in to change notification settings - Fork 263
feat(dev): Migrate project to uv #783
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
67d6969
feat(dev): Migrate project to uv
last-partizan 0a8cf01
chore: Enable cache
last-partizan 120f19f
chore: Fix argument
last-partizan 07b7626
pyproject build
last-partizan 938119e
chore: smallfixes
last-partizan c743598
docs update
last-partizan a69ce7c
chore: Fix old build
last-partizan f350542
fix: Use correct license
last-partizan 153a1e7
chore: Fix install
last-partizan 1410613
chore: Update authors
last-partizan 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,44 +1,82 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "django-modeltranslation" | ||
version = "0.19.0" | ||
dynamic = ["version"] | ||
description = "Translates Django models using a registration approach." | ||
authors = ["Peter Eschler <[email protected]>"] | ||
maintainers = ["Serhii Tereshchenko <[email protected]>"] | ||
packages = [ | ||
{ include = "modeltranslation" }, | ||
readme = "README.rst" | ||
authors = [ | ||
{ name = "Peter Eschler", email = "[email protected]" }, | ||
{ name = "Dirk Eschler", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "Sergiy Tereshchenko", email = "[email protected]" }, | ||
] | ||
license = "BSD-3-Clause" | ||
requires-python = "<4,>=3.9" | ||
dependencies = [ | ||
"Django>=4.2", | ||
"typing-extensions>=4.0.1; python_version < \"3.11\"", | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"Framework :: Django", | ||
] | ||
[project.urls] | ||
"Homepage" = "https://github.com/deschler/django-modeltranslation" | ||
"Source" = "https://github.com/deschler/django-modeltranslation" | ||
"Documentation" = "https://django-modeltranslation.readthedocs.org/en/latest" | ||
"Mailing List" = "http://groups.google.com/group/django-modeltranslation" | ||
"Changelog" = "https://github.com/deschler/django-modeltranslation/blob/master/CHANGELOG.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.9,<4" | ||
django = ">=4.2" | ||
typing-extensions = {version = ">=4.0.1", python = "<3.11"} | ||
[tool.setuptools] | ||
packages = [ | ||
"modeltranslation", | ||
"modeltranslation.management", | ||
"modeltranslation.management.commands", | ||
] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "*" | ||
pdbpp = "*" | ||
parameterized = "*" | ||
pytest-cov = "*" | ||
pytest = "*" | ||
pytest-sugar = "*" | ||
pytest-django = "*" | ||
django-stubs = "^5.0.2" | ||
mypy = "*" | ||
build = "*" | ||
pillow = "^11.1.0" | ||
[tool.setuptools.package-data] | ||
modeltranslation = [ | ||
"static/modeltranslation/css/*.css", | ||
"static/modeltranslation/js/*.js", | ||
"py.typed", | ||
] | ||
|
||
[tool.poetry.group.lsp] | ||
optional = true | ||
[tool.setuptools.dynamic] | ||
version = {file = "VERSION"} | ||
|
||
[tool.poetry.group.lsp.dependencies] | ||
python-lsp-server = {extras = ["rope"], version = "^1.11.0"} | ||
pylsp-mypy = "^0.6.8" | ||
[dependency-groups] | ||
dev = [ | ||
"ruff", | ||
"pdbpp", | ||
"parameterized", | ||
"pytest-cov", | ||
"pytest", | ||
"pytest-sugar", | ||
"pytest-django", | ||
"django-stubs<6.0.0,>=5.0.2", | ||
"mypy", | ||
"build", | ||
"pillow", | ||
] | ||
lsp = ["python-lsp-server[rope]", "pylsp-mypy"] | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
target-version = "py39" | ||
[tool.ruff.lint] | ||
ignore = [ | ||
"E501", # line length is handled by formatter | ||
"E501", # line length is handled by formatter | ||
] | ||
|
||
[tool.ruff.lint.pyflakes] | ||
|
@@ -57,23 +95,20 @@ warn_unused_ignores = true | |
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
show_error_context = true | ||
exclude = [ | ||
'tests/migrations/', | ||
'tests/urls.py', | ||
] | ||
exclude = ['tests/migrations/', 'tests/urls.py'] | ||
disable_error_code = ["method-assign"] | ||
plugins = ["mypy_django_plugin.main"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["modeltranslation.fields"] | ||
module = ["modeltranslation.fields"] | ||
disable_error_code = ["attr-defined", "has-type", "misc"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["modeltranslation.admin"] | ||
module = ["modeltranslation.admin"] | ||
disable_error_code = ["override", "attr-defined"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["modeltranslation.translator"] | ||
module = ["modeltranslation.translator"] | ||
disable_error_code = ["override", "attr-defined"] | ||
|
||
[[tool.mypy.overrides]] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
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.
@peschler @deschler Hey folks, I'm doing migration from poetry to uv here, and also updating build backend configuration.
And we had "New BSD" as license name in old config. But, this is not something exactly from this list https://spdx.org/licenses/
That's probably BSD 3-Clause "New" or "Revised" License, aka
BSD-3-Clause
. Right?