Date: Monday, October 24, 2022 @ 00:20:13
  Author: polyzen
Revision: 1334429

archrelease: copy trunk to community-any

Added:
  rss2email/repos/community-any/0001-Use-poetry-core-as-build-backend.patch
    (from rev 1334428, 
rss2email/trunk/0001-Use-poetry-core-as-build-backend.patch)
  rss2email/repos/community-any/PKGBUILD
    (from rev 1334428, rss2email/trunk/PKGBUILD)
Deleted:
  rss2email/repos/community-any/PKGBUILD

---------------------------------------------+
 0001-Use-poetry-core-as-build-backend.patch |   28 +++++++++++
 PKGBUILD                                    |   63 ++++++++++++++------------
 2 files changed, 63 insertions(+), 28 deletions(-)

Copied: 
rss2email/repos/community-any/0001-Use-poetry-core-as-build-backend.patch (from 
rev 1334428, rss2email/trunk/0001-Use-poetry-core-as-build-backend.patch)
===================================================================
--- 0001-Use-poetry-core-as-build-backend.patch                         (rev 0)
+++ 0001-Use-poetry-core-as-build-backend.patch 2022-10-24 00:20:13 UTC (rev 
1334429)
@@ -0,0 +1,28 @@
+From d44dcd233104ccb70c01df5bfcd249264647ad07 Mon Sep 17 00:00:00 2001
+From: "Daniel M. Capella" <[email protected]>
+Date: Sun, 23 Oct 2022 20:06:25 -0400
+Subject: [PATCH] Use poetry-core as build-backend
+
+See https://archlinux.org/todo/use-correct-pep517-build-system/
+---
+ pyproject.toml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 6a14265..b670947 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -14,8 +14,8 @@ html2text = ">=2020.1.16"
+ update-copyright = ">=0.6.2"
+ 
+ [build-system]
+-requires = ["poetry>=0.12"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+ 
+ [tool.poetry.scripts]
+ r2e = "rss2email.main:run"
+-- 
+2.38.1
+

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-24 00:19:46 UTC (rev 1334428)
+++ PKGBUILD    2022-10-24 00:20:13 UTC (rev 1334429)
@@ -1,28 +0,0 @@
-# Maintainer: Christian Hesse <[email protected]>
-# Maintainer: Daniel M. Capella <[email protected]>
-# Contributor: Chris Brannon <[email protected]>
-# Contributor: Dag Odenhall <[email protected]>
-
-pkgname=rss2email
-pkgver=3.14
-pkgrel=3
-pkgdesc='A tool for delivering news from RSS feeds to your email program'
-arch=('any')
-url='https://github.com/rss2email/rss2email'
-license=('GPL')
-depends=('python' 'python-html2text' 'python-feedparser')
-makedepends=('python-build' 'python-installer' 'python-poetry')
-source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('ea09b68f6a5421b0bd50e98e24d49a0a33bd54a5f59d0f1be1f6f3f05b8c6087')
-
-build() {
-       cd ${pkgname}-${pkgver}
-       python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-package() {
-       cd ${pkgname}-${pkgver}
-       python -m installer --destdir="${pkgdir}" dist/*.whl
-       install -Dm644 -t "${pkgdir}"/usr/share/man/man1 r2e.1
-       install -Dm644 completion/r2e.zsh 
"${pkgdir}"/usr/share/zsh/site-functions/_r2e
-}

Copied: rss2email/repos/community-any/PKGBUILD (from rev 1334428, 
rss2email/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-24 00:20:13 UTC (rev 1334429)
@@ -0,0 +1,35 @@
+# Maintainer: Christian Hesse <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Chris Brannon <[email protected]>
+# Contributor: Dag Odenhall <[email protected]>
+
+pkgname=rss2email
+pkgver=3.14
+pkgrel=4
+pkgdesc='A tool for delivering news from RSS feeds to your email program'
+arch=('any')
+url='https://github.com/rss2email/rss2email'
+license=('GPL')
+depends=('python' 'python-html2text' 'python-feedparser')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        '0001-Use-poetry-core-as-build-backend.patch')
+sha256sums=('ea09b68f6a5421b0bd50e98e24d49a0a33bd54a5f59d0f1be1f6f3f05b8c6087'
+            'eea10b00b105d77d9054adfb344b64b85b49c45a02b3dec2e3e8e07ca0261c6a')
+
+prepare() {
+       cd ${pkgname}-${pkgver}
+       patch --forward --strip=1 
--input=../0001-Use-poetry-core-as-build-backend.patch
+}
+
+build() {
+       cd ${pkgname}-${pkgver}
+       python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+       cd ${pkgname}-${pkgver}
+       python -m installer --destdir="${pkgdir}" dist/*.whl
+       install -Dm644 -t "${pkgdir}"/usr/share/man/man1 r2e.1
+       install -Dm644 completion/r2e.zsh 
"${pkgdir}"/usr/share/zsh/site-functions/_r2e
+}

Reply via email to