Github messages for voidlinux
 help / color / mirror / Atom feed
From: jcgruenhage <jcgruenhage@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: giara-1.0.1
Date: Sat, 03 Sep 2022 10:25:29 +0200	[thread overview]
Message-ID: <20220903082529.3yyMBxjtVrYebIEaDL8T6VxKvgmPfvGBuPtneX7s9Sk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37132@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1966 bytes --]

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages giara-1.0.1_1
https://github.com/void-linux/void-packages/pull/37132

New package: giara-1.0.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->

Follow up to #28453, which I've discovered after I had already packaged everything and was looking into mistune acting up at runtime. I agree with the sentiment that the packaging is a fragile pita, but with nearly everything in here not having the checks disabled now, I'm a bit more confident that this is actually fine.

One thing that should probably be done here is updating mistune again, because there's a stable 2.0.2 release now, which has also been updated in https://github.com/jupyter/nbconvert/pull/1764, which probably means we can update `python3-mistune` to 2.0.2 once `python3-jupyter_nbconvert` has its next stable release. The 7.0.0-rc.1 has been released 5 days ago after the mistune update had been merged.


A patch file from https://github.com/void-linux/void-packages/pull/37132.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-giara-1.0.1_1-37132.patch --]
[-- Type: text/x-diff, Size: 13349 bytes --]

From 593bc063f85926ea82c045594c9aeaa5f79eaaa0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 12:34:02 +0200
Subject: [PATCH 1/8] New package: python3-update-checker-0.18.0

---
 srcpkgs/python3-update-checker/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-update-checker/template

diff --git a/srcpkgs/python3-update-checker/template b/srcpkgs/python3-update-checker/template
new file mode 100644
index 000000000000..ff10aedf21f1
--- /dev/null
+++ b/srcpkgs/python3-update-checker/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-update-checker'
+pkgname=python3-update-checker
+version=0.18.0
+revision=1
+wrksrc="update_checker-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-requests"
+checkdepends="python3-wheel ${depends} black python3-flake8 python3-pytest"
+short_desc="Python module for checking for python package updates"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="BSD-2-Clause"
+homepage="https://pypi.org/project/update-checker/"
+distfiles="${PYPI_SITE}/u/update_checker/update_checker-${version}.tar.gz"
+checksum=6a2d45bb4ac585884a6b03f9eade9161cedd9e8111545141e9aa9058932acb13
+
+post_install() {
+	vlicense LICENSE.txt
+}

From ced616b2c39ce8a6b36e984d27010b9c293bb11b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 13:14:28 +0200
Subject: [PATCH 2/8] New package: python3-betamax-0.8.1

---
 ...-fix-direct-calls-to-PyTest-fixtures.patch | 41 +++++++++++++++++++
 srcpkgs/python3-betamax/template              | 18 ++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch
 create mode 100644 srcpkgs/python3-betamax/template

diff --git a/srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch b/srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch
new file mode 100644
index 000000000000..4ada4512700b
--- /dev/null
+++ b/srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch
@@ -0,0 +1,41 @@
+From 614b919be098fadf2b9ed89cf7201be41feea237 Mon Sep 17 00:00:00 2001
+From: Jiri Kuncar <jiri.kuncar@gmail.com>
+Date: Mon, 9 Sep 2019 12:23:18 +0200
+Subject: [PATCH] tests: fix direct calls to PyTest fixtures
+
+https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly
+---
+ tests/unit/test_fixtures.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py
+index 387d9ce..41f33eb 100644
+--- a/tests/unit/test_fixtures.py
++++ b/tests/unit/test_fixtures.py
+@@ -27,9 +27,9 @@ class TestPyTestFixture(unittest.TestCase):
+         # Mock a pytest request object
+         request = mock.MagicMock()
+         request.cls = request.module = None
+-        request.function.__name__ = 'test'
++        request.node.name = request.function.__name__ = 'test'
+ 
+-        pytest_fixture.betamax_recorder(request)
++        pytest_fixture._betamax_recorder(request)
+         assert request.addfinalizer.called is True
+         request.addfinalizer.assert_called_once_with(self.mocked_betamax.stop)
+ 
+@@ -37,9 +37,9 @@ class TestPyTestFixture(unittest.TestCase):
+         # Mock a pytest request object
+         request = mock.MagicMock()
+         request.cls = request.module = None
+-        request.function.__name__ = 'test'
++        request.node.name = request.function.__name__ = 'test'
+ 
+-        pytest_fixture.betamax_recorder(request)
++        pytest_fixture._betamax_recorder(request)
+         self.mocked_betamax.start.assert_called_once_with()
+ 
+ 
+-- 
+2.36.1
+
diff --git a/srcpkgs/python3-betamax/template b/srcpkgs/python3-betamax/template
new file mode 100644
index 000000000000..9d3ad6f62b45
--- /dev/null
+++ b/srcpkgs/python3-betamax/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-betamax'
+pkgname=python3-betamax
+version=0.8.1
+revision=1
+wrksrc="${pkgname/python3-/}-${version}"
+build_style=python3-module
+make_check_args="--deselect
+ tests/integration/test_record_modes.py::TestRecordOnce::test_replays_response_from_cassette"
+hostmakedepends="python3-setuptools"
+depends="python3-requests"
+checkdepends="${depends} python3-pytest python3-mock"
+short_desc="VCR imitation designed only for python-requests"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://betamax.readthedocs.io/"
+changelog="https://raw.githubusercontent.com/betamaxpy/betamax/master/HISTORY.rst"
+distfiles="${PYPI_SITE}/b/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
+checksum=5bf004ceffccae881213fb722f34517166b84a34919b92ffc14d1dbd050b71c2

