python-smartypants: update to 2.0.2
This commit is contained in:
parent
191289bce8
commit
357241825a
@ -3,13 +3,16 @@
|
||||
_realname=smartypants
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=2.0.1
|
||||
pkgrel=8
|
||||
pkgver=2.0.2
|
||||
pkgrel=1
|
||||
pkgdesc="Python with the SmartyPants (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url='https://github.com/leohemsted/smartypants.py'
|
||||
msys2_references=(
|
||||
'anitya: 20572'
|
||||
'archlinux: python-smartypants'
|
||||
'gentoo: dev-python/smartypants'
|
||||
'purl: pkg:pypi/smartypants'
|
||||
)
|
||||
license=('spdx:BSD-3-Clause')
|
||||
@ -19,8 +22,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
source=("https://github.com/leohemsted/${_realname}.py/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
|
||||
fix-tests.patch)
|
||||
sha256sums=('b98191911ff3b4144ef8ad53e776a2d0ad24bd508a905c6ce523597c40022773'
|
||||
'a42486d450a6d94cc4377fc189cbd2c6faee814a036b5f866f7fa1e2d4c6983a')
|
||||
sha256sums=('560ae7485a27c288f5bd63131f5c3c7b8f0745f50e7c3f85f0bbc65d87799d19'
|
||||
'9ad6df81da1683cea53dc4b9e1cb3d129a244ad1453afeb3e518bfb9e14552f0')
|
||||
|
||||
# Helper macros to help make tasks easier #
|
||||
apply_patch_with_msg() {
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
+ output = self._p(['python', CLI_SCRIPT], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
def test_pipe_attr(self):
|
||||
@@ -41,11 +46,17 @@
|
||||
@ -27,10 +27,10 @@
|
||||
E = T
|
||||
- output = self._p([CLI_SCRIPT, '--attr', '0'], T)
|
||||
+ if os.name == 'nt':
|
||||
+ output = self._p(['python', CLI_SCRIPT], T)
|
||||
+ output = self._p(['python', CLI_SCRIPT, '--attr', '0'], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT, '--attr', '0'], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
E = """"foo" “bar”"""
|
||||
- output = self._p([CLI_SCRIPT, '--attr', 'b'], T)
|
||||
@ -38,7 +38,7 @@
|
||||
+ output = self._p(['python', CLI_SCRIPT, '--attr', 'b'], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT, '--attr', 'b'], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
def test_skipped_elements(self):
|
||||
@@ -53,19 +64,31 @@
|
||||
@ -50,7 +50,7 @@
|
||||
+ output = self._p(['python', CLI_SCRIPT], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
E = '<a>"foo"</a> <b>“bar”</b>'
|
||||
- output = self._p([CLI_SCRIPT, '--skip', 'a'], T)
|
||||
@ -58,7 +58,7 @@
|
||||
+ output = self._p(['python', CLI_SCRIPT, '--skip', 'a'], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT, '--skip', 'a'], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
E = '<a>“foo”</a> <b>"bar"</b>'
|
||||
- output = self._p([CLI_SCRIPT, '--skip', 'b'], T)
|
||||
@ -66,7 +66,7 @@
|
||||
+ output = self._p(['python', CLI_SCRIPT, '--skip', 'b'], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT, '--skip', 'b'], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
E = T
|
||||
- output = self._p([CLI_SCRIPT, '--skip', 'a,b'], T)
|
||||
@ -74,7 +74,7 @@
|
||||
+ output = self._p(['python', CLI_SCRIPT, '--skip', 'a,b'], T)
|
||||
+ else:
|
||||
+ output = self._p([CLI_SCRIPT, '--skip', 'a,b'], T)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
def test_file(self):
|
||||
@@ -78,7 +101,20 @@
|
||||
@ -99,4 +99,4 @@
|
||||
+ break
|
||||
+ else:
|
||||
+ os.remove(F)
|
||||
self.assertEquals(output, E)
|
||||
self.assertEqual(output, E)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user