-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SE-1513 Implement retry logic. * SE-1513 Drop support for Python 3.7 and add support for Python 3.12 * SE-1513 Update github workflows to exclude Python 3.7 and include Python 3.12 * SE-1513 Update unit tests for the client module and add tests for retries. * SE-1513 Add Python version to x-user-agent * SE-1513 Bump major version due to dropping Python 3.7 * SE-1513 Fix typos. * SE-1513 Only retry for 429, 503 and 504
- Loading branch information
Showing
12 changed files
with
81 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# V4 breaking changes details | ||
|
||
V4 introduces support for Python version 3.12 and drops support for Python 3.7. | ||
|
||
This change was needed to implement retry logic using the [Stamina](https://stamina.hynek.me/en/stable/) retry library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,7 @@ class ServerError(APIError): | |
|
||
class ValidationError(PredictHQError): | ||
pass | ||
|
||
|
||
class RetriableError(APIError): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "3.6.0" | ||
__version__ = "4.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pytest>=6.2.5,<7.0 | |
python-dateutil>=2.4.2,<3.0 | ||
requests>=2.7.0,<3.0 | ||
responses>=0.10.8,<1.0 | ||
stamina>=24.3.0,<25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,12 +36,13 @@ def read(*parts): | |
author_email="[email protected]", | ||
url=REPO_URL, | ||
packages=find_packages(exclude=("tests*",)), | ||
python_requires=">=3.7", | ||
python_requires=">=3.8", | ||
install_requires=[ | ||
"pydantic>=2,<3", | ||
"requests>=2.7.0", | ||
"python-dateutil>=2.4.2", | ||
"pytz>=2017.2,<=2021.1", | ||
"stamina>=24.3.0,<25", | ||
], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
|
@@ -51,11 +52,11 @@ def read(*parts): | |
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters