Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
6a316aad
Commit
6a316aad
authored
3 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
community/py3-geojson: rebuild against python 3.9
parent
89d50570
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
community/py3-geojson/APKBUILD
+5
-3
5 additions, 3 deletions
community/py3-geojson/APKBUILD
community/py3-geojson/python-3.9.patch
+23
-0
23 additions, 0 deletions
community/py3-geojson/python-3.9.patch
with
28 additions
and
3 deletions
community/py3-geojson/APKBUILD
+
5
−
3
View file @
6a316aad
...
...
@@ -2,14 +2,15 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname
=
py3-geojson
pkgver
=
2.5.0
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Python bindings and utilities for GeoJSON"
url
=
"https://github.com/jazzband/geojson"
arch
=
"noarch"
license
=
"BSD-3-Clause"
depends
=
"python3"
makedepends
=
"py3-setuptools"
source
=
"https://pypi.python.org/packages/source/g/geojson/geojson-
$pkgver
.tar.gz"
source
=
"https://pypi.python.org/packages/source/g/geojson/geojson-
$pkgver
.tar.gz
python-3.9.patch"
builddir
=
"
$srcdir
/geojson-
$pkgver
"
build
()
{
...
...
@@ -24,4 +25,5 @@ package() {
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"68d59a6c7d796549dba4e4e71219901c2d939c7f8f5794c1e6be7cadffb006ad99ac658e0159977b3ecc88cf5ef4f908d3837dddc54c70261291f8fa7b8ffbae geojson-2.5.0.tar.gz"
sha512sums
=
"68d59a6c7d796549dba4e4e71219901c2d939c7f8f5794c1e6be7cadffb006ad99ac658e0159977b3ecc88cf5ef4f908d3837dddc54c70261291f8fa7b8ffbae geojson-2.5.0.tar.gz
fbbbfa55963f77e331dee8e4aeb35b529a7dad3da552f23bbf3176d610900a45790bdf1bfc9b46102c773ddd02d56d3763f81b726d49a4acb8e14c7f369fd94d python-3.9.patch"
This diff is collapsed.
Click to expand it.
community/py3-geojson/python-3.9.patch
0 → 100644
+
23
−
0
View file @
6a316aad
From d88e32f1b05ad287a8d612e6f61ed7432fc72957 Mon Sep 17 00:00:00 2001
From: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Date: Mon, 10 Aug 2020 10:06:14 +0530
Subject: [PATCH] Remove encoding parameter from json.load for Python 3.9
compatibility. (#151)
---
tests/test_features.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_features.py b/tests/test_features.py
index 529de70..e2b56e9 100644
--- a/tests/test_features.py
+++ b/tests/test_features.py
@@ -82,7 +82,7 @@
def test_feature_class(self):
' "properties": {"summary": "The first feature",'
' "link": "http://example.org/features/1",'
' "title": "Feature 1"}}')
- feature = geojson.loads(json, object_hook=factory, encoding="utf-8")
+ feature = geojson.loads(json, object_hook=factory)
self.assertEqual(repr(type(feature)),
"<class 'geojson.examples.SimpleWebFeature'>")
self.assertEqual(feature.id, '1')
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment