Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add faster-cache extra, test in CI #17978

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def run(self):
"python2": "",
"reports": "lxml",
"install-types": "pip",
"faster-cache": "orjson",
},
python_requires=">=3.8",
include_package_data=True,
Expand Down
11 changes: 7 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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.12'
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)'
Expand All @@ -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"))'
Expand Down
Loading