Skip to content

Commit 61ad5a4

Browse files
authored
Add faster-cache extra, test in CI (#17978)
Follow up to #17955
1 parent d1a7d09 commit 61ad5a4

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
@@ -20,15 +20,18 @@ passenv =
2020
PROGRAMDATA
2121
PROGRAMFILES(X86)
2222
PYTEST_ADDOPTS
23-
deps = -rtest-requirements.txt
23+
deps =
24+
-r test-requirements.txt
25+
# This is a bit of a hack, but ensures the faster-cache path is tested in CI
26+
orjson;python_version=='3.12'
2427
commands = python -m pytest {posargs}
2528

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

0 commit comments

Comments
 (0)