Skip to content

Commit 5c4d2db

Browse files
committed
Add faster-cache extra, test in CI (#17978)
Follow up to #17955
1 parent 854ad18 commit 5c4d2db

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def run(self):
232232
"python2": "",
233233
"reports": "lxml",
234234
"install-types": "pip",
235+
"faster-cache": "orjson",
235236
},
236237
python_requires=">=3.8",
237238
include_package_data=True,

tox.ini

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ passenv =
1919
PROGRAMDATA
2020
PROGRAMFILES(X86)
2121
PYTEST_ADDOPTS
22-
deps = -rtest-requirements.txt
22+
deps =
23+
-r test-requirements.txt
24+
# This is a bit of a hack, but ensures the faster-cache path is tested in CI
25+
orjson;python_version=='3.12'
2326
commands = python -m pytest {posargs}
2427

2528
[testenv:dev]
2629
description = generate a DEV environment, that has all project libraries
2730
usedevelop = True
2831
deps =
29-
-rtest-requirements.txt
30-
-rdocs/requirements-docs.txt
32+
-r test-requirements.txt
33+
-r docs/requirements-docs.txt
3134
commands =
3235
python -m pip list --format=columns
3336
python -c 'import sys; print(sys.executable)'
@@ -37,7 +40,7 @@ commands =
3740
description = invoke sphinx-build to build the HTML docs
3841
passenv =
3942
VERIFY_MYPY_ERROR_CODES
40-
deps = -rdocs/requirements-docs.txt
43+
deps = -r docs/requirements-docs.txt
4144
commands =
4245
sphinx-build -n -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
4346
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

0 commit comments

Comments
 (0)