Date: Sunday, April 30, 2023 @ 00:31:57
  Author: grawlinson
Revision: 1454842

upgpkg: certbot-dns-route53 2.5.0-1

Modified:
  certbot-dns-route53/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++--------------------
 1 file changed, 24 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-30 00:31:42 UTC (rev 1454841)
+++ PKGBUILD    2023-04-30 00:31:57 UTC (rev 1454842)
@@ -2,12 +2,12 @@
 # Contributor: Felix Yan <[email protected]>
 
 pkgname=certbot-dns-route53
-pkgver=2.3.0
-pkgrel=2
-pkgdesc="Route53 DNS Authenticator plugin for Certbot"
+pkgver=2.5.0
+pkgrel=1
+pkgdesc='Route53 DNS Authenticator plugin for Certbot'
 arch=('any')
 license=('Apache')
-url="https://pypi.python.org/pypi/$pkgname";
+url='https://pypi.python.org/pypi/certbot-dns-route53'
 depends=(
   "certbot=$pkgver"
   "python-acme=$pkgver"
@@ -14,25 +14,28 @@
   'python-boto3'
 )
 makedepends=(
+  'git'
   'python-build'
   'python-wheel'
   'python-installer'
 )
 checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc})
-validpgpkeys=('148C30F6F7E429337A72D992B00B9CC82D7ADF2C'
-              '1B41B758F9A78C7F444C20FA3E5B4152E3ADB1FD'
-              'A2CFB51FA275A7286234E7B24D17C995CD9775F2'
-              '86379B4F0AF371B50CD9E5FF3402831161D1D280'
-              '20F201346BF8F3F455A73F9A780CC99432A28621'
-              'F2871B4152AE13C49519111F447BF683AA3B26C3')
-sha512sums=('be94d0e0cbe7e296f490779628efea645b33a382450c4790237237f283adcf7145c6e179e5c4e8b932c49dc80b552b7a4d273b2f3e1f81f849f4d5a4c2b49b92'
-            'SKIP')
-b2sums=('84bcd428ed4bb1831870209fb4a5ee5168d7d750b8386d19141b7e3a071c782270ebc5b37d4dbb7e71664b73a23c8223655259d98fb8239b2488f30055135b2a'
-        'SKIP')
+# git repository is used because certbot is a huge monorepo and it's easier to
+# share the entire repository across all certbot related packages than a few
+# hundred tarballs.
+_commit='3c667e8fffc2f6f4304f284ea52531bbf750a6c4'
+_repo='github.com-certbot-certbot'
+source=("$_repo::git+https://github.com/certbot/certbot#commit=$_commit";)
+b2sums=('SKIP')
 
+pkgver() {
+  cd "$_repo"
+
+  git describe --tags | sed 's/^v//'
+}
+
 prepare() {
-  cd "$pkgname-$pkgver"
+  cd "$_repo/$pkgname"
 
   # nuke setuptools from orbit ^W install_requires
   sed \
@@ -41,19 +44,20 @@
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$_repo/$pkgname"
 
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "$_repo/$pkgname"
 
-  python -m pytest
+  # https://github.com/certbot/certbot/issues/9606
+  pytest -v -W ignore::DeprecationWarning
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "$_repo/$pkgname"
 
   python -m installer --destdir="$pkgdir" dist/*.whl
 }

Reply via email to