From c8e8f579cd5641bd4ad04a547b189218c8cd6a45 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Mon, 18 Sep 2023 15:48:19 -0700 Subject: [PATCH] Drop support for Python 3.8 --- .github/workflows/test.yml | 6 +++--- .github/workflows/wheels.yml | 2 +- .pre-commit-config.yaml | 2 +- CHANGELOG.md | 8 ++++++-- README.md | 2 +- pyproject.toml | 2 +- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5226ad6a..d13d6ddf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - uses: pre-commit/action@v3.0.0 build: name: ${{ matrix.os }} Python ${{ matrix.python-version }} @@ -28,7 +28,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12.0-rc.2"] + python-version: ["3.9", "3.10", "3.11", "3.12.0-rc.2"] include: - os: macOS-11 python-version: "3.11" diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 63466e30..4d96082c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -47,7 +47,7 @@ jobs: env: CIBW_ARCHS_LINUX: auto aarch64 CIBW_ARCHS_MACOS: universal2 - CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* + CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* CIBW_SKIP: "*musllinux* *i686* *win32*" CIBW_TEST_REQUIRES: absl-py pytest pytest-xdist CIBW_TEST_COMMAND: pytest -n auto {project} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f552e49d..24ad948d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: rev: 23.3.1 hooks: - id: pyink - language_version: python3.8 + language_version: python3.9 args: [ "--line-length=80", "--preview", diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d53dc08..cf7c4369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,10 @@ To release a new version (e.g. from `1.0.0` -> `2.0.0`): ## [Unreleased] -## [0.2.0] - 2022-01-06 +* Dropped support for Python 3.8, following [NEP 29]. +* Added support for Python 3.12. + +## [0.2.0] - 2023-06-06 * New features: * added new 4-bit integer types: `ml_dtypes.int4` and `ml_dtypes.uint4` @@ -33,10 +36,11 @@ To release a new version (e.g. from `1.0.0` -> `2.0.0`): consistency with other dtype names. The former name will still be available until version 0.3.0, but will raise a deprecation warning. -## [0.1.0] - 2022-11-01 +## [0.1.0] - 2023-04-11 * Initial release [Unreleased]: https://github.com/jax-ml/ml_dtypes/compare/v0.2.0...HEAD [0.2.0]: https://github.com/jax-ml/ml_dtypes/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/jax-ml/ml_dtypes/releases/tag/v0.1.0 +[NEP 29]: https://numpy.org/neps/nep-0029-deprecation_policy.html diff --git a/README.md b/README.md index d12bcb5d..ba34d55e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See below for specifications of these number formats. ## Installation -The `ml_dtypes` package is tested with Python versions 3.8-3.11, and can be installed +The `ml_dtypes` package is tested with Python versions 3.9-3.12, and can be installed with the following command: ``` pip install ml_dtypes diff --git a/pyproject.toml b/pyproject.toml index 34e76f5d..583fbac7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "ml_dtypes" version = "0.2.0" # Keep in sync with ml_dtypes/__init__.py:__version__ description = "" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" license = {file = "LICENSE"} authors = [{name = "ml_dtypes authors", email="ml_dtypes@google.com"}] classifiers = [