File tree Expand file tree Collapse file tree 6 files changed +17
-16
lines changed
Expand file tree Collapse file tree 6 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ include CONTRIBUTORS.md
44include LICENSE.txt
55include README.md
66include dev-requirements.txt
7+ include tests-requirements.txt
78include mss/tests/*.py
89include mss/py.typed
910recursive-include docs/source *
Original file line number Diff line number Diff line change 1- -e .
1+ -r tests-requirements.txt
22black
33build
44flake8
5- flaky
6- pytest
7- pytest-cov
85mypy
9- numpy; platform_python_implementation != "pypy"
10- numpy==1.24.2; platform_python_implementation == "pypy"
11- pillow
126pylint
137sphinx
148twine
159wheel
16- xvfbwrapper; sys_platform == "linux"
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ Dependency
2020
2121You will need `pytest <https://pypi.org/project/pytest/ >`_::
2222
23- $ python -m pip install -U pip wheel
24- $ python -m pip install -r dev-requirements.txt
23+ $ python -m venv venv
24+ $ . venv/bin/activate
25+ $ python -m pip install -U pip
26+ $ python -m pip install -r tests-requirements.txt
2527
2628
2729How to Test?
@@ -31,14 +33,13 @@ Launch the test suit::
3133
3234 $ python -m pytest
3335
34- This will test MSS and ensure a good code quality.
35-
3636
3737Code Quality
3838============
3939
40- To ensure the code is always well enough using ` flake8 < https://pypi.org/project/flake8/ >`_ ::
40+ To ensure the code quality is correct enough::
4141
42+ $ python -m pip install -r dev-requirements.txt
4243 $ ./check.sh
4344
4445
Original file line number Diff line number Diff line change 1212if platform .system ().lower () != "linux" :
1313 pytestmark = pytest .mark .skip
1414
15+ pytest .importorskip ("build" )
16+ pytest .importorskip ("twine" )
17+
1518SDIST = "python -m build --sdist" .split ()
1619WHEEL = "python -m build --wheel" .split ()
1720CHECK = "twine check dist/*" .split ()
Original file line number Diff line number Diff line change @@ -84,6 +84,3 @@ addopts =
8484 -v
8585 --cov =mss
8686 --cov-report =term-missing
87- # Trait all tests as flaky by default
88- --force-flaky
89- --no-success-flaky-report
Original file line number Diff line number Diff line change 1+ -e .
2+ pytest
3+ pytest-cov
4+ numpy
5+ pillow
6+ xvfbwrapper; sys_platform == "linux"
You can’t perform that action at this time.
0 commit comments