Skip to content
Open
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 MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include runpod/py.typed
include runpod/serverless/binaries/gpu_test
include runpod/serverless/binaries/README.md
include build_tools/gpu_test.c
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ include-package-data = true

[tool.setuptools.package-data]
runpod = [
"py.typed",
"serverless/binaries/gpu_test",
"serverless/binaries/README.md",
Comment on lines 51 to 55
]
Expand All @@ -69,7 +70,7 @@ dev = [
"twine>=6.1.0",
]
test = [
"asynctest",
"nest_asyncio",
"faker",
"pytest-asyncio",
"pytest-cov",
Expand Down
9 changes: 1 addition & 8 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
[pytest]
addopts = --durations=10 --cov-config=.coveragerc --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=90 -p no:cacheprovider -p no:unraisableexception
filterwarnings =
error
# Third-party deps (e.g. backoff) still call asyncio APIs that 3.14 deprecates
# and slates for removal in 3.16. The SDK's own code does not; at runtime these
# only warn. Don't fail the suite on them until the deps update.
ignore:'asyncio\.get_event_loop_policy' is deprecated:DeprecationWarning
ignore:'asyncio\.iscoroutinefunction' is deprecated:DeprecationWarning
addopts = --durations=10 --cov-config=pyproject.toml --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=90 -W error -W ignore::DeprecationWarning:backoff\._decorator -p no:cacheprovider -p no:unraisableexception
python_files = tests.py test_*.py *_test.py
norecursedirs = venv *.egg-info .git build tests/e2e
asyncio_mode = auto
Expand Down
Empty file added runpod/py.typed
Empty file.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

extras_require = {
"test": [
"asynctest",
"faker",
"nest_asyncio",
"pytest",
Expand Down Expand Up @@ -60,6 +59,7 @@
include_package_data=True,
package_data={
"runpod": [
"py.typed",
"serverless/binaries/gpu_test",
"serverless/binaries/README.md",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

import asyncio
import inspect
from unittest.mock import patch, MagicMock, AsyncMock

import pytest
Expand Down Expand Up @@ -582,7 +583,7 @@ async def test_all_checks_pass_healthy_system(

# Should complete without exceptions
for check in _fitness_checks:
if asyncio.iscoroutinefunction(check):
if inspect.iscoroutinefunction(check):
await check()
else:
check()
Expand Down