mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 12:14:50 -04:00
Move lint dependencies to extras_require (#8330)
Lint dependencies can now be installed with pip install -e ".[lint]" This should help keep the version in sync between tox and documentation.
This commit is contained in:
parent
837293c314
commit
efb6b6629c
4 changed files with 10 additions and 12 deletions
|
@ -104,13 +104,16 @@ CONDITIONAL_REQUIREMENTS = {
|
|||
# hiredis is not a *strict* dependency, but it makes things much faster.
|
||||
# (if it is not installed, we fall back to slow code.)
|
||||
"redis": ["txredisapi>=1.4.7", "hiredis"],
|
||||
# We pin black so that our tests don't start failing on new releases.
|
||||
"lint": ["isort==5.0.3", "black==19.10b0", "flake8-comprehensions", "flake8"],
|
||||
}
|
||||
|
||||
ALL_OPTIONAL_REQUIREMENTS = set() # type: Set[str]
|
||||
|
||||
for name, optional_deps in CONDITIONAL_REQUIREMENTS.items():
|
||||
# Exclude systemd as it's a system-based requirement.
|
||||
if name not in ["systemd"]:
|
||||
# Exclude lint as it's a dev-based requirement.
|
||||
if name not in ["systemd", "lint"]:
|
||||
ALL_OPTIONAL_REQUIREMENTS = set(optional_deps) | ALL_OPTIONAL_REQUIREMENTS
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue