Skip to content

Commit 3e6caf9

Browse files
authored
Support py312 (#184)
1 parent 47be7d9 commit 3e6caf9

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

docs/requirements_doc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ sphinx-design
77
sphinx-inline-tabs
88
sphinx-togglebutton
99
sphinxcontrib-googleanalytics
10-
ipython>7.16,<8.13 # IPython 8.13+ supports Python 3.9 and above; Python 3.7 is supported with IPython >7.16
10+
ipython>8.12 # IPython 8.13+ supports Python 3.9 and above

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 119
3-
target-version = ['py38', 'py39', 'py310', 'py311']
3+
target-version = ['py39', 'py310', 'py311', 'py312']
44

55
[tool.isort]
66
known_first_party = "autogluon"

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ source =
3434

3535
[tox:tox]
3636
envlist =
37-
; py37 - Not supported in the container
38-
py38
39-
; py39 - Not supported in the container
37+
py39
4038
isolated_build = True
4139

4240
[pkg-imports]

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
AUTOGLUON = "autogluon"
66
CLOUD = "cloud"
77

8-
PYTHON_REQUIRES = ">=3.8, <3.12"
8+
PYTHON_REQUIRES = ">=3.9, <3.13"
99

1010

1111
def create_version_file(*, version):
@@ -85,10 +85,10 @@ def default_setup_args(*, version):
8585
"Operating System :: POSIX",
8686
"Operating System :: Unix",
8787
"Programming Language :: Python :: 3",
88-
"Programming Language :: Python :: 3.8",
8988
"Programming Language :: Python :: 3.9",
9089
"Programming Language :: Python :: 3.10",
9190
"Programming Language :: Python :: 3.11",
91+
"Programming Language :: Python :: 3.12",
9292
"Topic :: Software Development",
9393
"Topic :: Scientific/Engineering :: Artificial Intelligence",
9494
"Topic :: Scientific/Engineering :: Information Analysis",
@@ -116,10 +116,10 @@ def default_setup_args(*, version):
116116
# updated sagemaker is required to fetch latest container info, so we don't want to cap the version too strict
117117
# otherwise cloud module needs to be released to support new container
118118
"sagemaker>=2.126.0,<3.0",
119-
"pyarrow>=11.0,<11.1",
119+
"pyarrow>=11.0,<21",
120120
"PyYAML~=6.0",
121-
"Pillow>=10.2,<11", # unlikely to introduce breaking changes in minor releases
122-
"ray[default]>=2.10.0,<2.11",
121+
"Pillow>=10.2,<12", # unlikely to introduce breaking changes in minor releases
122+
"ray[default]>=2.10.0,<2.46",
123123
]
124124

125125
extras_require = dict()

src/autogluon/cloud/utils/dlc_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from distutils.version import StrictVersion
2-
31
from packaging import version
2+
from packaging.version import Version
43
from sagemaker import image_uris
54

65

@@ -47,7 +46,7 @@ def retrieve_latest_framework_version(framework_type="training"):
4746
version number of latest autogluon framework, and its py_versions as a list
4847
"""
4948
versions = retrieve_available_framework_versions(framework_type)
50-
versions.sort(key=StrictVersion)
49+
versions.sort(key=version.parse)
5150
versions = [(v, retrieve_py_versions(v, framework_type)) for v in versions]
5251
return versions[-1]
5352

@@ -58,7 +57,7 @@ def parse_framework_version(framework_version, framework_type, py_version=None,
5857
py_version = py_versions[0]
5958
else:
6059
# Cloud supports 0.6+ containers
61-
if minimum_version is not None and version.parse(framework_version) < version.parse(minimum_version):
60+
if minimum_version is not None and Version(framework_version) < Version(minimum_version):
6261
raise ValueError("Cloud module only supports 0.6+ containers.")
6362
valid_options = retrieve_available_framework_versions(framework_type)
6463
assert (

0 commit comments

Comments
 (0)