[Git][debian-gis-team/python-geojson][master] Add patch to not fail with Python 3.13.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Sep 19 15:00:26 BST 2024



Bas Couwenberg pushed to branch master at Debian GIS Project / python-geojson


Commits:
7efd224f by Bas Couwenberg at 2024-09-19T16:00:20+02:00
Add patch to not fail with Python 3.13.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/python3.13.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -2,6 +2,8 @@ python-geojson (3.1.0-2) UNRELEASED; urgency=medium
 
   * Team upload.
   * Bump Standards-Version to 4.7.0, no changes.
+  * Add patch to not fail with Python 3.13.
+    (closes: #1082218)
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 28 Jul 2024 19:58:09 +0200
 


=====================================
debian/patches/python3.13.patch
=====================================
@@ -0,0 +1,61 @@
+Description: Don't fail with Python 3.13.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug-Debian: https://bugs.debian.org/1082218
+Forwarded: https://github.com/jazzband/geojson/pull/228
+
+--- a/setup.py
++++ b/setup.py
+@@ -17,8 +17,8 @@ else:
+ 
+ 
+ major_version, minor_version = sys.version_info[:2]
+-if not (major_version == 3 and 7 <= minor_version <= 12):
+-    sys.stderr.write("Sorry, only Python 3.7 - 3.12 are "
++if not (major_version == 3 and 7 <= minor_version <= 13):
++    sys.stderr.write("Sorry, only Python 3.7 - 3.13 are "
+                      "supported at this time.\n")
+     exit(1)
+ 
+@@ -53,6 +53,7 @@ setup(
+         "Programming Language :: Python :: 3.10",
+         "Programming Language :: Python :: 3.11",
+         "Programming Language :: Python :: 3.12",
++        "Programming Language :: Python :: 3.13",
+         "Topic :: Scientific/Engineering :: GIS",
+     ]
+ )
+--- a/README.rst
++++ b/README.rst
+@@ -26,7 +26,7 @@ This Python library contains:
+ Installation
+ ------------
+ 
+-geojson is compatible with Python 3.7 - 3.12. The recommended way to install is via pip_:
++geojson is compatible with Python 3.7 - 3.13. The recommended way to install is via pip_:
+ 
+ .. code::
+ 
+--- a/tox.ini
++++ b/tox.ini
+@@ -2,7 +2,7 @@
+ requires =
+     tox>=4.2
+ env_list =
+-    py{py3, 312, 311, 310, 39, 38, 37}
++    py{py3, 313, 312, 311, 310, 39, 38, 37}
+ 
+ [testenv]
+ deps =
+diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
+index e1601c0..05fe982 100644
+--- a/.github/workflows/test.yml
++++ b/.github/workflows/test.yml
+@@ -11,7 +11,7 @@ jobs:
+     strategy:
+       fail-fast: false
+       matrix:
+-        python-version: ['pypy3.9', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
++        python-version: ['pypy3.9', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
+ 
+     steps:
+     - uses: actions/checkout at v3


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+python3.13.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geojson/-/commit/7efd224f00523ea61eb2e99120a452a1746faa0d

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geojson/-/commit/7efd224f00523ea61eb2e99120a452a1746faa0d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240919/220d1512/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list