Skip to content

Commit 465998d

Browse files
authored
fix: Update signature for ignoring missing "RunTest" operation in pytest plugin (#125)
* Updated signature for missing RunTest error This updated signature captures both the old and new format for the missing operation. * Update build backend to use flit * chore: Update version to 1.15.2 and add changelog entry for pytest plugin fix * Update lock file * fix: Try to disable locked installs
1 parent 5179340 commit 465998d

8 files changed

Lines changed: 1266 additions & 1611 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222

2323
- uses: prefix-dev/setup-pixi@v0.8.5
2424
with:
25+
locked: false
2526
environments: docs
2627
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
2728
activate-environment: docs
@@ -54,6 +55,7 @@ jobs:
5455

5556
- uses: prefix-dev/setup-pixi@v0.8.5
5657
with:
58+
locked: false
5759
environments: docs
5860
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
5961
activate-environment: docs

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# AnyPyTools Change Log
22

3+
## v1.15.2
4+
5+
**Fixed:**
6+
Updated the pytest plugin to handles the way AnyBody 8.2 reports missing RunTest operations.
7+
8+
39
## v1.15.1
410

511
**Fixed:**

anypytools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"NORMAL_PRIORITY_CLASS",
3737
]
3838

39-
__version__ = "1.15.1"
39+
__version__ = "1.15.2"
4040

4141

4242
def print_versions():

anypytools/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def runtest(self):
414414
)
415415
if runtest_missing:
416416
runtest_errros = (
417-
"Error : Main.RunTest : Unresolved",
417+
"Main.RunTest : Unresolved",
418418
"Main.RunTest : Select Operation",
419419
"Error : run : command unexpected while",
420420
"Error : Main.RunTest.RunDurationCPUThread : Unresolved object",

pixi.lock

Lines changed: 1246 additions & 1595 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ pywin32="*"
2828
anypytools = {path="."}
2929

3030
[feature.build.dependencies]
31-
twine="*"
32-
[feature.build.pypi-dependencies]
33-
build="*"
31+
flit="*"
3432

3533
[feature.build.tasks]
3634
clean-build = "rm -rf build dist"
37-
pypi-upload = {args=["file"], cmd="twine upload dist/{{file}}"}
38-
build = {cmd="python -m build . --sdist"}
35+
publish = {cmd="op run --env-file=upload.env -- flit publish"}
36+
build = {cmd="flit build", depends-on=["clean-build"]}
3937

4038

4139
[feature.jupyter.dependencies]

pyproject.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22

3-
requires = ["setuptools", "wheel"]
4-
build-backend = "setuptools.build_meta"
3+
requires = ["flit_core >=3.2,<4"]
4+
build-backend = "flit_core.buildapi"
55

66
[project]
77
name = "anypytools"
@@ -17,6 +17,7 @@ classifiers=[
1717
"Programming Language :: Python :: 3.9",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
2021
"Framework :: Pytest",
2122
"Intended Audience :: Science/Research",
2223
"License :: OSI Approved :: MIT License",
@@ -42,12 +43,7 @@ full=[
4243
[project.urls]
4344
Homepage = "https://anybody-research-group.github.io/anypytools-docs/"
4445
Code = "https://github.com/AnyBody-Research-Group/AnyPyTools"
46+
Documentation = "https://anybody-research-group.github.io/anypytools-docs/"
4547

46-
[project.entry-points.pytest11]
48+
[project.entry-points."pytest11"]
4749
anypytools = "anypytools.pytest_plugin"
48-
49-
[tool.setuptools.dynamic]
50-
version = {attr = "anypytools.__version__"}
51-
52-
[tool.setuptools.packages.find]
53-
exclude = ["docs", "tests"]

upload.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FLIT_USERNAME="__token__"
2+
FLIT_PASSWORD="op://Employee/5ojfqrjvzcvnmt5s2zak26y3gq/password"

0 commit comments

Comments
 (0)