Date: Saturday, January 7, 2023 @ 11:04:18
Author: polyzen
Revision: 1381666
archrelease: copy trunk to community-x86_64
Added:
python-jq/repos/community-x86_64/PKGBUILD
(from rev 1381665, python-jq/trunk/PKGBUILD)
python-jq/repos/community-x86_64/jq-py-setup.patch
(from rev 1381665, python-jq/trunk/jq-py-setup.patch)
Deleted:
python-jq/repos/community-x86_64/PKGBUILD
python-jq/repos/community-x86_64/jq-py-setup.patch
-------------------+
PKGBUILD | 98 ++++++++++++++++++++++++++--------------------------
jq-py-setup.patch | 48 ++++++++++++-------------
2 files changed, 73 insertions(+), 73 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-07 11:03:55 UTC (rev 1381665)
+++ PKGBUILD 2023-01-07 11:04:18 UTC (rev 1381666)
@@ -1,49 +0,0 @@
-# Maintainer: Daniel M. Capella <[email protected]>
-# Contributor: Mubashshir <[email protected]>
-
-_name=jq.py
-pkgname=python-jq
-pkgver=1.3.0
-pkgrel=1
-pkgdesc='Python bindings for jq'
-arch=('x86_64')
-url=https://github.com/mwilliamson/jq.py
-license=('BSD')
-depends=('jq' 'python')
-makedepends=('cython' 'git' 'python-build' 'python-installer'
- 'python-setuptools' 'python-wheel')
-checkdepends=('python-pytest')
-source=("git+$url.git#tag=$pkgver"
- 'jq-py-setup.patch')
-b2sums=('SKIP'
-
'ea5061ea7d4bad240c0df82dec3a430a583f1596685a8b4b36f1a0ee6bcae745586f5b1abf3985a8bb0e13523ef084bd6e05f9f430df247c2a6ec2044f99017a')
-
-# Devendor
-prepare() {
- cd $_name
- patch --forward --input=../jq-py-setup.patch
-}
-
-build() {
- cd $_name
- cython -3 jq.pyx
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- cd $_name
- python -m venv --system-site-packages test-env
- test-env/bin/python -m installer dist/*.whl
- test-env/bin/python -m pytest
-}
-
-package() {
- cd $_name
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- # Symlink license file
- local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
- install -d "$pkgdir"/usr/share/licenses/$pkgname
- ln -s "$site_packages"/jq-$pkgver.dist-info/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-jq/repos/community-x86_64/PKGBUILD (from rev 1381665,
python-jq/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-07 11:04:18 UTC (rev 1381666)
@@ -0,0 +1,49 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Mubashshir <[email protected]>
+
+_name=jq.py
+pkgname=python-jq
+pkgver=1.4.0
+pkgrel=1
+pkgdesc='Python bindings for jq'
+arch=('x86_64')
+url=https://github.com/mwilliamson/jq.py
+license=('BSD')
+depends=('jq' 'python')
+makedepends=('cython' 'git' 'python-build' 'python-installer'
+ 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest')
+source=("git+$url.git#tag=$pkgver"
+ 'jq-py-setup.patch')
+b2sums=('SKIP'
+
'ea5061ea7d4bad240c0df82dec3a430a583f1596685a8b4b36f1a0ee6bcae745586f5b1abf3985a8bb0e13523ef084bd6e05f9f430df247c2a6ec2044f99017a')
+
+# Devendor
+prepare() {
+ cd $_name
+ patch --forward --input=../jq-py-setup.patch
+}
+
+build() {
+ cd $_name
+ cython -3 jq.pyx
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest
+}
+
+package() {
+ cd $_name
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/jq-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Deleted: jq-py-setup.patch
===================================================================
--- jq-py-setup.patch 2023-01-07 11:03:55 UTC (rev 1381665)
+++ jq-py-setup.patch 2023-01-07 11:04:18 UTC (rev 1381666)
@@ -1,24 +0,0 @@
---- setup.py.orig 2022-09-19 15:51:09 UTC
-+++ setup.py
-@@ -36,8 +36,6 @@ class jq_build_ext(build_ext):
- def run(self):
- if not os.path.exists(_dep_build_path(".")):
- os.makedirs(_dep_build_path("."))
-- self._build_oniguruma()
-- self._build_libjq()
- build_ext.run(self)
-
- def _build_oniguruma(self):
-@@ -87,11 +85,7 @@ jq_extension = Extension(
- "jq",
- sources=["jq.c"],
- include_dirs=[os.path.join(jq_lib_dir, "src")],
-- extra_link_args=["-lm"],
-- extra_objects=[
-- os.path.join(jq_lib_dir, ".libs/libjq.a"),
-- os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"),
-- ],
-+ extra_link_args=["-lm", "-ljq", "-lonig"],
- )
-
- setup(
Copied: python-jq/repos/community-x86_64/jq-py-setup.patch (from rev 1381665,
python-jq/trunk/jq-py-setup.patch)
===================================================================
--- jq-py-setup.patch (rev 0)
+++ jq-py-setup.patch 2023-01-07 11:04:18 UTC (rev 1381666)
@@ -0,0 +1,24 @@
+--- setup.py.orig 2022-09-19 15:51:09 UTC
++++ setup.py
+@@ -36,8 +36,6 @@ class jq_build_ext(build_ext):
+ def run(self):
+ if not os.path.exists(_dep_build_path(".")):
+ os.makedirs(_dep_build_path("."))
+- self._build_oniguruma()
+- self._build_libjq()
+ build_ext.run(self)
+
+ def _build_oniguruma(self):
+@@ -87,11 +85,7 @@ jq_extension = Extension(
+ "jq",
+ sources=["jq.c"],
+ include_dirs=[os.path.join(jq_lib_dir, "src")],
+- extra_link_args=["-lm"],
+- extra_objects=[
+- os.path.join(jq_lib_dir, ".libs/libjq.a"),
+- os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"),
+- ],
++ extra_link_args=["-lm", "-ljq", "-lonig"],
+ )
+
+ setup(