Skip to content
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# AnyPyTools Change Log

## v1.20.2

* Fixed a deprecation warning from the pytest plugin, and enable pytest 9 support.


## v1.20.1

* Fixed an issue with AnyPyTools when running directly in the main thread
Expand Down
2 changes: 1 addition & 1 deletion anypytools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"NORMAL_PRIORITY_CLASS",
]

__version__ = "1.20.1"
__version__ = "1.20.2"


def print_versions():
Expand Down
9 changes: 5 additions & 4 deletions anypytools/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ def change_dir(path):
os.chdir(prev_cwd)


def pytest_collect_file(parent, path):
def pytest_collect_file(parent, file_path):
"""Collect AnyScript test files."""
path = Path(path)
if path.suffix.lower() == ".any" and path.stem.lower().startswith("test_"):
return AnyTestFile.from_parent(parent, path=path)
if file_path.suffix.lower() == ".any" and file_path.stem.lower().startswith(
"test_"
):
return AnyTestFile.from_parent(parent, path=file_path)


def _format_switches(defs):
Expand Down
29 changes: 15 additions & 14 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ anypytools = {path= "."}

[package]
name = "anypytools"
version="1.20.1"
version="1.20.2"

[package.build]
backend = { name = "pixi-build-python", version = "*" }
Expand Down Expand Up @@ -57,7 +57,7 @@ ipywidgets = "*"
seaborn = ">=0.13.2,<0.14"

[feature.test.dependencies]
pytest="*"
pytest=">=9"
pytest-xdist = "*"
debugpy = "*"

Expand Down