-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore requirements-txt-fixer in pre-commit (#7808)
- Loading branch information
Showing
6 changed files
with
27 additions
and
15 deletions.
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 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,10 +1,10 @@ | ||
# Extracted from `setup.cfg` via `make sync-direct-runtime-deps` | ||
|
||
multidict >=4.5, < 7.0 | ||
async-timeout >= 4.0, < 5.0 ; python_version < "3.11" | ||
yarl >= 1.0, < 2.0 | ||
frozenlist >= 1.1.1 | ||
aiosignal >= 1.1.2 | ||
aiodns >= 1.1; sys_platform=="linux" or sys_platform=="darwin" | ||
aiosignal >= 1.1.2 | ||
async-timeout >= 4.0, < 5.0 ; python_version < "3.11" | ||
Brotli; platform_python_implementation == 'CPython' | ||
brotlicffi; platform_python_implementation != 'CPython' | ||
frozenlist >= 1.1.1 | ||
multidict >=4.5, < 7.0 | ||
yarl >= 1.0, < 2.0 |
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,16 @@ | ||
#!/usr/bin/env python | ||
"""Sync direct runtime dependencies from setup.cfg to runtime-deps.in.""" | ||
|
||
from configparser import ConfigParser | ||
from pathlib import Path | ||
|
||
cfg = ConfigParser() | ||
cfg.read(Path("setup.cfg")) | ||
reqs = cfg["options"]["install_requires"] + cfg.items("options.extras_require")[0][1] | ||
reqs = sorted(reqs.split("\n"), key=str.casefold) | ||
reqs.remove("") | ||
|
||
with open(Path("requirements", "runtime-deps.in"), "w") as outfile: | ||
header = "# Extracted from `setup.cfg` via `make sync-direct-runtime-deps`\n\n" | ||
outfile.write(header) | ||
outfile.write("\n".join(reqs) + "\n") |
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,5 +1,5 @@ | ||
-r base.in | ||
-c broken-projects.in | ||
-r base.in | ||
|
||
coverage | ||
mypy; implementation_name == "cpython" | ||
|
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