[arch-commits] Commit in python-jsonpickle/repos/community-staging-any (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 19:21:17 UTC 2021


    Date: Thursday, December 2, 2021 @ 19:21:17
  Author: felixonmars
Revision: 1062334

archrelease: copy trunk to community-staging-any

Added:
  python-jsonpickle/repos/community-staging-any/PKGBUILD
    (from rev 1062328, python-jsonpickle/trunk/PKGBUILD)
  python-jsonpickle/repos/community-staging-any/fix-importlib_metadata-dependency.patch
    (from rev 1062329, python-jsonpickle/trunk/fix-importlib_metadata-dependency.patch)
Deleted:
  python-jsonpickle/repos/community-staging-any/PKGBUILD
  python-jsonpickle/repos/community-staging-any/fix-importlib_metadata-dependency.patch

-----------------------------------------+
 PKGBUILD                                |   78 ++++++++++++++--------------
 fix-importlib_metadata-dependency.patch |   82 +++++++++++++++---------------
 2 files changed, 80 insertions(+), 80 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 19:21:16 UTC (rev 1062333)
+++ PKGBUILD	2021-12-02 19:21:17 UTC (rev 1062334)
@@ -1,39 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-jsonpickle
-pkgver=1.5.2
-pkgrel=2
-arch=('any')
-pkgdesc="Python library for serializing any arbitrary object graph into JSON"
-url="https://jsonpickle.github.io/"
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-numpy' 'python-feedparser' 'python-simplejson'
-              'python-pymongo' 'python-ujson' 'python-pandas' 'python-pytest')
-source=("https://github.com/jsonpickle/jsonpickle/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('d7a84fab67c98c857d59983a19ae3fc4408f69ad95fa9332106a68eac1075b522703a1293d86b111297543b45cc6a0a3dee457902f1e384c32be8073415abbcc')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cd jsonpickle-$pkgver
-  # do not run coverage and other non-integration tests in an integration test
-  sed -i 's/--flake8 --black --cov//' pytest.ini
-}
-
-build() {
-  cd jsonpickle-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd jsonpickle-$pkgver
-  pytest
-}
-
-package() {
-  cd jsonpickle-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-jsonpickle/repos/community-staging-any/PKGBUILD (from rev 1062328, python-jsonpickle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-02 19:21:17 UTC (rev 1062334)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jsonpickle
+pkgver=1.5.2
+pkgrel=3
+arch=('any')
+pkgdesc="Python library for serializing any arbitrary object graph into JSON"
+url="https://jsonpickle.github.io/"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-numpy' 'python-feedparser' 'python-simplejson'
+              'python-pymongo' 'python-ujson' 'python-pandas' 'python-pytest')
+source=("https://github.com/jsonpickle/jsonpickle/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('d7a84fab67c98c857d59983a19ae3fc4408f69ad95fa9332106a68eac1075b522703a1293d86b111297543b45cc6a0a3dee457902f1e384c32be8073415abbcc')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd jsonpickle-$pkgver
+  # do not run coverage and other non-integration tests in an integration test
+  sed -i 's/--flake8 --black --cov//' pytest.ini
+}
+
+build() {
+  cd jsonpickle-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd jsonpickle-$pkgver
+  pytest
+}
+
+package() {
+  cd jsonpickle-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Deleted: fix-importlib_metadata-dependency.patch
===================================================================
--- fix-importlib_metadata-dependency.patch	2021-12-02 19:21:16 UTC (rev 1062333)
+++ fix-importlib_metadata-dependency.patch	2021-12-02 19:21:17 UTC (rev 1062334)
@@ -1,41 +0,0 @@
-From 8debff4511089dad850930c702106a436275f118 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro at hroncok.cz>
-Date: Wed, 22 Apr 2020 20:38:28 +0200
-Subject: [PATCH] Use importlib.metadata from the standard library on Python
- 3.8+
-
-Fixes https://github.com/jsonpickle/jsonpickle/issues/303
----
- jsonpickle/version.py | 7 ++++++-
- setup.cfg             | 2 +-
- 2 files changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/jsonpickle/version.py b/jsonpickle/version.py
-index 01c83c4..92b44b2 100644
---- a/jsonpickle/version.py
-+++ b/jsonpickle/version.py
-@@ -1,5 +1,10 @@
-+import sys
-+
- try:
--    import importlib_metadata as metadata
-+    if sys.version_info < (3, 8):
-+        import importlib_metadata as metadata
-+    else:
-+        from importlib import metadata
- except (ImportError, OSError):
-     metadata = None
- 
-diff --git a/setup.cfg b/setup.cfg
-index 9f0eab2..46707ec 100644
---- a/setup.cfg
-+++ b/setup.cfg
-@@ -36,7 +36,7 @@ packages = find:
- include_package_data = true
- python_requires = >=2.7
- install_requires =
--	importlib_metadata
-+	importlib_metadata; python_version<"3.8"
- setup_requires = setuptools_scm[toml] >= 3.4.1
- 
- [options.extras_require]

Copied: python-jsonpickle/repos/community-staging-any/fix-importlib_metadata-dependency.patch (from rev 1062329, python-jsonpickle/trunk/fix-importlib_metadata-dependency.patch)
===================================================================
--- fix-importlib_metadata-dependency.patch	                        (rev 0)
+++ fix-importlib_metadata-dependency.patch	2021-12-02 19:21:17 UTC (rev 1062334)
@@ -0,0 +1,41 @@
+From 8debff4511089dad850930c702106a436275f118 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro at hroncok.cz>
+Date: Wed, 22 Apr 2020 20:38:28 +0200
+Subject: [PATCH] Use importlib.metadata from the standard library on Python
+ 3.8+
+
+Fixes https://github.com/jsonpickle/jsonpickle/issues/303
+---
+ jsonpickle/version.py | 7 ++++++-
+ setup.cfg             | 2 +-
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/jsonpickle/version.py b/jsonpickle/version.py
+index 01c83c4..92b44b2 100644
+--- a/jsonpickle/version.py
++++ b/jsonpickle/version.py
+@@ -1,5 +1,10 @@
++import sys
++
+ try:
+-    import importlib_metadata as metadata
++    if sys.version_info < (3, 8):
++        import importlib_metadata as metadata
++    else:
++        from importlib import metadata
+ except (ImportError, OSError):
+     metadata = None
+ 
+diff --git a/setup.cfg b/setup.cfg
+index 9f0eab2..46707ec 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -36,7 +36,7 @@ packages = find:
+ include_package_data = true
+ python_requires = >=2.7
+ install_requires =
+-	importlib_metadata
++	importlib_metadata; python_version<"3.8"
+ setup_requires = setuptools_scm[toml] >= 3.4.1
+ 
+ [options.extras_require]



More information about the arch-commits mailing list