Include the requirements for [mypy,lint] in [dev] (#11034)
parent
3828dd819b
commit
5e29d417fc
|
@ -298,7 +298,7 @@ to install using pip and a virtualenv::
|
||||||
|
|
||||||
python3 -m venv ./env
|
python3 -m venv ./env
|
||||||
source ./env/bin/activate
|
source ./env/bin/activate
|
||||||
pip install -e ".[all,test]"
|
pip install -e ".[all,dev]"
|
||||||
|
|
||||||
This will run a process of downloading and installing all the needed
|
This will run a process of downloading and installing all the needed
|
||||||
dependencies into a virtual env. If any dependencies fail to install,
|
dependencies into a virtual env. If any dependencies fail to install,
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
When installing the optional developer dependencies, also include the dependencies needed for type-checking and unit testing.
|
|
@ -50,7 +50,7 @@ setup a *virtualenv*, as follows:
|
||||||
cd path/where/you/have/cloned/the/repository
|
cd path/where/you/have/cloned/the/repository
|
||||||
python3 -m venv ./env
|
python3 -m venv ./env
|
||||||
source ./env/bin/activate
|
source ./env/bin/activate
|
||||||
pip install -e ".[all,lint,mypy,test]"
|
pip install -e ".[all,dev]"
|
||||||
pip install tox
|
pip install tox
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
23
setup.py
23
setup.py
|
@ -103,15 +103,6 @@ CONDITIONAL_REQUIREMENTS["lint"] = [
|
||||||
"flake8",
|
"flake8",
|
||||||
]
|
]
|
||||||
|
|
||||||
CONDITIONAL_REQUIREMENTS["dev"] = CONDITIONAL_REQUIREMENTS["lint"] + [
|
|
||||||
# The following are used by the release script
|
|
||||||
"click==7.1.2",
|
|
||||||
"redbaron==0.9.2",
|
|
||||||
"GitPython==3.1.14",
|
|
||||||
"commonmark==0.9.1",
|
|
||||||
"pygithub==1.55",
|
|
||||||
]
|
|
||||||
|
|
||||||
CONDITIONAL_REQUIREMENTS["mypy"] = [
|
CONDITIONAL_REQUIREMENTS["mypy"] = [
|
||||||
"mypy==0.910",
|
"mypy==0.910",
|
||||||
"mypy-zope==0.3.2",
|
"mypy-zope==0.3.2",
|
||||||
|
@ -130,6 +121,20 @@ CONDITIONAL_REQUIREMENTS["mypy"] = [
|
||||||
# parameterized_class decorator was introduced in parameterized 0.7.0
|
# parameterized_class decorator was introduced in parameterized 0.7.0
|
||||||
CONDITIONAL_REQUIREMENTS["test"] = ["parameterized>=0.7.0"]
|
CONDITIONAL_REQUIREMENTS["test"] = ["parameterized>=0.7.0"]
|
||||||
|
|
||||||
|
CONDITIONAL_REQUIREMENTS["dev"] = (
|
||||||
|
CONDITIONAL_REQUIREMENTS["lint"]
|
||||||
|
+ CONDITIONAL_REQUIREMENTS["mypy"]
|
||||||
|
+ CONDITIONAL_REQUIREMENTS["test"]
|
||||||
|
+ [
|
||||||
|
# The following are used by the release script
|
||||||
|
"click==7.1.2",
|
||||||
|
"redbaron==0.9.2",
|
||||||
|
"GitPython==3.1.14",
|
||||||
|
"commonmark==0.9.1",
|
||||||
|
"pygithub==1.55",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="matrix-synapse",
|
name="matrix-synapse",
|
||||||
version=version,
|
version=version,
|
||||||
|
|
Loading…
Reference in New Issue