Skip to content

Commit 431e31e

Browse files
committed
dev: split requirements
1 parent 4997021 commit 431e31e

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include CONTRIBUTORS.md
44
include LICENSE.txt
55
include README.md
66
include dev-requirements.txt
7+
include tests-requirements.txt
78
include mss/tests/*.py
89
include mss/py.typed
910
recursive-include docs/source *

dev-requirements.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
-e .
1+
-r tests-requirements.txt
22
black
33
build
44
flake8
5-
flaky
6-
pytest
7-
pytest-cov
85
mypy
9-
numpy; platform_python_implementation != "pypy"
10-
numpy==1.24.2; platform_python_implementation == "pypy"
11-
pillow
126
pylint
137
sphinx
148
twine
159
wheel
16-
xvfbwrapper; sys_platform == "linux"

docs/source/developers.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ Dependency
2020

2121
You 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

2729
How 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

3737
Code 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

mss/tests/test_setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
if platform.system().lower() != "linux":
1313
pytestmark = pytest.mark.skip
1414

15+
pytest.importorskip("build")
16+
pytest.importorskip("twine")
17+
1518
SDIST = "python -m build --sdist".split()
1619
WHEEL = "python -m build --wheel".split()
1720
CHECK = "twine check dist/*".split()

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

tests-requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-e .
2+
pytest
3+
pytest-cov
4+
numpy
5+
pillow
6+
xvfbwrapper; sys_platform == "linux"

0 commit comments

Comments
 (0)