Skip to content

Commit

Permalink
dev: split requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Apr 10, 2023
1 parent 4997021 commit 431e31e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Expand Up @@ -4,6 +4,7 @@ include CONTRIBUTORS.md
include LICENSE.txt
include README.md
include dev-requirements.txt
include tests-requirements.txt
include mss/tests/*.py
include mss/py.typed
recursive-include docs/source *
Expand Down
9 changes: 1 addition & 8 deletions dev-requirements.txt
@@ -1,16 +1,9 @@
-e .
-r tests-requirements.txt
black
build
flake8
flaky
pytest
pytest-cov
mypy
numpy; platform_python_implementation != "pypy"
numpy==1.24.2; platform_python_implementation == "pypy"
pillow
pylint
sphinx
twine
wheel
xvfbwrapper; sys_platform == "linux"
11 changes: 6 additions & 5 deletions docs/source/developers.rst
Expand Up @@ -20,8 +20,10 @@ Dependency

You will need `pytest <https://pypi.org/project/pytest/>`_::

$ python -m pip install -U pip wheel
$ python -m pip install -r dev-requirements.txt
$ python -m venv venv
$ . venv/bin/activate
$ python -m pip install -U pip
$ python -m pip install -r tests-requirements.txt


How to Test?
Expand All @@ -31,14 +33,13 @@ Launch the test suit::

$ python -m pytest

This will test MSS and ensure a good code quality.


Code Quality
============

To ensure the code is always well enough using `flake8 <https://pypi.org/project/flake8/>`_::
To ensure the code quality is correct enough::

$ python -m pip install -r dev-requirements.txt
$ ./check.sh


Expand Down
3 changes: 3 additions & 0 deletions mss/tests/test_setup.py
Expand Up @@ -12,6 +12,9 @@
if platform.system().lower() != "linux":
pytestmark = pytest.mark.skip

pytest.importorskip("build")
pytest.importorskip("twine")

SDIST = "python -m build --sdist".split()
WHEEL = "python -m build --wheel".split()
CHECK = "twine check dist/*".split()
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Expand Up @@ -84,6 +84,3 @@ addopts =
-v
--cov=mss
--cov-report=term-missing
# Trait all tests as flaky by default
--force-flaky
--no-success-flaky-report
6 changes: 6 additions & 0 deletions tests-requirements.txt
@@ -0,0 +1,6 @@
-e .
pytest
pytest-cov
numpy
pillow
xvfbwrapper; sys_platform == "linux"

0 comments on commit 431e31e

Please sign in to comment.