-
Notifications
You must be signed in to change notification settings - Fork 56
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
uv work: implement oldest dependencies into pyproject.toml #810
Open
clintonsteiner
wants to merge
17
commits into
akaihola:master
Choose a base branch
from
clintonsteiner:liftToUVUsage
base: master
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.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2d1f8ba
uv work: implement oldest dependencies into pyproject.toml
clintonsteiner 4473476
ci: remove constraint files and instead use uv resolution
clintonsteiner cf044cc
fix readme value
clintonsteiner 05dbd58
add version info in pyproject toml
clintonsteiner 76c2dbe
ci: fix resolution
clintonsteiner 8f95d7b
fix dependencies
clintonsteiner 975435e
ci another
clintonsteiner 35ef9a2
ci
clintonsteiner cbc7c30
ci
clintonsteiner 4a7edbc
ci
clintonsteiner 2e76aad
ci
clintonsteiner 1c76533
add all deps to build
clintonsteiner 8d2668e
ci
clintonsteiner c2fc2e3
ci
clintonsteiner d8a124a
address pr comment
clintonsteiner 8ebc8bc
pr comments
clintonsteiner 81c7fb3
pr comments
clintonsteiner 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,96 @@ | |
# Minimum requirements for the build system to execute. | ||
requires = ["setuptools", "wheel"] # PEP 508 specifications. | ||
|
||
[project] | ||
name = "darker" | ||
version = "2.1.1" | ||
authors = [{name = "Antti Kaihola", email = "[email protected]"}] | ||
license = {text = "BSD"} | ||
description = "Apply Black formatting only in regions changed since last commit" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"black>=24.10.0", | ||
"darkgraylib~=2.2.0", | ||
"toml>=0.10.0", | ||
"typing_extensions>=4.0.1", | ||
"darkgray-dev-tools", | ||
"defusedxml>=0.7.1", | ||
"flynt>=0.76", | ||
"isort>=5.0.1", | ||
"mypy>=0.990", | ||
"packaging", | ||
"pathspec", # to test `gen_python_files` in `test_black_diff.py` | ||
"pydocstyle", | ||
"pygments>=2.4.0", | ||
"pyupgrade>=2.31.0", | ||
"pylint>=3.2.7", | ||
"pylint-per-file-ignores", | ||
"pytest>=6.2.0", | ||
"pytest-kwparametrize>=0.0.3", | ||
"pyupgrade>=2.31.0", | ||
"regex>=2021.4.4", | ||
"requests_cache>=0.7", | ||
"ruamel.yaml>=0.17.21", | ||
"ruff>=0.0.292", | ||
"twine>=2.0.0", | ||
"types-requests>=2.27.9", | ||
"types-toml>=0.10.4", | ||
"wheel>=0.21.0", | ||
"astor>=0.8.1", | ||
] | ||
dynamic = ["readme"] | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"black>=22.3.0", | ||
"darkgray-dev-tools~=0.1.1", | ||
"defusedxml>=0.7.1", | ||
"flynt>=0.76", | ||
"isort>=5.0.1", | ||
"mypy>=0.990", | ||
"packaging", | ||
"pathspec", # to test `gen_python_files` in `test_black_diff.py` | ||
"pydocstyle", | ||
"pygments>=2.4.0", | ||
"pyupgrade>=2.31.0", | ||
"pylint>=3.2.7", | ||
"pylint-per-file-ignores", | ||
"pytest>=6.2.0", | ||
"pytest-kwparametrize>=0.0.3", | ||
"pyupgrade>=2.31.0", | ||
"regex>=2021.4.4", | ||
"requests_cache>=0.7", | ||
"ruamel.yaml>=0.17.21", | ||
"ruff>=0.0.292", | ||
"twine>=2.0.0", | ||
"types-requests>=2.27.9", | ||
"types-toml>=0.10.4", | ||
"wheel>=0.21.0", | ||
"astor>=0.8.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/akaihola/darker" | ||
"Source Code" = "https://github.com/akaihola/darker" | ||
"Change Log" = "https://github.com/akaihola/darker/blob/master/CHANGES.rst" | ||
News = "https://github.com/akaihola/darker/discussions/categories/announcements" | ||
|
||
[project.entry-points."darker.formatter"] | ||
black = "darker.formatters.black_formatter:BlackFormatter" | ||
ruff = "darker.formatters.ruff_formatter:RuffFormatter" | ||
pyupgrade = "darker.formatters.pyupgrade_formatter:PyupgradeFormatter" | ||
none = "darker.formatters.none_formatter:NoneFormatter" | ||
|
||
[project.scripts] | ||
darker = "darker.__main__:main_with_error_handling" | ||
|
||
[tool.black] | ||
# Darker makes Black read its configuration from the file indicated by the `--config` | ||
# option, so we need to mirror the same configuration here and in `check-darker.toml`. | ||
|
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 |
---|---|---|
@@ -1,25 +1,3 @@ | ||
[metadata] | ||
name = darker | ||
version = attr: darker.version.__version__ | ||
author = Antti Kaihola | ||
author_email = [email protected] | ||
license = BSD | ||
license_file = LICENSE.rst | ||
description = Apply Black formatting only in regions changed since last commit | ||
# long_description is read and manipulated in setup.py | ||
long_description_content_type = text/x-rst | ||
classifiers = | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
project_urls = | ||
Source Code = https://github.com/akaihola/darker | ||
Change Log = https://github.com/akaihola/darker/blob/master/CHANGES.rst | ||
News = https://github.com/akaihola/darker/discussions/categories/announcements | ||
url = https://github.com/akaihola/darker | ||
|
||
[options] | ||
include_package_data = True | ||
package_dir = | ||
|
@@ -42,55 +20,6 @@ darker = | |
py.typed | ||
.pyi | ||
|
||
[options.entry_points] | ||
darker.formatter = | ||
black = darker.formatters.black_formatter:BlackFormatter | ||
ruff = darker.formatters.ruff_formatter:RuffFormatter | ||
pyupgrade = darker.formatters.pyupgrade_formatter:PyupgradeFormatter | ||
none = darker.formatters.none_formatter:NoneFormatter | ||
console_scripts = | ||
darker = darker.__main__:main_with_error_handling | ||
|
||
[options.extras_require] | ||
black = | ||
black>=22.3.0 | ||
flynt = | ||
flynt>=0.76 | ||
isort = | ||
isort>=5.0.1 | ||
color = | ||
Pygments>=2.4.0 | ||
pyupgrade = | ||
pyupgrade>=2.31.0 | ||
test = | ||
# NOTE: remember to keep `constraints-oldest.txt` in sync with these | ||
black>=22.3.0 | ||
cryptography>=3.3.2 # through twine, fixes CVE-2020-36242 | ||
defusedxml>=0.7.1 | ||
flynt>=0.76 | ||
isort>=5.0.1 | ||
mypy>=0.990 | ||
packaging | ||
pathspec # to test `gen_python_files` in `test_black_diff.py` | ||
pydocstyle | ||
pygments | ||
pylint<=3.2.7 # pylint 3.3.0 dropped Python 3.8 support | ||
pylint-per-file-ignores | ||
pytest>=6.2.0 | ||
pytest-kwparametrize>=0.0.3 | ||
pyupgrade>=2.31.0 | ||
regex>=2021.4.4 | ||
requests_cache>=0.7 | ||
ruamel.yaml>=0.17.21 | ||
ruff>=0.0.292 | ||
twine>=2.0.0 | ||
types-requests>=2.27.9 | ||
types-toml>=0.10.4 | ||
urllib3>=1.25.9 # through requests-cache and twine, fixes CVE-2020-26137 | ||
wheel>=0.21.0 | ||
release = | ||
darkgray-dev-tools~=0.1.1 | ||
|
||
[flake8] | ||
# Line length according to Black rules | ||
max-line-length = 88 | ||
|
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.
Why is
uv sync --all-packages
needed before runninguv build
?Seems unrelated to testing with oldest dependencies?