From f7f9dc36843e0a1a39884d726ff66027e66c5456 Mon Sep 17 00:00:00 2001 From: Salman Shah Date: Wed, 29 Jan 2025 00:33:13 +0000 Subject: [PATCH 1/2] Update GitHub Actions workflows to support Python 3.11 Update the GitHub Actions workflows and documentation to support the latest stable Python version (3.11). * **README.md** - Update the "Requirements" section to include Python 3.11. * **setup.py** - Update the `classifiers` list to include Python 3.11. * **.github/workflows/publish-distribution.yaml** - Update the `python-version` to '3.11' in the "Set up Python" step. * **.github/workflows/publish-documentation.yaml** - Update the `python-version` to '3.11' in the "Set up Python" step. * **.github/workflows/test-build.yaml** - Add '3.11' to the `python-version` matrix in the "mock-api-test" job. --- .github/workflows/publish-distribution.yaml | 4 ++-- .github/workflows/publish-documentation.yaml | 4 ++-- .github/workflows/test-build.yaml | 2 +- README.md | 2 +- setup.py | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-distribution.yaml b/.github/workflows/publish-distribution.yaml index a998ed75..3f4bfe28 100644 --- a/.github/workflows/publish-distribution.yaml +++ b/.github/workflows/publish-distribution.yaml @@ -10,10 +10,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install build packages run: | pip install enum34 requests six python-dateutil setuptools-scm gitchangelog mako wheel twine sphinx sphinx_rtd_theme diff --git a/.github/workflows/publish-documentation.yaml b/.github/workflows/publish-documentation.yaml index 8fe45e9a..7a3ba3f6 100644 --- a/.github/workflows/publish-documentation.yaml +++ b/.github/workflows/publish-documentation.yaml @@ -10,10 +10,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install build packages run: | pip install enum34 requests six python-dateutil setuptools-scm gitchangelog mako wheel twine sphinx sphinx_rtd_theme diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index 978aded0..745ad40d 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 74ef5dc7..a5b0ce37 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A library for connecting to the [Smartsheet API](https://smartsheet.redoc.ly) fr ## Requirements -The SDK is compatible with [actively supported](https://devguide.python.org/versions/#versions) Python versions `3.10`, `3.9`, `3.8`, `3.7`. +The SDK is compatible with [actively supported](https://devguide.python.org/versions/#versions) Python versions `3.11`, `3.10`, `3.9`, `3.8`, `3.7`. ## Installation diff --git a/setup.py b/setup.py index b3b9ae12..aaa24ac0 100644 --- a/setup.py +++ b/setup.py @@ -57,6 +57,7 @@ def run_tests(self): 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Office/Business :: Financial :: Spreadsheet', ], From f1a7f63b8673c99755d2e443c26a7775e987d063 Mon Sep 17 00:00:00 2001 From: Salman Shah Date: Mon, 17 Feb 2025 02:12:08 +0000 Subject: [PATCH 2/2] Update Python versions and resolve linter issue Update project to drop support for Python 3.7 and 3.8 and resolve linter issue. * **setup.py** - Remove support for Python 3.7 and 3.8 from the `classifiers` list. - Remove the `enum34` dependency from the `REQUIRES` list as this checks for python versions below 3.4. * **README.md** - Update the "Requirements" section to mention compatibility with Python 3.9, 3.10, and 3.11. * **.github/workflows/test-build.yaml** - Remove Python 3.7 and 3.8 from the `matrix` list under the `mock-api-test` job. --- .github/workflows/test-build.yaml | 2 +- README.md | 2 +- setup.py | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index 745ad40d..0f1e3a44 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index a5b0ce37..2073578b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A library for connecting to the [Smartsheet API](https://smartsheet.redoc.ly) fr ## Requirements -The SDK is compatible with [actively supported](https://devguide.python.org/versions/#versions) Python versions `3.11`, `3.10`, `3.9`, `3.8`, `3.7`. +The SDK is compatible with [actively supported](https://devguide.python.org/versions/#versions) Python versions `3.11`, `3.10`, `3.9`. ## Installation diff --git a/setup.py b/setup.py index aaa24ac0..a4053356 100644 --- a/setup.py +++ b/setup.py @@ -13,9 +13,6 @@ 'python-dateutil' ] -if sys.version_info < (3, 4): - REQUIRES.append('enum34') - # test packages: # https://github.com/pytest-dev/pytest @@ -53,8 +50,6 @@ def run_tests(self): 'Operating System :: OS Independent', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', - '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',