From 94dc7d335e1cf810e1c866bdfa4891f4f0780d3d Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 00:47:01 +0100 Subject: [PATCH 1/7] add python 3.12 to testing workflow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 531e996..b2a9506 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: unittests: strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11'] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12'] runs-on: ubuntu-latest name: Unit tests, Python ${{ matrix.python-version }} From 8d69e9c03b399d97c40f0026ef2ee16e4a5fbc00 Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 00:58:23 +0100 Subject: [PATCH 2/7] pin flake8 version in github lint --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d66e115..ec540dd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,5 +22,6 @@ jobs: with: max-line-length: "88" # match limit set by black args: "--extend-ignore E203" + flake8-version: "6.1.0" - name: isort uses: isort/isort-action@v1 \ No newline at end of file From c23c3a378dd2529eecf5dc5f18e27ec3fd100d2d Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 00:59:49 +0100 Subject: [PATCH 3/7] update flake8 version in pre-commit config --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8067f6..c2ae803 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: '6.0.0' + rev: '6.1.0' hooks: - id: flake8 args: [--max-line-length=88, --extend-ignore=E203] \ No newline at end of file From a9fd8d938e8b8815faa16e2ed9da876606d779cd Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 01:01:44 +0100 Subject: [PATCH 4/7] fix flake8 --- src/flightplandb/datatypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flightplandb/datatypes.py b/src/flightplandb/datatypes.py index d9a8a2f..6059c7c 100644 --- a/src/flightplandb/datatypes.py +++ b/src/flightplandb/datatypes.py @@ -356,10 +356,10 @@ class Plan: cycle: Optional[Cycle] = None def __post_init__(self) -> None: - if self.createdAt and type(self.createdAt) == str: + if self.createdAt and isinstance(self.createdAt, str): self.createdAt = isoparse(self.createdAt) - if self.updatedAt and type(self.updatedAt) == str: + if self.updatedAt and isinstance(self.updatedAt, str): self.updatedAt = isoparse(self.updatedAt) if self.user and isinstance(self.user, dict): From b4173c56470c32d2ef26e235bdf991280dbe8f98 Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 01:01:54 +0100 Subject: [PATCH 5/7] update changelog --- CHANGELOG.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 75ed19e..f86a755 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ Changelog -------------------- +0.8.2 +^^^^^^^^^^^^^^^^^^^^ +This adds support for Python 3.12. + 0.8.1 ^^^^^^^^^^^^^^^^^^^^ This makes the library compatible with mypy strict checking, and slightly cleans up the release workflow. From 8dcb2a2ae1d7703d032a93fea02080e0fcea3f49 Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 01:02:27 +0100 Subject: [PATCH 6/7] bump version number in __init__.py --- src/flightplandb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flightplandb/__init__.py b/src/flightplandb/__init__.py index 756ca1a..969d483 100644 --- a/src/flightplandb/__init__.py +++ b/src/flightplandb/__init__.py @@ -10,7 +10,7 @@ # Version of the flightplandb package -__version__ = "0.8.1" +__version__ = "0.8.2" from . import api, datatypes, exceptions, internal, nav, plan, tags, user, weather From 41ad820adc58b4cb77587778bee8f4e9ec8c53b3 Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Sun, 24 Dec 2023 01:10:58 +0100 Subject: [PATCH 7/7] add python 3.12 classifier --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index f9438f1..ed79a5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Operating System :: OS Independent", "Topic :: Internet", "Topic :: Software Development :: Libraries",