From d7e6e56320d295a40b4870ae6ff4a8c7603ffd6f Mon Sep 17 00:00:00 2001 From: Cristiano Nicolai <570894+cristianonicolai@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:08:58 +1000 Subject: [PATCH] Rename constraints to requirements (#243) --- .config/constraints.txt | 87 -------------------------------------- .config/requirements.in | 3 ++ .config/requirements.txt | 90 ++++++++++++++++++++++++++++++++++++++-- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- tox.ini | 2 +- 6 files changed, 93 insertions(+), 93 deletions(-) delete mode 100644 .config/constraints.txt create mode 100644 .config/requirements.in diff --git a/.config/constraints.txt b/.config/constraints.txt deleted file mode 100644 index f3a0f43a..00000000 --- a/.config/constraints.txt +++ /dev/null @@ -1,87 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.10 -# by the following command: -# -# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/constraints.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml -# -ansible-compat==4.1.10 -ansible-core==2.16.2 -attrs==23.2.0 -babel==2.14.0 -beautifulsoup4==4.12.2 -bracex==2.4 -cairocffi==1.6.1 -cairosvg==2.7.1 -certifi==2023.11.17 -cffi==1.16.0 -charset-normalizer==3.3.2 -click==8.1.7 -click-help-colors==0.9.4 -colorama==0.4.6 -coverage==7.4.0 -cryptography==41.0.7 -csscompressor==0.9.5 -cssselect2==0.7.0 -defusedxml==0.7.1 -enrich==1.2.7 -exceptiongroup==1.2.0 -ghp-import==2.1.0 -griffe==0.38.1 -htmlmin2==0.1.13 -idna==3.6 -iniconfig==2.0.0 -jinja2==3.1.2 -jsmin==3.0.1 -jsonschema==4.20.0 -jsonschema-specifications==2023.12.1 -markdown==3.5.1 -markdown-exec==1.8.0 -markdown-include==0.8.1 -markdown-it-py==3.0.0 -markupsafe==2.1.3 -mdurl==0.1.2 -mergedeep==1.3.4 -mkdocs==1.5.3 -mkdocs-ansible==0.2.0 -mkdocs-autorefs==0.5.0 -mkdocs-gen-files==0.5.0 -mkdocs-htmlproofer-plugin==1.0.0 -mkdocs-material==9.5.3 -mkdocs-material-extensions==1.3.1 -mkdocs-minify-plugin==0.7.2 -mkdocs-monorepo-plugin==1.1.0 -mkdocstrings==0.24.0 -mkdocstrings-python==1.7.5 -molecule==6.0.3 -packaging==23.2 -paginate==0.5.6 -pathspec==0.12.1 -pillow==10.2.0 -pipdeptree==2.13.1 -platformdirs==4.1.0 -pluggy==1.3.0 -pycparser==2.21 -pygments==2.17.2 -pymdown-extensions==10.7 -pytest==7.4.4 -pytest-plus==0.6.0 -python-dateutil==2.8.2 -python-slugify==8.0.1 -pyyaml==6.0.1 -pyyaml-env-tag==0.1 -referencing==0.32.1 -regex==2023.12.25 -requests==2.31.0 -resolvelib==1.0.1 -rich==13.7.0 -rpds-py==0.16.2 -six==1.16.0 -soupsieve==2.5 -subprocess-tee==0.4.1 -text-unidecode==1.3 -tinycss2==1.2.1 -tomli==2.0.1 -urllib3==2.1.0 -watchdog==3.0.0 -wcmatch==8.5 -webencodings==0.5.1 diff --git a/.config/requirements.in b/.config/requirements.in new file mode 100644 index 00000000..f2d267d7 --- /dev/null +++ b/.config/requirements.in @@ -0,0 +1,3 @@ +ansible-core>=2.14 +pytest>=6,<8.0.0 +packaging diff --git a/.config/requirements.txt b/.config/requirements.txt index f2d267d7..1b39bc3c 100644 --- a/.config/requirements.txt +++ b/.config/requirements.txt @@ -1,3 +1,87 @@ -ansible-core>=2.14 -pytest>=6,<8.0.0 -packaging +# +# This file is autogenerated by pip-compile with Python 3.10 +# by the following command: +# +# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml +# +ansible-compat==4.1.10 +ansible-core==2.16.2 +attrs==23.2.0 +babel==2.14.0 +beautifulsoup4==4.12.2 +bracex==2.4 +cairocffi==1.6.1 +cairosvg==2.7.1 +certifi==2023.11.17 +cffi==1.16.0 +charset-normalizer==3.3.2 +click==8.1.7 +click-help-colors==0.9.4 +colorama==0.4.6 +coverage==7.4.0 +cryptography==41.0.7 +csscompressor==0.9.5 +cssselect2==0.7.0 +defusedxml==0.7.1 +enrich==1.2.7 +exceptiongroup==1.2.0 +ghp-import==2.1.0 +griffe==0.38.1 +htmlmin2==0.1.13 +idna==3.6 +iniconfig==2.0.0 +jinja2==3.1.2 +jsmin==3.0.1 +jsonschema==4.20.0 +jsonschema-specifications==2023.12.1 +markdown==3.5.1 +markdown-exec==1.8.0 +markdown-include==0.8.1 +markdown-it-py==3.0.0 +markupsafe==2.1.3 +mdurl==0.1.2 +mergedeep==1.3.4 +mkdocs==1.5.3 +mkdocs-ansible==0.2.0 +mkdocs-autorefs==0.5.0 +mkdocs-gen-files==0.5.0 +mkdocs-htmlproofer-plugin==1.0.0 +mkdocs-material==9.5.3 +mkdocs-material-extensions==1.3.1 +mkdocs-minify-plugin==0.7.2 +mkdocs-monorepo-plugin==1.1.0 +mkdocstrings==0.24.0 +mkdocstrings-python==1.7.5 +molecule==6.0.3 +packaging==23.2 +paginate==0.5.6 +pathspec==0.12.1 +pillow==10.2.0 +pipdeptree==2.13.1 +platformdirs==4.1.0 +pluggy==1.3.0 +pycparser==2.21 +pygments==2.17.2 +pymdown-extensions==10.7 +pytest==7.4.4 +pytest-plus==0.6.0 +python-dateutil==2.8.2 +python-slugify==8.0.1 +pyyaml==6.0.1 +pyyaml-env-tag==0.1 +referencing==0.32.1 +regex==2023.12.25 +requests==2.31.0 +resolvelib==1.0.1 +rich==13.7.0 +rpds-py==0.16.2 +six==1.16.0 +soupsieve==2.5 +subprocess-tee==0.4.1 +text-unidecode==1.3 +tinycss2==1.2.1 +tomli==2.0.1 +urllib3==2.1.0 +watchdog==3.0.0 +wcmatch==8.5 +webencodings==0.5.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ed50510..3a0eb37e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -104,7 +104,7 @@ repos: name: deps alias: deps always_run: true - entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/constraints.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib + entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib files: ^.config\/.*requirements.*$ language: python language_version: "3.10" # minimal we support officially diff --git a/pyproject.toml b/pyproject.toml index 1a29f8f4..d1bcab1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -169,7 +169,7 @@ lines-between-types = 1 # Separate import/from with 1 line optional-dependencies.docs = { file = [".config/docs-requirements.txt"] } optional-dependencies.test = { file = [".config/test-requirements.txt"] } optional-dependencies.lock = { file = [".config/lock-requirements.txt"] } -dependencies = { file = [".config/requirements.txt"] } +dependencies = { file = [".config/requirements.in"] } [tool.setuptools_scm] local_scheme = "no-local-version" diff --git a/tox.ini b/tox.ini index c9e35f30..54fa8e41 100644 --- a/tox.ini +++ b/tox.ini @@ -38,7 +38,7 @@ setenv = COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} COVERAGE_PROCESS_START={toxinidir}/pyproject.toml FORCE_COLOR = 1 - PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt + PIP_CONSTRAINT = {toxinidir}/.config/requirements.txt devel: PIP_CONSTRAINT = /dev/null extras = test