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

Change is_pytest to use PYTEST_VERSION #771

Merged
merged 5 commits into from
Oct 1, 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
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ dev = [
"numpy >= 2.0.2, < 2.1",
"optuna >= 4.0.0, < 4.1",
"orjson >= 3.10.7, < 3.11",
"polars-lts-cpu >= 1.6.0, < 1.7",
"polars-lts-cpu >= 1.8.0, < 1.9",
"pqdm >= 0.2.0, < 0.3",
"psycopg2-binary >= 2.9.9, < 2.10", # for sqlalchemy
"pydantic >= 2.9.0, < 2.10",
"pyhumps >= 3.8.0, < 3.9",
"pyinstrument >= 4.7.3, < 4.8",
"pypiserver[passlib] >= 2.1.1, < 2.2",
"pypiserver[passlib] >= 2.2.0, < 2.3",
"pytest >= 8.3.3, < 8.4",
"python-dotenv >= 1.0.1, < 1.1",
"redis >= 5.1.0, < 5.2",
"rich >= 13.8.1, < 13.9",
"rich >= 13.9.0, < 13.10",
"scipy >= 1.14.1, < 1.15",
"slack-sdk >= 3.33.0, < 3.34",
"sqlalchemy >= 2.0.35, < 2.1",
Expand Down Expand Up @@ -84,7 +84,7 @@ dev = [
scripts-pypi-server = [
"click >= 8.1.7, < 8.2",
"loguru >= 0.7.2, < 0.8",
"pypiserver[passlib] >= 2.1.1, < 2.2",
"pypiserver[passlib] >= 2.2.0, < 2.3",
"typed-settings >= 24.5.0, < 24.6",
]
test = [
Expand Down Expand Up @@ -206,7 +206,7 @@ zzz-test-scipy = ["scipy >= 1.14.1, < 1.15"]
zzz-test-scripts-pypi-server = [
"click >= 8.1.7, < 8.2",
"loguru >= 0.7.2, < 0.8",
"pypiserver[passlib] >= 2.1.1, < 2.2",
"pypiserver[passlib] >= 2.2.0, < 2.3",
"typed-settings >= 24.5.0, < 24.6",
]
zzz-test-sentinel = []
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --extra=dev --prerelease=explicit --output-file=requirements.txt --python-version=3.11 pyproject.toml
aiohappyeyeballs==2.4.2
aiohappyeyeballs==2.4.3
# via aiohttp
aiohttp==3.10.8
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -186,7 +186,7 @@ multidict==6.1.0
# via
# aiohttp
# yarl
narwhals==1.8.4
narwhals==1.9.0
# via altair
nest-asyncio==1.6.0
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -262,7 +262,7 @@ pluggy==1.5.0
# via
# hatchling
# pytest
polars-lts-cpu==1.6.0
polars-lts-cpu==1.8.2
# via dycw-utilities (pyproject.toml)
pqdm==0.2.0
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -296,7 +296,7 @@ pyhumps==3.8.0
# via dycw-utilities (pyproject.toml)
pyinstrument==4.7.3
# via dycw-utilities (pyproject.toml)
pypiserver==2.1.1
pypiserver==2.2.0
# via dycw-utilities (pyproject.toml)
pytest==8.3.3
# via
Expand Down Expand Up @@ -340,7 +340,7 @@ referencing==0.35.1
# jsonschema-specifications
requests==2.32.3
# via streamlit
rich==13.8.1
rich==13.9.0
# via
# dycw-utilities (pyproject.toml)
# hatch
Expand Down
2 changes: 1 addition & 1 deletion requirements/altair.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ lxml==5.3.0
# via pikepdf
markupsafe==2.1.5
# via jinja2
narwhals==1.8.4
narwhals==1.9.0
# via altair
packaging==24.1
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements/scripts-pypi-server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pip==24.2
# via pypiserver
pluggy==1.5.0
# via pytest
pypiserver==2.1.1
pypiserver==2.2.0
# via dycw-utilities (pyproject.toml)
pytest==8.3.3
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements/slack-sdk.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --extra=zzz-test-defaults --extra=zzz-test-slack-sdk --prerelease=disallow --output-file=requirements/slack-sdk.txt --python-version=3.11 pyproject.toml
aiohappyeyeballs==2.4.2
aiohappyeyeballs==2.4.3
# via aiohttp
aiohttp==3.10.8
# via dycw-utilities (pyproject.toml)
Expand Down
4 changes: 2 additions & 2 deletions requirements/streamlit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ markupsafe==2.1.5
# via jinja2
mdurl==0.1.2
# via markdown-it-py
narwhals==1.8.4
narwhals==1.9.0
# via altair
numpy==2.1.1
# via
Expand Down Expand Up @@ -96,7 +96,7 @@ referencing==0.35.1
# jsonschema-specifications
requests==2.32.3
# via streamlit
rich==13.8.1
rich==13.9.0
# via streamlit
rpds-py==0.20.0
# via
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "0.58.6"
__version__ = "0.58.7"
2 changes: 1 addition & 1 deletion src/utilities/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def pytest_configure(config):

def is_pytest() -> bool:
"""Check if `pytest` is running."""
return "PYTEST_CURRENT_TEST" in environ
return "PYTEST_VERSION" in environ


def node_id_to_path(
Expand Down