Skip to content

Commit fa58ee5

Browse files
authored
Merge pull request #5 from judehung/update-readme-fix-unittest
fix: Stick the sdk with python 3.10 and fix minor unittest exception
2 parents 7613662 + dbe7fea commit fa58ee5

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The EdgeXFoundry Application Functions Software Development Kit (SDK) for Python
44

55
## Prerequisites
66

7-
This Python SDK is supported on Python 3.10 or later.
7+
This Python SDK is supported on Python 3.10.
88

99
## File Structure
1010

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ authors = [
1111
description = "The python-based SDK to support edgexfoundry application service"
1212
readme = "README.md"
1313
license = { text = "Apache 2 License" }
14-
requires-python = ">=3.10"
14+
requires-python = ">=3.10,<3.11"
1515
classifiers = [
1616
'License :: OSI Approved :: Apache Software License',
1717
'Intended Audience :: Developers',
1818
'Programming Language :: Python',
1919
'Programming Language :: Python :: 3',
20-
'Programming Language :: Python :: 3.10',
21-
'Programming Language :: Python :: 3.11'
20+
'Programming Language :: Python :: 3.10'
2221
]
2322

2423
[project.urls]
25-
Homepage = "https://github.com/IOTechSystems/app-functions-sdk-python"
26-
Issues = "https://github.com/IOTechSystems/app-functions-sdk-python/issues"
24+
Homepage = "https://github.com/edgexfoundry-holding/app-functions-sdk-python"
25+
Issues = "https://github.com/edgexfoundry-holding/app-functions-sdk-python/issues"

src/app_functions_sdk_py/bootstrap/metrics/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run(self, ctx_done: threading.Event, wg: WaitGroup):
111111
f"{self._interval} seconds")
112112

113113
def _run_loop(self, ctx_done: threading.Event, wg: WaitGroup):
114-
with FunctionExitCallback(wg.done()):
114+
with FunctionExitCallback(wg.done):
115115
while not self._stop_event.is_set():
116116
if ctx_done.is_set():
117117
self._stop_event.set()

0 commit comments

Comments
 (0)