Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
python-geojson


Commits:
eab99fe1 by Carl Smedstad at 2024-11-18T07:27:05+01:00
Use SPDX license identifier

- - - - -
8acdad32 by Carl Smedstad at 2024-11-18T07:31:21+01:00
upgpkg: 3.1.0-3: Python 3.13 rebuild

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + remove-python-version-check.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,18 @@
 pkgbase = python-geojson
        pkgdesc = Python bindings and utilities for GeoJSON
        pkgver = 3.1.0
-       pkgrel = 2
+       pkgrel = 3
        url = https://github.com/jazzband/geojson
        arch = any
-       license = BSD
+       license = BSD-3-Clause
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-wheel
        makedepends = python-setuptools
        depends = python
        source = 
https://github.com/jazzband/geojson/archive/3.1.0/geojson-3.1.0.tar.gz
+       source = remove-python-version-check.patch
        sha256sums = 
705cd3529d47b679f9a4993e8ba1af15f7b6f59f75cea789e5273c8553c0cfd4
+       sha256sums = 
ff0fb52ca42352344ab0feb3f84213bd877f10285561e962c36a3dd80965692f
 
 pkgname = python-geojson


=====================================
PKGBUILD
=====================================
@@ -5,17 +5,26 @@
 _pyname=geojson
 pkgname="python-$_pyname"
 pkgver=3.1.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Python bindings and utilities for GeoJSON'
 url="https://github.com/jazzband/$_pyname";
 arch=(any)
-license=(BSD)
+license=(BSD-3-Clause)
 depends=(python)
 makedepends=(python-{build,installer,wheel}
              python-setuptools)
 _archive="$_pyname-$pkgver"
-source=("$url/archive/$pkgver/$_archive.tar.gz")
-sha256sums=('705cd3529d47b679f9a4993e8ba1af15f7b6f59f75cea789e5273c8553c0cfd4')
+source=(
+  "$url/archive/$pkgver/$_archive.tar.gz"
+  "remove-python-version-check.patch"
+)
+sha256sums=('705cd3529d47b679f9a4993e8ba1af15f7b6f59f75cea789e5273c8553c0cfd4'
+            'ff0fb52ca42352344ab0feb3f84213bd877f10285561e962c36a3dd80965692f')
+
+prepare() {
+  cd "$_archive"
+  patch -Np1 -i ../remove-python-version-check.patch
+}
 
 build() {
        cd "$_archive"


=====================================
remove-python-version-check.patch
=====================================
@@ -0,0 +1,16 @@
+diff --unified --recursive --text --new-file geojson-3.1.0.orig/setup.py 
geojson-3.1.0/setup.py
+--- geojson-3.1.0.orig/setup.py        2024-11-18 07:29:35.595341420 +0100
++++ geojson-3.1.0/setup.py     2024-11-18 07:29:40.948682822 +0100
+@@ -16,12 +16,6 @@
+     raise RuntimeError(f"Unable to find version string in {VERSIONFILE}.")
+ 
+ 
+-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 "
+-                     "supported at this time.\n")
+-    exit(1)
+-
+ setup(
+     name="geojson",
+     version=verstr,



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-geojson/-/compare/c669458ede6f3f73597bd73463e2ef1615987afc...8acdad328ff6cb275b113ace3d6343e521e52387

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-geojson/-/compare/c669458ede6f3f73597bd73463e2ef1615987afc...8acdad328ff6cb275b113ace3d6343e521e52387
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to