Skip to content

Commit 79d6893

Browse files
authored
Merge pull request #214 from DevoInc/213-update-several-dependencies
chore: Update several packages and lower closing socket log level message
2 parents 0b3d5b5 + d8c97e7 commit 79d6893

File tree

7 files changed

+42
-11
lines changed

7 files changed

+42
-11
lines changed

.pep8speaks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# File : .pep8speaks.yml
22

33
scanner:
4-
diff_only: True # Errors caused by only the patch are shown
4+
diff_only: True # Errors caused by only the patch are shown
5+
linter: pycodestyle # Alternative option - flake8
6+
7+
pycodestyle: # Same as scanner.linter value. Other option is flake8
8+
max-line-length: 99 # Default is 79 in PEP 8
9+
ignore: # Errors and warnings to ignore
10+
- E203 # whitespace before ':'
11+
- E501 # line too long
12+
- W503 # line break before binary operator
13+
- F401 # module imported but unused
14+
- F403 # 'from module import *' used; unable to detect undefined names

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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+
## [5.1.6] - 2023-10-05
8+
9+
### Changed
10+
11+
- `pyopenssl` dependency upgraded from `pyopenssl~=23.0` to `pyopenssl~=23.2`
12+
- `pytz` dependency upgraded from `pytz~=2019.3` to `pytz~=2023.3`
13+
- `responses` dependency upgraded from `responses~=0.22.0` to `responses~=0.23.3`
14+
- `urllib3` dependency upgraded from `urllib3~=1.26.5` to `urllib3~=2.0.6`
15+
- Log level demoted to warning while closing socket in sender data.
16+
717
## [5.1.5] - 2023-08-21
818

919
### 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__ = "5.1.5"
3+
__version__ = "5.1.6"
44
__author__ = "Devo"
55
__author_email__ = "support@devo.com"
66
__license__ = "MIT"

devo/sender/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ def close(self):
622622
self.socket.shutdown(SHUT_WR)
623623
self.__wait_for_EOF()
624624
except Exception: # Try else continue
625-
logging.exception(ERROR_MSGS.CLOSING_ERROR)
625+
logging.warning(ERROR_MSGS.CLOSING_ERROR)
626626
finally:
627627
self.socket.close()
628628
self.socket = None

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
stopit==1.1.2
22
msgpack~=1.0.4
3-
responses~=0.22.0
3+
responses~=0.23.3
44
pipdeptree~=2.5.0

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ click==8.1.7
22
PyYAML==6.0.1
33
requests~=2.31
44
pem~=21.2.0
5-
pyopenssl~=23.0
6-
urllib3~=1.26.5
7-
pytz~=2019.3
5+
pyopenssl~=23.2
6+
urllib3~=2.0.6
7+
pytz~=2023.3
88
certifi~=2023.7.22
99
cryptography~=41.0.3

setup.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,20 @@
3030
"click==8.1.7",
3131
"PyYAML==6.0.1",
3232
"pem~=21.2.0",
33-
"pyopenssl~=23.0",
34-
"urllib3~=1.26.5",
35-
"pytz~=2019.3",
33+
"pyopenssl~=23.2",
34+
"urllib3~=2.0.6",
35+
"pytz~=2023.3",
3636
"certifi~=2023.7.22",
3737
"cryptography~=41.0.3",
3838
]
39+
EXTRAS_REQUIRE = {
40+
"dev": [
41+
"stopit==1.1.2",
42+
"msgpack~=1.0.4",
43+
"responses~=0.23.3",
44+
"pipdeptree~=2.5.0"
45+
]
46+
}
3947
CLI = [
4048
"devo-sender=devo.sender.scripts.sender_cli:cli",
4149
"devo-api=devo.api.scripts.client_cli:cli",
@@ -59,7 +67,9 @@ def find_meta(meta):
5967
Extract __*meta*__ from META_FILE.
6068
"""
6169
meta_match = re.search(
62-
r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta), META_FILE, re.M
70+
r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta),
71+
META_FILE,
72+
re.M
6373
)
6474
if meta_match:
6575
return meta_match.group(1)
@@ -85,5 +95,6 @@ def find_meta(meta):
8595
classifiers=CLASSIFIERS,
8696
packages=PACKAGES,
8797
install_requires=INSTALL_REQUIRES,
98+
extras_require=EXTRAS_REQUIRE,
8899
entry_points={"console_scripts": CLI},
89100
)

0 commit comments

Comments
 (0)