From c53445f02a8011e3456ee11588ef037e732504ed Mon Sep 17 00:00:00 2001 From: Frederick Jansen Date: Tue, 2 Dec 2025 12:28:44 -0500 Subject: [PATCH 1/4] Add py.typed file and CI target for Python 3.14 --- .github/workflows/lint-test-docs.yml | 2 +- pyproject.toml | 11 ++++++----- src/polyline/py.typed | 0 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 src/polyline/py.typed diff --git a/.github/workflows/lint-test-docs.yml b/.github/workflows/lint-test-docs.yml index b4b8944..707b9e3 100644 --- a/.github/workflows/lint-test-docs.yml +++ b/.github/workflows/lint-test-docs.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.8", "pypy3.9", "pypy3.10", "pypy3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.8", "pypy3.9", "pypy3.10", "pypy3.11"] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 3bf5b18..e33bdd5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,15 @@ [project] name = "polyline" -version = "2.0.3" +version = "2.0.4" description = "A Python implementation of Google's Encoded Polyline Algorithm Format." -license = {file = "LICENSE"} +license = "MIT" +license-files = ["LICENSE"] authors = [ {name = "Frederick Jansen"}, {name = "Bruno M. Custódio"}, ] readme = "README.rst" -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ ] @@ -29,12 +30,12 @@ dev = [ ] publish = [ "build~=0.8", - "twine~=4.0" + "twine~=6.0" ] [build-system] requires = [ - "setuptools>=65.0" + "setuptools>=69.0" ] build-backend = "setuptools.build_meta" diff --git a/src/polyline/py.typed b/src/polyline/py.typed new file mode 100644 index 0000000..e69de29 From 0432ebe194ac876807fa1c8522831cfaa72e4747 Mon Sep 17 00:00:00 2001 From: Frederick Jansen Date: Tue, 2 Dec 2025 12:44:52 -0500 Subject: [PATCH 2/4] Use updated build tools with support for new license format --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e33bdd5..2ea5d38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ publish = [ [build-system] requires = [ - "setuptools>=69.0" + "setuptools>=80.0" ] build-backend = "setuptools.build_meta" From f89fcd0a24326cd2c14b694a9c5257b077f2d65e Mon Sep 17 00:00:00 2001 From: Frederick Jansen Date: Tue, 2 Dec 2025 12:47:27 -0500 Subject: [PATCH 3/4] Revert to v75 of setuptools to get support for Python 3.8 back --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2ea5d38..71b3cf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ publish = [ [build-system] requires = [ - "setuptools>=80.0" + "setuptools>=75.0" ] build-backend = "setuptools.build_meta" From 82aeb5e98e0f22a491dfe54955dd9f72999790fb Mon Sep 17 00:00:00 2001 From: Frederick Jansen Date: Tue, 2 Dec 2025 12:50:25 -0500 Subject: [PATCH 4/4] Revert to old license format because it doesn't work with Python 3.8 --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 71b3cf1..a1f8f57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,7 @@ name = "polyline" version = "2.0.4" description = "A Python implementation of Google's Encoded Polyline Algorithm Format." -license = "MIT" -license-files = ["LICENSE"] +license = {file = "LICENSE"} authors = [ {name = "Frederick Jansen"}, {name = "Bruno M. Custódio"}, @@ -35,7 +34,7 @@ publish = [ [build-system] requires = [ - "setuptools>=75.0" + "setuptools>=69.0" ] build-backend = "setuptools.build_meta"