Skip to content

Commit

Permalink
Merge pull request #214 from DevoInc/213-update-several-dependencies
Browse files Browse the repository at this point in the history
chore: Update several packages and lower closing socket log level message
  • Loading branch information
angel-devo committed Oct 5, 2023
2 parents 0b3d5b5 + d8c97e7 commit 79d6893
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 11 deletions.
12 changes: 11 additions & 1 deletion .pep8speaks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# File : .pep8speaks.yml

scanner:
diff_only: True # Errors caused by only the patch are shown
diff_only: True # Errors caused by only the patch are shown
linter: pycodestyle # Alternative option - flake8

pycodestyle: # Same as scanner.linter value. Other option is flake8
max-line-length: 99 # Default is 79 in PEP 8
ignore: # Errors and warnings to ignore
- E203 # whitespace before ':'
- E501 # line too long
- W503 # line break before binary operator
- F401 # module imported but unused
- F403 # 'from module import *' used; unable to detect undefined names
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

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).

## [5.1.6] - 2023-10-05

### Changed

- `pyopenssl` dependency upgraded from `pyopenssl~=23.0` to `pyopenssl~=23.2`
- `pytz` dependency upgraded from `pytz~=2019.3` to `pytz~=2023.3`
- `responses` dependency upgraded from `responses~=0.22.0` to `responses~=0.23.3`
- `urllib3` dependency upgraded from `urllib3~=1.26.5` to `urllib3~=2.0.6`
- Log level demoted to warning while closing socket in sender data.

## [5.1.5] - 2023-08-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion devo/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__description__ = "Devo Python Library."
__url__ = "http://www.devo.com"
__version__ = "5.1.5"
__version__ = "5.1.6"
__author__ = "Devo"
__author_email__ = "support@devo.com"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion devo/sender/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def close(self):
self.socket.shutdown(SHUT_WR)
self.__wait_for_EOF()
except Exception: # Try else continue
logging.exception(ERROR_MSGS.CLOSING_ERROR)
logging.warning(ERROR_MSGS.CLOSING_ERROR)
finally:
self.socket.close()
self.socket = None
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
stopit==1.1.2
msgpack~=1.0.4
responses~=0.22.0
responses~=0.23.3
pipdeptree~=2.5.0
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ click==8.1.7
PyYAML==6.0.1
requests~=2.31
pem~=21.2.0
pyopenssl~=23.0
urllib3~=1.26.5
pytz~=2019.3
pyopenssl~=23.2
urllib3~=2.0.6
pytz~=2023.3
certifi~=2023.7.22
cryptography~=41.0.3
19 changes: 15 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@
"click==8.1.7",
"PyYAML==6.0.1",
"pem~=21.2.0",
"pyopenssl~=23.0",
"urllib3~=1.26.5",
"pytz~=2019.3",
"pyopenssl~=23.2",
"urllib3~=2.0.6",
"pytz~=2023.3",
"certifi~=2023.7.22",
"cryptography~=41.0.3",
]
EXTRAS_REQUIRE = {
"dev": [
"stopit==1.1.2",
"msgpack~=1.0.4",
"responses~=0.23.3",
"pipdeptree~=2.5.0"
]
}
CLI = [
"devo-sender=devo.sender.scripts.sender_cli:cli",
"devo-api=devo.api.scripts.client_cli:cli",
Expand All @@ -59,7 +67,9 @@ def find_meta(meta):
Extract __*meta*__ from META_FILE.
"""
meta_match = re.search(
r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta), META_FILE, re.M
r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta),
META_FILE,
re.M
)
if meta_match:
return meta_match.group(1)
Expand All @@ -85,5 +95,6 @@ def find_meta(meta):
classifiers=CLASSIFIERS,
packages=PACKAGES,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points={"console_scripts": CLI},
)

0 comments on commit 79d6893

Please sign in to comment.