Browse Source

ref: add pytest-xdist to development requirements (#36630)

anthony sottile 2 years ago
parent
commit
e2bf4868ca
5 changed files with 11 additions and 8 deletions
  1. 1 1
      Makefile
  2. 0 4
      pyproject.toml
  3. 4 1
      requirements-dev-frozen.txt
  4. 4 1
      requirements-dev-only-frozen.txt
  5. 2 1
      requirements-dev.txt

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@ PIP := python -m pip --disable-pip-version-check
 WEBPACK := yarn build-acceptance
 
 freeze-requirements:
-	@python -S -m tools.freeze_requirements sentry
+	@python3 -S -m tools.freeze_requirements sentry
 
 bootstrap \
 develop \

+ 0 - 4
pyproject.toml

@@ -29,8 +29,6 @@ selenium_driver = "chrome"
 filterwarnings = [
     # Consider all warnings to be errors other than the ignored ones.
     "error",
-    # This is just to prevent pytest from exiting if pytest-xdist isn't installed.
-    "ignore:Unknown config option.*looponfailroots:pytest.PytestConfigWarning",
 
     "ignore::django.utils.deprecation.RemovedInDjango30Warning",
 
@@ -45,6 +43,4 @@ filterwarnings = [
     "ignore:DateTimeField.*naive datetime:RuntimeWarning",
     "ignore:.*sentry.digests.backends.dummy.DummyBackend.*:sentry.utils.warnings.UnsupportedBackend",
 ]
-# This is for people who install pytest-xdist locally,
-# and use the -f/--looponfail feature.
 looponfailroots = ["src", "tests"]

+ 4 - 1
requirements-dev-frozen.txt

@@ -36,6 +36,7 @@ docker-pycreds==0.4.0
 drf-spectacular==0.22.1
 email-reply-parser==0.5.12
 exam==0.10.6
+execnet==1.9.0
 fido2==0.9.2
 filelock==3.7.0
 flake8==4.0.1
@@ -113,11 +114,13 @@ pyopenssl==22.0.0
 pyparsing==3.0.9
 pyrsistent==0.18.1
 pysocks==1.7.1
-pytest==6.1.0
+pytest==6.1.2
 pytest-cov==3.0.0
 pytest-django==4.4.0
+pytest-forked==1.4.0
 pytest-rerunfailures==9.1.1
 pytest-sentry==0.1.9
+pytest-xdist==2.4.0
 python-dateutil==2.8.1
 python-memcached==1.59
 python-rapidjson==1.4

+ 4 - 1
requirements-dev-only-frozen.txt

@@ -13,6 +13,7 @@ distlib==0.3.4
 docker==3.7.0
 docker-pycreds==0.4.0
 exam==0.10.6
+execnet==1.9.0
 filelock==3.7.1
 flake8==4.0.1
 flake8-bugbear==22.4.25
@@ -49,11 +50,13 @@ pycodestyle==2.8.0
 pyflakes==2.4.0
 pyparsing==3.0.9
 pyrsistent==0.18.1
-pytest==6.1.0
+pytest==6.1.2
 pytest-cov==3.0.0
 pytest-django==4.4.0
+pytest-forked==1.4.0
 pytest-rerunfailures==9.1.1
 pytest-sentry==0.1.9
+pytest-xdist==2.4.0
 python-dateutil==2.8.2
 pyupgrade==2.32.0
 pyyaml==6.0

+ 2 - 1
requirements-dev.txt

@@ -7,8 +7,9 @@ openapi-core>=0.14.2
 pytest>=6.1.0
 pytest-cov>=3.0.0
 pytest-django>=4.4.0
-pytest-sentry>=0.1.9
 pytest-rerunfailures>=9.1.1
+pytest-sentry>=0.1.9
+pytest-xdist
 responses>=0.10.12
 msgpack-types>=0.2.0