From 7774ac52daaf314d5933324b1a0d2e24dd2f136a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 18:36:52 +0200
Subject: [PATCH 3/8] New package: python3-betamax-serializers-0.2.1

---
 srcpkgs/python3-betamax-serializers/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-betamax-serializers/template

diff --git a/srcpkgs/python3-betamax-serializers/template b/srcpkgs/python3-betamax-serializers/template
new file mode 100644
index 000000000000..274b7144db86
--- /dev/null
+++ b/srcpkgs/python3-betamax-serializers/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-betamax-serializers'
+pkgname=python3-betamax-serializers
+version=0.2.1
+revision=1
+wrksrc="${pkgname/python3-/}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-betamax"
+short_desc="Serializers for betamax that may eventually be included in betamax"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://gitlab.com/betamax/serializers"
+changelog="https://gitlab.com/betamax/serializers/-/raw/master/HISTORY.rst"
+distfiles="${PYPI_SITE}/b/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
+checksum=345c419b1b73171f2951c62ac3c701775ac4b76e13e86464ebf0ff2a978e4949
+# Has no tests
+make_check=no

From beedd280b24a01e3a0581ed0ae815d546938f4e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 18:37:34 +0200
Subject: [PATCH 4/8] New package: python3-betamax-matchers-0.4.0

---
 srcpkgs/python3-betamax-matchers/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-betamax-matchers/template

diff --git a/srcpkgs/python3-betamax-matchers/template b/srcpkgs/python3-betamax-matchers/template
new file mode 100644
index 000000000000..4c2fb692eea9
--- /dev/null
+++ b/srcpkgs/python3-betamax-matchers/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-betamax-matchers'
+pkgname=python3-betamax-matchers
+version=0.4.0
+revision=1
+wrksrc="${pkgname/python3-/}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-betamax python3-requests-toolbelt"
+short_desc="Experimental matchers for Betamax"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://github.com/betamaxpy/betamax_matchers"
+changelog="https://raw.githubusercontent.com/betamaxpy/betamax_matchers/master/HISTORY.rst"
+distfiles="${PYPI_SITE}/b/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
+checksum=83609d39ac25a7eed8ad3bec426cd15e647c89b4f0f1583ec44a4481bde4171f
+# No tests included in tarball available from PYPI
+make_check=no

From ef603bfcb856b15388dee78737aa84912fec0be8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 18:39:08 +0200
Subject: [PATCH 5/8] New package: python3-testfixtures-7.0.0

---
 srcpkgs/python3-testfixtures/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-testfixtures/template

diff --git a/srcpkgs/python3-testfixtures/template b/srcpkgs/python3-testfixtures/template
new file mode 100644
index 000000000000..ebfd4560dc37
--- /dev/null
+++ b/srcpkgs/python3-testfixtures/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-testfixtures'
+pkgname=python3-testfixtures
+version=7.0.0
+revision=1
+wrksrc="${pkgname/python3-/}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Collection of helpers and mock objects for automated tests in Python"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="MIT"
+homepage="https://github.com/Simplistix/testfixtures"
+changelog="https://raw.githubusercontent.com/simplistix/testfixtures/master/CHANGELOG.rst"
+distfiles="${PYPI_SITE}/t/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
+checksum=8ecac5a308793451640594d9ca42ce89b987711e1e4c9312855321ec21f6ccb4
+# Requires django and twisted just for running tests
+make_check=no
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 8b9e41def513850e7211e791544d74f58c4a8880 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 18:44:21 +0200
Subject: [PATCH 6/8] New package: python3-prawcore-2.3.0

---
 srcpkgs/python3-prawcore/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-prawcore/template

