Skip to content

Commit cef7d4c

Browse files
Merge pull request #304 from DevoInc/feature/update-dependencies
Feature/update dependencies
2 parents cc47227 + fe9d82d commit cef7d4c

File tree

15 files changed

+185
-108
lines changed

15 files changed

+185
-108
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.13", "3.12", "3.11", "3.10", "3.9" ]
30+
version: [ "3.13", "3.12", "3.11", "3.10" ]
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ celerybeat-schedule
9191
# Environments
9292
.env
9393
.venv
94+
.venv*/
9495
env/
9596
venv/
9697
ENV/

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ 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.7] - 2026-02-11
8+
9+
### Changed
10+
- Changed some dependencies:
11+
12+
| Dependency | From | To |
13+
| ------------ | ----------- | --------------------------- |
14+
| click | ==8.3.1 | ~=8.3.1 |
15+
| pem | ~=21.2.0 | ~=23.1.0 |
16+
| cryptography | ~=44.0.3 | Removed (transitive via pyOpenSSL) |
17+
| certifi | ~=2026.1.4 | Removed (transitive via requests) |
18+
719
## [6.0.6] - 2025-05-26
820

921
### Fix

README.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,50 +121,47 @@ Devo account owns. Administrator users can find them in **Administration** → *
121121

122122
### Pytest
123123

124-
The SDK uses Pytest for testing. This is a powerful tool for testing Python code. Pytest is a much more flexible and powerful tool than the built-in unittest module. It allows more testing functionality through the use of plugins. You can find more information in the [Pytest documentation](https://docs.pytest.org/en/stable/).
125-
126-
Install the testing requirements:
124+
The SDK uses [Pytest](https://docs.pytest.org/en/stable/) for testing. Install the package and testing requirements, then run tests from the **project root**:
127125

128126
```console
127+
pip install -e .
129128
pip install -r requirements-test.txt
130129
```
131130

132-
You can run tests from the `tests` folder of SDK
131+
**Run all tests:**
133132

134133
```console
135-
pytest
134+
python -m pytest tests/
136135
```
137136

138-
Its normal that TCP tests fails in clients or not Devo developers systems.
139-
140-
You can add the option `--cov` to create a coverage report.
137+
**Run only unit tests:**
141138

142139
```console
143-
pytest --cov
140+
python -m pytest tests/unit/
144141
```
145142

146-
Check the [pytest-cov documentation](https://pytest-cov.readthedocs.io/) for more details.
147-
148-
The tests are divided into unit and integration tests. The integration tests require either a connection to Devo or to a local server that is launched when testing, so you need to have the environment variables in your system for all the tests that require connection to Devo can work.
149-
150-
To run the unit tests only, you can use the `unit` folder:
143+
**Run only integration tests:**
151144

152145
```console
153-
pytest unit
146+
python -m pytest tests/integration/
154147
```
155148

156-
To run the integration tests only, you can use the `integration` folder:
149+
**Run a single test file:**
157150

158151
```console
159-
pytest integration
152+
python -m pytest tests/unit/test_sender_encoding.py
160153
```
161154

162-
You can also run the test for just one module. This is a useful feature if you are developing functionality in just one module.
155+
**Run with coverage report:**
163156

164157
```console
165-
pytest unit/test_sender_encoding.py
158+
python -m pytest tests/ --cov
166159
```
167160

161+
See the [pytest-cov documentation](https://pytest-cov.readthedocs.io/) for coverage options.
162+
163+
Integration tests need either a connection to Devo or a local server started by the test run; some tests also require environment variables (e.g. `DEVO_API_KEY`, `DEVO_API_SECRET`) or certificate paths. It is normal for integration tests that require Devo credentials or remote certs to be skipped or fail when those are not configured.
164+
168165
### Contact Us
169166

170167
You can contact with us at _support@devo.com_.

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.6"
3+
__version__ = "6.0.7"
44
__author__ = "Devo"
55
__author_email__ = "support@devo.com"
66
__license__ = "MIT"

devo/sender/scripts/sender_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def data(**kwargs):
245245
help="Detect types of fields. Default: False",
246246
default=False,
247247
)
248-
@click.option("--delimiter", "-d", help="CSV Delimiter char.", default=",")
248+
@click.option("--delimiter", help="CSV Delimiter char.", default=",")
249249
@click.option("--quotechar", "-qc", help="CSV Quote char.", default='"')
250250
@click.option(
251251
"--escapequotes",

pytest.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pytest]
2+
# Suppress known third-party and SDK deprecation warnings so test output stays clean
3+
filterwarnings =
4+
ignore:Passing pyOpenSSL PKey objects is deprecated:DeprecationWarning:OpenSSL*
5+
ignore:Passing pyOpenSSL X509 objects is deprecated:DeprecationWarning:OpenSSL*
6+
ignore:The lookup upload functionality based on:DeprecationWarning
7+
ignore:The parameter -d is used more than once:UserWarning:click*

requirements-test.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
msgpack~=1.0.8
2-
responses~=0.25.3
3-
pipdeptree~=2.23.0
4-
pytest~=8.2.2
1+
mock~=5.2.0
2+
msgpack~=1.1.2
3+
pebble~=5.1.3
4+
pipdeptree~=2.30.0
5+
pytest~=8.4.2
56
pytest-cov~=5.0.0
6-
mock==5.1.0
7-
pebble==5.0.7
8-
pytest-timeout~=2.3.1
7+
pytest-timeout~=2.4.0
8+
responses~=0.25.8

requirements.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
click==8.1.8
2-
PyYAML~=6.0.1
1+
click~=8.3.1
2+
pem~=23.1.0
3+
pyopenssl~=25.3.0
4+
pyyaml~=6.0.3
5+
pytz~=2025.2
36
requests~=2.32
4-
pem~=21.2.0
5-
pyopenssl~=25.0.0
6-
pytz~=2024.1
7-
certifi~=2025.1.31
8-
cryptography~=44.0.0

setup.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,23 @@
2828
"Topic :: Software Development :: Libraries :: Python Modules",
2929
]
3030
INSTALL_REQUIRES = [
31+
"click~=8.3.1",
32+
"pem~=23.1.0",
33+
"pyopenssl~=25.3.0",
34+
"pytz~=2025.2",
35+
"pyyaml~=6.0.3",
3136
"requests~=2.32",
32-
"click==8.1.8",
33-
"PyYAML~=6.0.1",
34-
"pem~=21.2.0",
35-
"pyopenssl~=25.0.0",
36-
"pytz~=2024.1",
37-
"certifi~=2025.1.31",
38-
"cryptography~=44.0.0",
3937
]
4038
EXTRAS_REQUIRE = {
4139
"dev": [
42-
"msgpack~=1.0.8",
43-
"responses~=0.25.3",
44-
"pipdeptree~=2.23.0",
45-
"pytest~=8.2.2",
40+
"mock~=5.2.0",
41+
"msgpack~=1.1.2",
42+
"pebble~=5.1.3",
43+
"pipdeptree~=2.30.0",
44+
"pytest~=8.4.2",
4645
"pytest-cov~=5.0.0",
47-
"mock~=5.1.0",
48-
"pebble~=5.0.7"
46+
"pytest-timeout~=2.4.0",
47+
"responses~=0.25.8",
4948
]
5049
}
5150
CLI = [

0 commit comments

Comments
 (0)