Skip to content

Commit db8a283

Browse files
committed
add support for python 3.10 and 3.11
1 parent caf7b14 commit db8a283

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/workflows/test_release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
uses: actions/setup-python
4949
with:
5050
python-version: 3.9
51+
- name: Setup Python 3.10
52+
uses: actions/setup-python
53+
with:
54+
python-version: 3.10
55+
- name: Setup Python 3.11
56+
uses: actions/setup-python
57+
with:
58+
python-version: 3.11
5159
- name: Install Dependencies
5260
run: pip install tox
5361
# runs unit tests for each python version

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ def read(fname):
5555
"Programming Language :: Python :: 3.7",
5656
"Programming Language :: Python :: 3.8",
5757
"Programming Language :: Python :: 3.9",
58+
"Programming Language :: Python :: 3.10",
59+
"Programming Language :: Python :: 3.11",
5860
],
5961
setup_requires=["setuptools_scm", "setuptools"],
6062
install_requires=required_packages,
6163
extras_require={
6264
"test": [
6365
"tox==3.13.1",
6466
"flake8",
65-
"pytest==4.4.1",
67+
"pytest",
6668
"pytest-cov",
6769
"pytest-coverage",
6870
"pytest-rerunfailures",

tests/unit/test_utils.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ def boto3_session():
1616

1717

1818
def test_sagemaker_client_endpoint_env_set():
19-
current = os.environ.get("SAGEMAKER_ENDPOINT")
19+
current_endpoint = os.environ.get("SAGEMAKER_ENDPOINT")
20+
current_region = os.environ.get("AWS_REGION")
21+
2022
os.environ["SAGEMAKER_ENDPOINT"] = "https://notexist.amazon.com"
23+
os.environ["AWS_REGION"] = "arc-north-1"
2124

2225
client = _utils.sagemaker_client()
2326

2427
assert client._endpoint.host == "https://notexist.amazon.com"
2528

26-
if current is not None:
27-
os.environ["SAGEMAKER_ENDPOINT"] = current
29+
os.environ["SAGEMAKER_ENDPOINT"] = current_endpoint if current_endpoint is not None else ""
30+
os.environ["AWS_REGION"] = current_region if current_region is not None else ""
2831

2932

3033
def test_get_or_create_default_bucket_bucket_already_owned(boto3_session):

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39}
2+
envlist = py{37,38,39,310,311}
33

44
skip_missing_interpreters = False
55
ignore_basepython_conflict = True

0 commit comments

Comments
 (0)