From 96e9156f34b1258108a13d77968acac713686a4f Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Wed, 16 Oct 2024 19:13:59 -0700 Subject: [PATCH 1/2] Add faster-cache extra, test in CI --- setup.py | 1 + tox.ini | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index a50afde4ce6b..71124916a3e4 100644 --- a/setup.py +++ b/setup.py @@ -232,6 +232,7 @@ def run(self): "python2": "", "reports": "lxml", "install-types": "pip", + "faster-cache": "orjson", }, python_requires=">=3.8", include_package_data=True, diff --git a/tox.ini b/tox.ini index 7f89b7d4f7ef..704b8769af7b 100644 --- a/tox.ini +++ b/tox.ini @@ -20,15 +20,18 @@ passenv = PROGRAMDATA PROGRAMFILES(X86) PYTEST_ADDOPTS -deps = -rtest-requirements.txt +deps = + -r test-requirements.txt + # This is a bit of a hack, but ensures the faster-cache path is tested in CI + orjson;python_version=='3.11' commands = python -m pytest {posargs} [testenv:dev] description = generate a DEV environment, that has all project libraries usedevelop = True deps = - -rtest-requirements.txt - -rdocs/requirements-docs.txt + -r test-requirements.txt + -r docs/requirements-docs.txt commands = python -m pip list --format=columns python -c 'import sys; print(sys.executable)' @@ -38,7 +41,7 @@ commands = description = invoke sphinx-build to build the HTML docs passenv = VERIFY_MYPY_ERROR_CODES -deps = -rdocs/requirements-docs.txt +deps = -r docs/requirements-docs.txt commands = sphinx-build -n -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs} python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))' From 8eb5b6df7cb67e98482e194f8d500b082accb1bb Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Wed, 16 Oct 2024 19:39:18 -0700 Subject: [PATCH 2/2] change test to 3.12 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 704b8769af7b..a505950521fa 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ passenv = deps = -r test-requirements.txt # This is a bit of a hack, but ensures the faster-cache path is tested in CI - orjson;python_version=='3.11' + orjson;python_version=='3.12' commands = python -m pytest {posargs} [testenv:dev]