Skip to content

Commit 92c96a1

Browse files
committed
DXE-4318 Use fixed versions of libraries in edgegrid-python
1 parent bdb0128 commit 92c96a1

File tree

5 files changed

+131
-19
lines changed

5 files changed

+131
-19
lines changed

HISTORY.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ X.X.X (X-X-X)
77
++++++++++++++++++
88

99
* Breaking changes
10-
- discontinue support for Python 2.7, the minimum supported version is now Python 3.6
10+
- discontinue support for Python 2.7, the minimum supported version is now Python 3.9
1111
- the ``__init__`` function of ``EdgeGridAuth`` and ``EdgeGridAuthHeaders`` now accepts ``headers_to_sign`` and ``max_body`` as keyword-only arguments
1212
- changed signatures of following methods in the ``EdgeGridAuthHeaders`` class: ``make_auth_header``, ``sign_request`` and ``make_data_to_sign``
1313

14+
* Improvements
15+
- update several dependencies in ``setup.py``
16+
- start generating files ``requirements.txt`` and ``dev-requirements.txt`` using ``pip-compile``,
17+
so that they contain the full set of project dependencies
18+
1419
* Bug fixes
1520
- properly handle file objects in the request body in EdgeGridAuth
1621

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This library implements an Authentication handler for [HTTP requests](https://re
44

55
## Install
66

7-
To use the library, you need to have Python 3.6 or later installed on your system. You can download it from [https://www.python.org/downloads/](https://www.python.org/downloads/).
7+
To use the library, you need to have Python 3.9 or later installed on your system. You can download it from [https://www.python.org/downloads/](https://www.python.org/downloads/).
88

99
> __NOTE:__ Python 2 is no longer supported by the [Python Software Foundation](https://www.python.org/doc/sunset-python-2/). You won't be able to use the library with Python 2.
1010

dev-requirements.txt

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,72 @@
1-
-r requirements.txt
2-
pylint>=2.15.10
3-
pytest>=7.2.0
4-
pytest-cov>=4.0.0
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.13
3+
# by the following command:
4+
#
5+
# pip-compile --extra=dev --output-file=dev-requirements.txt
6+
#
7+
astroid==3.3.5
8+
# via pylint
9+
certifi==2024.8.30
10+
# via requests
11+
cffi==1.17.1
12+
# via cryptography
13+
charset-normalizer==3.4.0
14+
# via requests
15+
coverage[toml]==7.6.4
16+
# via pytest-cov
17+
cryptography==43.0.3
18+
# via pyopenssl
19+
dill==0.3.9
20+
# via pylint
21+
idna==3.10
22+
# via requests
23+
iniconfig==2.0.0
24+
# via pytest
25+
isort==5.13.2
26+
# via pylint
27+
mccabe==0.7.0
28+
# via pylint
29+
ndg-httpsclient==0.5.1
30+
# via edgegrid-python (setup.py)
31+
packaging==24.1
32+
# via pytest
33+
platformdirs==4.3.6
34+
# via pylint
35+
pluggy==1.5.0
36+
# via pytest
37+
pyasn1==0.6.1
38+
# via
39+
# edgegrid-python (setup.py)
40+
# ndg-httpsclient
41+
pycparser==2.22
42+
# via cffi
43+
pylint==3.3.1
44+
# via edgegrid-python (setup.py)
45+
pyopenssl==24.2.1
46+
# via
47+
# edgegrid-python (setup.py)
48+
# ndg-httpsclient
49+
pytest==8.3.3
50+
# via
51+
# edgegrid-python (setup.py)
52+
# pytest-cov
53+
pytest-cov==6.0.0
54+
# via edgegrid-python (setup.py)
55+
requests==2.32.3
56+
# via
57+
# edgegrid-python (setup.py)
58+
# requests-toolbelt
59+
requests-toolbelt==1.0.0
60+
# via edgegrid-python (setup.py)
61+
tomlkit==0.13.2
62+
# via pylint
63+
urllib3==2.2.3
64+
# via
65+
# edgegrid-python (setup.py)
66+
# requests
67+
68+
69+
# THIS SECTION WAS ADDED MANUALLY
70+
# Starting with version 3.12, setuptools is no longer included in the standard Python installation.
71+
# However, we still need it until we get rid of pkg_resource style namespace packages.
72+
setuptools

requirements.txt

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,38 @@
1-
requests>=2.28.1
2-
requests_toolbelt>=0.10.1
3-
pyopenssl>=23.0.0
4-
ndg-httpsclient
5-
pyasn1
6-
urllib3
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.13
3+
# by the following command:
4+
#
5+
# pip-compile
6+
#
7+
certifi==2024.8.30
8+
# via requests
9+
cffi==1.17.1
10+
# via cryptography
11+
charset-normalizer==3.4.0
12+
# via requests
13+
cryptography==43.0.3
14+
# via pyopenssl
15+
idna==3.10
16+
# via requests
17+
ndg-httpsclient==0.5.1
18+
# via edgegrid-python (setup.py)
19+
pyasn1==0.6.1
20+
# via
21+
# edgegrid-python (setup.py)
22+
# ndg-httpsclient
23+
pycparser==2.22
24+
# via cffi
25+
pyopenssl==24.2.1
26+
# via
27+
# edgegrid-python (setup.py)
28+
# ndg-httpsclient
29+
requests==2.32.3
30+
# via
31+
# edgegrid-python (setup.py)
32+
# requests-toolbelt
33+
requests-toolbelt==1.0.0
34+
# via edgegrid-python (setup.py)
35+
urllib3==2.2.3
36+
# via
37+
# edgegrid-python (setup.py)
38+
# requests

setup.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@
77
url='https://github.com/akamai/AkamaiOPEN-edgegrid-python',
88
namespace_packages=['akamai'],
99
packages=find_packages(),
10-
python_requires=">=3.6",
10+
python_requires=">=3.9",
1111
install_requires=[
12-
'requests>=2.3.0',
13-
'requests_toolbelt>=0.9.0',
14-
'pyOpenSSL>=19.0.0',
15-
'ndg-httpsclient',
16-
'pyasn1',
17-
'urllib3'
12+
'requests>=2.24.0',
13+
'requests_toolbelt>=0.9.1',
14+
'pyOpenSSL>=19.1.0',
15+
'ndg-httpsclient>=0.5.1',
16+
'pyasn1>=0.4.8',
17+
'urllib3>=1.25.10'
1818
],
19+
extras_require={
20+
'dev': [
21+
'pylint>=2.7.0',
22+
'pytest>=6.1.0',
23+
'pytest-cov>=2.12.1'
24+
],
25+
},
1926
include_package_data=True,
2027
license='Apache 2.0',
2128
classifiers=[

0 commit comments

Comments
 (0)