diff --git a/srcpkgs/python3-prawcore/template b/srcpkgs/python3-prawcore/template
new file mode 100644
index 000000000000..75e5aae7f91a
--- /dev/null
+++ b/srcpkgs/python3-prawcore/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-prawcore'
+pkgname=python3-prawcore
+version=2.3.0
+revision=1
+wrksrc="${pkgname/python3-/}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-requests"
+checkdepends="${depends} python3-betamax python3-betamax-matchers python3-betamax-serializers python3-mock python3-pytest python3-testfixtures"
+short_desc="Low-level communication layer for PRAW 4+"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="BSD-2-Clause"
+homepage="https://github.com/praw-dev/prawcore"
+changelog="https://raw.githubusercontent.com/praw-dev/prawcore/main/CHANGES.rst"
+distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
+checksum=daf1ccd4b7a80dc4e6567d48336d782e94a9a6dad83770fc2edf76dc9a84f56d
+
+post_install() {
+	vlicense LICENSE.txt
+}

From da50f8d946fc4191cb68f80fce064bada917f6dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 18:45:28 +0200
Subject: [PATCH 7/8] New package: python3-praw-7.6.0

---
 srcpkgs/python3-praw/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-praw/template

diff --git a/srcpkgs/python3-praw/template b/srcpkgs/python3-praw/template
new file mode 100644
index 000000000000..04658dfa0d6e
--- /dev/null
+++ b/srcpkgs/python3-praw/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-praw'
+pkgname=python3-praw
+version=7.6.0
+revision=1
+wrksrc="${pkgname/python3-/}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-prawcore python3-update-checker python3-websocket-client"
+checkdepends="${depends} python3-requests python3-betamax python3-betamax-matchers"
+short_desc="Python Reddit API Wrapper"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="BSD-2-Clause"
+homepage="https://praw.readthedocs.io/en/stable/"
+changelog="https://raw.githubusercontent.com/praw-dev/praw/master/CHANGES.rst"
+distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
+checksum=3eeebe093f2d905b6c99e18aa8c8f64071b2e7a05e60b618166ee53397cdae72
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 76a032c42cc34b737977fbee89c22dcba37ce53c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 19:35:14 +0200
Subject: [PATCH 8/8] New package: giara-1.0.1

---
 srcpkgs/giara/template | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/giara/template

diff --git a/srcpkgs/giara/template b/srcpkgs/giara/template
new file mode 100644
index 000000000000..82366610f626
--- /dev/null
+++ b/srcpkgs/giara/template
@@ -0,0 +1,14 @@
+# Template file for 'giara'
+pkgname=giara
+version=1.0.1
+revision=1
+build_style=meson
+hostmakedepends="pkg-config cmake gettext blueprint-compiler"
+makedepends="gtk4-devel libadwaita-devel libgirepository-devel"
+depends="python3-Pillow python3-requests python3-praw python3-mistune2 python3-BeautifulSoup4 gtksourceview5"
+short_desc="Reddit app with mobile Linux in mind"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="GPL-3.0-or-later"
+homepage="https://gitlab.gnome.org/World/giara"
+distfiles="${homepage}/-/archive/${version}/giara-${version}.tar.gz"
+checksum=fc38e2cec5315e0abaeb1053b18984e7ded5526f026b435a799d63870a1e4c36

  parent reply	other threads:[~2022-09-03  8:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-14 17:44 [PR PATCH] " jcgruenhage
2022-09-02  2:16 ` github-actions
2022-09-02 13:05 ` [PR PATCH] [Updated] " jcgruenhage
2022-09-02 13:05 ` jcgruenhage
2022-09-02 19:05 ` paper42
2022-09-03  8:25 ` jcgruenhage [this message]
2022-09-03  8:25 ` jcgruenhage
2022-11-27 10:58 ` [PR PATCH] [Updated] " jcgruenhage
2022-11-27 11:02 ` jcgruenhage
2022-12-11 20:44 ` [PR REVIEW] " paper42
2022-12-11 21:11 ` jcgruenhage
2022-12-11 21:41 ` jcgruenhage
2022-12-11 21:43 ` [PR PATCH] [Updated] " jcgruenhage
2022-12-11 21:57 ` [PR REVIEW] " paper42
2022-12-11 21:57 ` paper42
2022-12-11 21:57 ` paper42
2022-12-11 21:57 ` paper42
2022-12-11 21:57 ` paper42
2022-12-11 21:57 ` paper42
2022-12-11 21:57 ` paper42
2022-12-11 21:57 ` paper42
2022-12-11 23:30 ` jcgruenhage
2022-12-11 23:35 ` [PR PATCH] [Updated] " jcgruenhage
2022-12-16 18:58 ` [PR REVIEW] " paper42
2022-12-16 18:58 ` paper42
2022-12-16 23:01 ` [PR PATCH] [Updated] " jcgruenhage
2023-03-17  1:56 ` github-actions
2023-03-19 14:26 ` jcgruenhage
2023-04-10 16:27 ` [PR REVIEW] " eli-schwartz
2023-07-10  2:08 ` github-actions
2023-07-25  2:01 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220903082529.3yyMBxjtVrYebIEaDL8T6VxKvgmPfvGBuPtneX7s9Sk@z \
    --to=jcgruenhage@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).