diff --git a/pyproject.toml b/pyproject.toml index a8e0a943..75300f5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ classifiers = [ 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', @@ -37,7 +38,7 @@ readme = "README.md" # ``setup.py::_load_requires_python_spec()`` to gate cp-wheel vs universal # fallback. Keep in sync with ``[project].classifiers`` below and the install # docs (``docs/source/install.rst``, ``CONTRIBUTING.md``). -requires-python = ">=3.11,<3.14" +requires-python = ">=3.10,<3.14" [project.urls] documentation = "https://quark.docs.amd.com" diff --git a/quark/contrib/llm_eval/experiment_report.py b/quark/contrib/llm_eval/experiment_report.py index 003a015d..dfcf9ead 100755 --- a/quark/contrib/llm_eval/experiment_report.py +++ b/quark/contrib/llm_eval/experiment_report.py @@ -7,7 +7,9 @@ import os import sys from argparse import Namespace -from datetime import UTC, datetime +from datetime import datetime, timezone + +UTC = timezone.utc from typing import Any import numpy as np diff --git a/quark/torch/quantization/nn/modules/quantize_conv_bn_fused.py b/quark/torch/quantization/nn/modules/quantize_conv_bn_fused.py index 047e55d2..0752828f 100644 --- a/quark/torch/quantization/nn/modules/quantize_conv_bn_fused.py +++ b/quark/torch/quantization/nn/modules/quantize_conv_bn_fused.py @@ -4,7 +4,8 @@ # import math -from typing import Any, Self +from typing import Any +from typing_extensions import Self import numpy as np import torch diff --git a/setup.py b/setup.py index 7de52859..5e57b7c4 100644 --- a/setup.py +++ b/setup.py @@ -554,5 +554,5 @@ def get_version(is_nightly=False, is_release=False): cmdclass=cmdclass, install_requires=install_requires, # Keep in sync with ``pyproject.toml::[project].requires-python``. - python_requires=">=3.11,<3.14", + python_requires=">=3.10,<3.14", )