From b6c256b2219bc2b29de4e06fa20d519a1eb81085 Mon Sep 17 00:00:00 2001 From: Aaron Bockover Date: Fri, 6 Jan 2023 12:14:32 -0500 Subject: [PATCH] Bump minimum Python to 3.8 and numpy to 1.22.0 --- .github/workflows/main.yaml | 5 ----- pyproject.toml | 5 ++--- requirements-dev.txt | 2 +- requirements-onnx.txt | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 816047d9a4..5383136d51 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,7 +23,6 @@ jobs: - python39-onnx - python39-expe - python38-expe - - python37-expe include: # - name: python311-onnx # python-version: "3.11" @@ -45,10 +44,6 @@ jobs: python-version: "3.8" onnx_standard: false test_examples: false - - name: python37-expe - python-version: "3.7" - onnx_standard: false - test_examples: false runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index 83526d7359..e618a847fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ description = "Authoring ONNX functions in Python" authors = [{ name = "Microsoft Corporation", email = "onnx@microsoft.com" }] urls = { "Repository" = "https://github.com/onnx/onnx-script" } readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.8" license = { text = 'Apache License v2.0' } classifiers = [ "Development Status :: 4 - Beta", @@ -20,14 +20,13 @@ classifiers = [ "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "License :: OSI Approved :: Apache Software License", ] -dependencies = ["numpy>=1.21.5", "protobuf<4", "onnx"] +dependencies = ["numpy>=1.22.0", "protobuf<4", "onnx"] [project.optional-dependencies] test = ["flake8", "mypy", "black", "isort[colors]", "pylint"] diff --git a/requirements-dev.txt b/requirements-dev.txt index 39c692f76a..0590122516 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,6 @@ autopep8 click -numpy==1.21.5 +numpy==1.22.0 matplotlib --pre -f https://onnxruntimepackages.z14.web.core.windows.net/onnx-function-experiment.html onnx-function-experiment diff --git a/requirements-onnx.txt b/requirements-onnx.txt index 4b3abc0fd3..56cabc2d4a 100644 --- a/requirements-onnx.txt +++ b/requirements-onnx.txt @@ -1,6 +1,6 @@ # Requirements for testing with the release version of onnx and onnxruntime # TODO(#249): Fix tests for onnx 1.13 -numpy==1.21.5 +numpy==1.22.0 onnx==1.12 onnxruntime