diff --git a/packages/google-crc32c/README.md b/packages/google-crc32c/README.md index 78088ce883b1..862972fc7994 100644 --- a/packages/google-crc32c/README.md +++ b/packages/google-crc32c/README.md @@ -9,8 +9,8 @@ C toolchain. # Currently Published Wheels -Wheels are currently published for CPython 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 -for multiple architectures. PyPy 3.9 and 3.10 are also supported for Linux. +Wheels are currently published for CPython 3.10, 3.11, 3.12, 3.13 and 3.14 +for multiple architectures. PyPy 3.10 is also supported for Linux. For information on building your own wheels please view [BUILDING.md](BUILDING.md). diff --git a/packages/google-crc32c/mypy.ini b/packages/google-crc32c/mypy.ini index 8efb6f7241c8..569486a9ce60 100644 --- a/packages/google-crc32c/mypy.ini +++ b/packages/google-crc32c/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.9 +python_version = 3.10 exclude = tests/unit/resources/ diff --git a/packages/google-crc32c/noxfile.py b/packages/google-crc32c/noxfile.py index c1b449abbbf4..b44c502ccd0c 100644 --- a/packages/google-crc32c/noxfile.py +++ b/packages/google-crc32c/noxfile.py @@ -25,9 +25,8 @@ # Constants DEFAULT_PYTHON_VERSION = "3.14" -UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] +UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"] ALL_PYTHON = list(UNIT_TEST_PYTHON_VERSIONS) -ALL_PYTHON.extend(["3.7"]) FLAKE8_VERSION = "flake8==6.1.0" BLACK_VERSION = "black[jupyter]==23.7.0" diff --git a/packages/google-crc32c/pyproject.toml b/packages/google-crc32c/pyproject.toml index edec4f897338..e336a52da298 100644 --- a/packages/google-crc32c/pyproject.toml +++ b/packages/google-crc32c/pyproject.toml @@ -21,5 +21,5 @@ name = "google-crc32c" version = "1.8.0" description = "A python wrapper of the C library 'Google CRC32C'" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" license = {text = "Apache-2.0"} diff --git a/packages/google-crc32c/scripts/manylinux/build_on_centos.sh b/packages/google-crc32c/scripts/manylinux/build_on_centos.sh index 9507dda09262..323319320e4d 100755 --- a/packages/google-crc32c/scripts/manylinux/build_on_centos.sh +++ b/packages/google-crc32c/scripts/manylinux/build_on_centos.sh @@ -48,10 +48,7 @@ if [[ -z ${BUILD_PYTHON} ]]; then # Collect all target Python versions. for PYTHON_BIN in /opt/python/*/bin; do # H/T: https://stackoverflow.com/a/229606/1068170 - if [[ "${PYTHON_BIN}" == *"39"* ]]; then - PYTHON_VERSIONS="${PYTHON_VERSIONS} ${PYTHON_BIN}" - continue - elif [[ "${PYTHON_BIN}" == *"310"* ]]; then + if [[ "${PYTHON_BIN}" == *"310"* ]]; then PYTHON_VERSIONS="${PYTHON_VERSIONS} ${PYTHON_BIN}" continue elif [[ "${PYTHON_BIN}" == *"311"* ]]; then diff --git a/packages/google-crc32c/scripts/osx/build.sh b/packages/google-crc32c/scripts/osx/build.sh index 075ffcc26193..b567178d0280 100755 --- a/packages/google-crc32c/scripts/osx/build.sh +++ b/packages/google-crc32c/scripts/osx/build.sh @@ -41,7 +41,7 @@ ${OSX_DIR}/build_c_lib.sh rm -rf /Users/kbuilder/.pyenv git clone https://github.com/pyenv/pyenv.git /Users/kbuilder/.pyenv -SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13" "3.14") +SUPPORTED_PYTHON_VERSIONS=("3.10" "3.11" "3.12" "3.13" "3.14") for PYTHON_VERSION in ${SUPPORTED_PYTHON_VERSIONS[@]}; do echo "Build wheel for Python ${PYTHON_VERSION}" diff --git a/packages/google-crc32c/scripts/osx/publish_python_wheel.sh b/packages/google-crc32c/scripts/osx/publish_python_wheel.sh index c5288eac09fc..e5d6ab115b6f 100755 --- a/packages/google-crc32c/scripts/osx/publish_python_wheel.sh +++ b/packages/google-crc32c/scripts/osx/publish_python_wheel.sh @@ -15,11 +15,11 @@ set -eo pipefail -if [ -z "$(pyenv versions --bare | grep 3.8)" ]; then - echo "Python 3.8 is not installed. Installing..." - pyenv install 3.8 +if [ -z "$(pyenv versions --bare | grep 3.10)" ]; then + echo "Python 3.10 is not installed. Installing..." + pyenv install 3.10 fi -pyenv shell 3.8 +pyenv shell 3.10 python -m pip install "setuptools<71" diff --git a/packages/google-crc32c/setup.cfg b/packages/google-crc32c/setup.cfg index 9e97011dd7ad..9341e9586e00 100644 --- a/packages/google-crc32c/setup.cfg +++ b/packages/google-crc32c/setup.cfg @@ -29,8 +29,6 @@ classifiers = Intended Audience :: Developers Operating System :: OS Independent Programming Language :: Python :: 3 - 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 @@ -39,7 +37,7 @@ classifiers = [options] zip_safe = True -python_requires = >=3.8 +python_requires = >=3.10 [options.extras_require] testing = pytest diff --git a/packages/google-crc32c/setup.py b/packages/google-crc32c/setup.py index cebbca973d22..5b63d48d125f 100644 --- a/packages/google-crc32c/setup.py +++ b/packages/google-crc32c/setup.py @@ -104,9 +104,7 @@ def build_c_extension(): package_dir={"": "src"}, ext_modules=[module], cmdclass={"build_ext": BuildExtWithDLL}, - install_requires=[ - "importlib_resources>=1.3 ; python_version < '3.9' and os_name == 'nt'" - ], + install_requires=[], ) diff --git a/packages/google-crc32c/src/google_crc32c/__config__.py b/packages/google-crc32c/src/google_crc32c/__config__.py index 536f0307e7f2..24a8ba960ede 100644 --- a/packages/google-crc32c/src/google_crc32c/__config__.py +++ b/packages/google-crc32c/src/google_crc32c/__config__.py @@ -30,7 +30,6 @@ def modify_path(): extra_dll_dir = str(_resources_files("google_crc32c") / "extra-dll") if os.path.isdir(extra_dll_dir): - # Python 3.8+ uses add_dll_directory. os.add_dll_directory(extra_dll_dir) except ImportError: pass