[arch-commits] Commit in (5 files)
Felix Yan
felixonmars at archlinux.org
Sun Jun 11 05:43:14 UTC 2017
Date: Sunday, June 11, 2017 @ 05:43:12
Author: felixonmars
Revision: 236117
addpkg: certbot-dns-digitalocean 0.15.0-1
Added:
certbot-dns-digitalocean/
certbot-dns-digitalocean/repos/
certbot-dns-digitalocean/trunk/
certbot-dns-digitalocean/trunk/PKGBUILD
certbot-dns-digitalocean/trunk/python3.patch
---------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
python3.patch | 33 +++++++++++++++++++++++++++++++++
2 files changed, 73 insertions(+)
Added: certbot-dns-digitalocean/trunk/PKGBUILD
===================================================================
--- certbot-dns-digitalocean/trunk/PKGBUILD (rev 0)
+++ certbot-dns-digitalocean/trunk/PKGBUILD 2017-06-11 05:43:12 UTC (rev 236117)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=certbot-dns-digitalocean
+pkgver=0.15.0
+pkgrel=1
+pkgdesc="DigitalOcean DNS Authenticator plugin for Certbot"
+arch=('any')
+license=('Apache')
+url="https://pypi.python.org/pypi/$pkgname"
+depends=("certbot=$pkgver" "python-acme=$pkgver" 'python-digitalocean' 'python-mock'
+ 'python-setuptools' 'python-zope-interface')
+source=("https://pypi.io/packages/source/c/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
+ python3.patch)
+validpgpkeys=('148C30F6F7E429337A72D992B00B9CC82D7ADF2C'
+ '1B41B758F9A78C7F444C20FA3E5B4152E3ADB1FD'
+ 'A2CFB51FA275A7286234E7B24D17C995CD9775F2')
+sha512sums=('5ebb5c1f291a03afb85fb5f45ec53f5795af8f5f28954be4e8c25624e28089c178f8dba26e5d1a8cabdffcd85629cb4b2410721b0aa4846835e52a9bc2f53699'
+ 'SKIP'
+ '7d61ce1ac31939ce5f0ea78ef45f74e6e22bc2a5c1348c98a7b1c9f7083eddd0a3448dec9c2d6ef9ea14e763d3fc6672e882bf1460e97770fba0e928ebc52266')
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p2 -i ../python3.patch
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/$pkgname-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ python setup.py install --root="$pkgdir"
+}
Property changes on: certbot-dns-digitalocean/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: certbot-dns-digitalocean/trunk/python3.patch
===================================================================
--- certbot-dns-digitalocean/trunk/python3.patch (rev 0)
+++ certbot-dns-digitalocean/trunk/python3.patch 2017-06-11 05:43:12 UTC (rev 236117)
@@ -0,0 +1,33 @@
+From 41d11cc1e8610c046e9889931197ced07aa195c1 Mon Sep 17 00:00:00 2001
+From: Felix Yan <felixonmars at archlinux.org>
+Date: Sun, 11 Jun 2017 13:40:20 +0800
+Subject: [PATCH] Fix digitalocean plugin tests for Python 3
+
+assertItemsEqual() doesn't exist in Python 3.x. Travis didn't fail because of some nose errors (so not all tests were run).
+---
+ .../certbot_dns_digitalocean/dns_digitalocean_test.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/certbot-dns-digitalocean/certbot_dns_digitalocean/dns_digitalocean_test.py b/certbot-dns-digitalocean/certbot_dns_digitalocean/dns_digitalocean_test.py
+index 7e97eed073..6ff76079b5 100644
+--- a/certbot-dns-digitalocean/certbot_dns_digitalocean/dns_digitalocean_test.py
++++ b/certbot-dns-digitalocean/certbot_dns_digitalocean/dns_digitalocean_test.py
+@@ -2,6 +2,7 @@
+
+ import os
+ import unittest
++import six
+
+ import digitalocean
+ import mock
+@@ -133,8 +134,8 @@ def test_del_txt_record(self):
+
+ correct_record_mock.destroy.assert_called()
+
+- self.assertItemsEqual(first_record_mock.destroy.call_args_list, [])
+- self.assertItemsEqual(last_record_mock.destroy.call_args_list, [])
++ six.assertCountEqual(self, first_record_mock.destroy.call_args_list, [])
++ six.assertCountEqual(self, last_record_mock.destroy.call_args_list, [])
+
+ def test_del_txt_record_error_finding_domain(self):
+ self.manager.get_all_domains.side_effect = API_ERROR
More information about the arch-commits
mailing list