From 71e8c487f8be7c166a6196b2122fdd6385ec2bfa Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Sun, 26 May 2024 20:37:54 +0200 Subject: [PATCH 1/6] Update pre-commit hooks Signed-off-by: Yurii Serhiichuk --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 15ab6545..cc893e5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,17 +6,17 @@ repos: - id: end-of-file-fixer - id: check-toml - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: [ "--profile", "black", "--filter-files" ] - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 24.4.2 hooks: - id: black language_version: python3.11 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.10.0 hooks: - id: mypy files: ^(cloudevents/) From 14a3500b3a90274cc7dd944193027e325d948d24 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Sun, 26 May 2024 20:38:10 +0200 Subject: [PATCH 2/6] Add Python 3.12 Signed-off-by: Yurii Serhiichuk --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 95ccf97c..d02e473e 100644 --- a/setup.py +++ b/setup.py @@ -70,6 +70,7 @@ def get_version(rel_path): "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Typing :: Typed", ], keywords="CloudEvents Eventing Serverless", From 45637d92ba3bcd461870137dc2566c065f8952dd Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Sun, 26 May 2024 20:38:23 +0200 Subject: [PATCH 3/6] Drop python 3.7 and add 3.12 to TOX Signed-off-by: Yurii Serhiichuk --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index a5cbdfa7..0436a1be 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37,38,39,310,311},lint +envlist = py{38,39,310,311,312},lint skipsdist = True [testenv] From f901469d68ad7e48fc048374e3fc0a29a94190a0 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Sun, 26 May 2024 20:38:40 +0200 Subject: [PATCH 4/6] Migrate to latest action versions. Drop v3.7 from CI and add 3.12 Signed-off-by: Yurii Serhiichuk --- .github/workflows/main.yml | 10 +++++----- .github/workflows/pypi-release.yml | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1a6ae47..1dbf37a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,9 +7,9 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' cache: 'pip' @@ -22,13 +22,13 @@ jobs: test: strategy: matrix: - python: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} cache: 'pip' diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 56bbf66a..4cb248bc 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -12,15 +12,16 @@ jobs: name: Build source distribution runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build SDist and wheel run: pipx run build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: artifact path: dist/* - name: Check metadata @@ -30,7 +31,7 @@ jobs: if: github.event_name == 'push' needs: [ build_dist ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python @@ -40,7 +41,7 @@ jobs: cache: 'pip' - name: Install build dependencies run: pip install -U setuptools wheel build - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: # unpacks default artifact into dist/ # if `name: artifact` is omitted, the action will create extra parent dir From 1b45671e83856b4fd8f1755c8c99946c196f5dee Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Sun, 26 May 2024 20:45:00 +0200 Subject: [PATCH 5/6] Migrate to Python 3.8 Signed-off-by: Yurii Serhiichuk --- .github/workflows/main.yml | 2 +- CHANGELOG.md | 4 ++++ mypy.ini | 2 +- setup.py | 2 -- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1dbf37a0..107bf9e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: test: strategy: matrix: - python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python: ['3.8', '3.9', '3.10', '3.11'] os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 51fcb0e5..a7d1e9e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Dropped Python3.7 from CI while it's EOL. + ## [1.10.1] ### Fixed diff --git a/mypy.ini b/mypy.ini index 39426375..d8fb9cc0 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,6 +1,6 @@ [mypy] plugins = pydantic.mypy -python_version = 3.7 +python_version = 3.8 pretty = True show_error_context = True diff --git a/setup.py b/setup.py index d02e473e..a4e4befc 100644 --- a/setup.py +++ b/setup.py @@ -65,12 +65,10 @@ def get_version(rel_path): "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "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", - "Programming Language :: Python :: 3.12", "Typing :: Typed", ], keywords="CloudEvents Eventing Serverless", From e93a8c0293d992268e3abf996469c47ce8e674e3 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Sun, 26 May 2024 20:46:40 +0200 Subject: [PATCH 6/6] Fix changelog message. Signed-off-by: Yurii Serhiichuk --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7d1e9e6..66dc58d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Dropped Python3.7 from CI while it's EOL. +- Dropped Python3.7 from CI while its EOL. ## [1.10.1]