diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9179b31d..caab31bf 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,9 +2,15 @@ version: 2 updates: - package-ecosystem: pip - directory: / + directory: /dependencies/default schedule: - interval: daily + interval: weekly + open-pull-requests-limit: 10 + target-branch: master +- package-ecosystem: pip + directory: /dependencies/pytest-min + schedule: + interval: weekly open-pull-requests-limit: 10 target-branch: master - package-ecosystem: github-actions diff --git a/dependencies/default/constraints.txt b/dependencies/default/constraints.txt new file mode 100644 index 00000000..a9a0844c --- /dev/null +++ b/dependencies/default/constraints.txt @@ -0,0 +1,24 @@ +async-generator==1.10 +attrs==21.4.0 +coverage==6.3.2 +flaky==3.7.0 +hypothesis==6.39.6 +idna==3.3 +importlib-metadata==4.11.3 +iniconfig==1.1.1 +mypy==0.942 +mypy-extensions==0.4.3 +outcome==1.1.0 +packaging==21.3 +pluggy==1.0.0 +py==1.11.0 +pyparsing==3.0.7 +pytest==7.1.1 +pytest-trio==0.7.0 +sniffio==1.2.0 +sortedcontainers==2.4.0 +tomli==2.0.1 +trio==0.20.0 +typed-ast==1.5.2 +typing_extensions==4.1.1 +zipp==3.7.0 diff --git a/dependencies/default/requirements.txt b/dependencies/default/requirements.txt new file mode 100644 index 00000000..01b2484e --- /dev/null +++ b/dependencies/default/requirements.txt @@ -0,0 +1,4 @@ +# Always adjust install_requires in setup.cfg and pytest-min-requirements.txt +# when changing runtime dependencies +pytest >= 6.1.0 +typing-extensions >= 3.7.2; python_version < "3.8" diff --git a/dependencies/pytest-min/constraints.txt b/dependencies/pytest-min/constraints.txt new file mode 100644 index 00000000..e08c0f1b --- /dev/null +++ b/dependencies/pytest-min/constraints.txt @@ -0,0 +1,22 @@ +async-generator==1.10 +attrs==21.4.0 +coverage==6.3.2 +flaky==3.7.0 +hypothesis==6.39.6 +idna==3.3 +iniconfig==1.1.1 +mypy==0.942 +mypy-extensions==0.4.3 +outcome==1.1.0 +packaging==21.3 +pluggy==0.13.1 +py==1.11.0 +pyparsing==3.0.7 +pytest==6.1.0 +pytest-trio==0.7.0 +sniffio==1.2.0 +sortedcontainers==2.4.0 +toml==0.10.2 +tomli==2.0.1 +trio==0.20.0 +typing_extensions==4.1.1 diff --git a/dependencies/pytest-min/requirements.txt b/dependencies/pytest-min/requirements.txt new file mode 100644 index 00000000..4fc6ef2f --- /dev/null +++ b/dependencies/pytest-min/requirements.txt @@ -0,0 +1,4 @@ +# Always adjust install_requires in setup.cfg and requirements.txt +# when changing minimum version dependencies +pytest == 6.1.0 +typing-extensions >= 3.7.2; python_version < "3.8" diff --git a/setup.cfg b/setup.cfg index 7b684e0f..a0e08d97 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,16 +34,17 @@ python_requires = >=3.7 packages = find: include_package_data = True +# Always adjust requirements.txt and pytest-min-requirements.txt when changing runtime dependencies install_requires = pytest >= 6.1.0 typing-extensions >= 3.7.2; python_version < "3.8" [options.extras_require] testing = - coverage==6.2 + coverage >= 6.2 hypothesis >= 5.7.1 flaky >= 3.5.0 - mypy == 0.931 + mypy >= 0.931 pytest-trio >= 0.7.0 [options.entry_points] diff --git a/tox.ini b/tox.ini index 00d45222..83cae521 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,8 @@ passenv = [testenv] extras = testing deps = - pytest == 6.2.5 # required for Python 3.10, not bad for others + --requirement dependencies/default/requirements.txt + --constraint dependencies/default/constraints.txt commands = make test allowlist_externals = make @@ -16,7 +17,8 @@ allowlist_externals = [testenv:pytest-min] extras = testing deps = - pytest == 6.1.0 + --requirement dependencies/pytest-min/requirements.txt + --constraint dependencies/pytest-min/constraints.txt commands = make test allowlist_externals = make