Skip to content

Commit c62f89b

Browse files
authored
Merge pull request #296 from DevoInc/data-logging
Data logging
2 parents 25a56f6 + 75e1d50 commit c62f89b

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

.github/workflows/python-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
max-parallel: 1
2929
matrix:
30-
version: [ "3.12", "3.11", "3.10", "3.9" ]
30+
version: [ "3.13", "3.12", "3.11", "3.10", "3.9" ]
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [6.0.1] - 2025-02-05
8+
9+
### Added
10+
- Added Python 3.13 support
11+
12+
### Changed
13+
- Change logger name in `common/sender/data.py` so it logs to `devo.data` instead to ROOT
14+
15+
### Fixed
16+
- Bump security libraries to updated versions
17+
- `test_api_cli` corrected as error code changed nomenclature
18+
19+
720
## [6.0.0] - 2024-10-07
821

922
### Changed

devo/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__description__ = "Devo Python Library."
22
__url__ = "http://www.devo.com"
3-
__version__ = "6.0.0"
3+
__version__ = "6.0.1"
44
__author__ = "Devo"
55
__author_email__ = "[email protected]"
66
__license__ = "MIT"

devo/sender/data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
PYPY = hasattr(sys, "pypy_version_info")
3030

31+
log = logging.getLogger(__name__)
32+
3133

3234
class ERROR_MSGS(str, Enum):
3335

@@ -764,7 +766,7 @@ def close(self):
764766
self.socket.shutdown(SHUT_WR)
765767
self.__wait_for_EOF()
766768
except Exception: # Try else continue
767-
logging.warning(ERROR_MSGS.CLOSING_ERROR)
769+
log.warning(ERROR_MSGS.CLOSING_ERROR)
768770
finally:
769771
self.socket.close()
770772
self.socket = None

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
click==8.1.7
1+
click==8.1.8
22
PyYAML~=6.0.1
33
requests~=2.32
44
pem~=21.2.0
5-
pyopenssl~=24.2.1
5+
pyopenssl~=25.0.0
66
pytz~=2024.1
7-
certifi~=2024.7.4
8-
cryptography~=43.0.1
7+
certifi~=2025.1.31
8+
cryptography~=44.0.0

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
2424
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
2526
"Programming Language :: Python :: Implementation :: CPython",
2627
"Programming Language :: Python :: Implementation :: PyPy",
2728
"Topic :: Software Development :: Libraries :: Python Modules",
2829
]
2930
INSTALL_REQUIRES = [
3031
"requests~=2.32",
31-
"click==8.1.7",
32+
"click==8.1.8",
3233
"PyYAML~=6.0.1",
3334
"pem~=21.2.0",
34-
"pyopenssl~=24.2.1",
35+
"pyopenssl~=25.0.0",
3536
"pytz~=2024.1",
36-
"certifi~=2024.7.4",
37-
"cryptography~=43.0.1",
37+
"certifi~=2025.1.31",
38+
"cryptography~=44.0.0",
3839
]
3940
EXTRAS_REQUIRE = {
4041
"dev": [

tests/integration/test_api_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def test_bad_credentials(api_config):
201201
],
202202
)
203203
assert isinstance(result.exception, DevoClientException)
204-
assert result.exception.code == 12
204+
assert result.exception.code in [5, 12]
205205

206206

207207
@pytest.mark.timeout(180)

0 commit comments

Comments
 (0)