[arch-commits] Commit in piep/repos/community-any (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Jan 13 12:45:20 UTC 2021
Date: Wednesday, January 13, 2021 @ 12:45:19
Author: felixonmars
Revision: 820439
archrelease: copy trunk to community-any
Added:
piep/repos/community-any/PKGBUILD
(from rev 820438, piep/trunk/PKGBUILD)
piep/repos/community-any/piep-python3.8.patch
(from rev 820438, piep/trunk/piep-python3.8.patch)
Deleted:
piep/repos/community-any/PKGBUILD
piep/repos/community-any/piep-python3.8.patch
----------------------+
PKGBUILD | 70 +++++++++++++++++++----------------
piep-python3.8.patch | 98 ++++++++++++++++++++++++-------------------------
2 files changed, 87 insertions(+), 81 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-13 12:45:07 UTC (rev 820438)
+++ PKGBUILD 2021-01-13 12:45:19 UTC (rev 820439)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=piep
-pkgdesc='Bringing the power of python to stream editing'
-pkgver=0.9.2
-pkgrel=3
-arch=("any")
-url="https://github.com/gfxmonk/piep"
-license=("GPL")
-depends=('python-pygments' 'python-setuptools')
-makedepends=('python-nose')
-source=("https://github.com/gfxmonk/$pkgname/archive/version-$pkgver.tar.gz"
- piep-python3.8.patch)
-sha512sums=('9d36c31a90fbdc43ff1c7f66a6496290305c5402d7020d2e559b84b9eb796e7945f12c38d5d4167a3518d2664128403e34102445bf60475d21122de73983a5f9'
- '3193b38ed2249c16758388d306aa9a8d1adcf345e12fb1c6edbe11b9d2279a8340a65040c373a425f80288a54e92750545c7ba708ada02cc44bd799c1333fcb6')
-
-prepare() {
- cd $pkgname-version-$pkgver
- patch -p1 -i ../piep-python3.8.patch
-}
-
-check() {
- cd $pkgname-version-$pkgver
- python setup.py nosetests
-}
-
-package() {
- cd $pkgname-version-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:
Copied: piep/repos/community-any/PKGBUILD (from rev 820438, piep/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-01-13 12:45:19 UTC (rev 820439)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=piep
+pkgdesc='Bringing the power of python to stream editing'
+pkgver=0.9.2
+pkgrel=4
+arch=("any")
+url="https://github.com/gfxmonk/piep"
+license=("GPL")
+depends=('python-pygments')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("https://github.com/gfxmonk/$pkgname/archive/version-$pkgver.tar.gz"
+ piep-python3.8.patch)
+sha512sums=('9d36c31a90fbdc43ff1c7f66a6496290305c5402d7020d2e559b84b9eb796e7945f12c38d5d4167a3518d2664128403e34102445bf60475d21122de73983a5f9'
+ '3193b38ed2249c16758388d306aa9a8d1adcf345e12fb1c6edbe11b9d2279a8340a65040c373a425f80288a54e92750545c7ba708ada02cc44bd799c1333fcb6')
+
+prepare() {
+ cd $pkgname-version-$pkgver
+ patch -p1 -i ../piep-python3.8.patch
+}
+
+build() {
+ cd $pkgname-version-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $pkgname-version-$pkgver
+ python setup.py nosetests
+}
+
+package() {
+ cd $pkgname-version-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: piep-python3.8.patch
===================================================================
--- piep-python3.8.patch 2021-01-13 12:45:07 UTC (rev 820438)
+++ piep-python3.8.patch 2021-01-13 12:45:19 UTC (rev 820439)
@@ -1,49 +0,0 @@
-diff --git a/piep/main.py b/piep/main.py
-index f3b1b58..4b18cfc 100755
---- a/piep/main.py
-+++ b/piep/main.py
-@@ -127,7 +127,7 @@ def init_globals(opts, input_file):
- sys.path.insert(0, path)
- for import_mod in opts.imports:
- import_node = ast.Import(names=[ast.alias(name=import_mod, asname=None)])
-- code = compile(ast.fix_missing_locations(ast.Module(body=[import_node])), 'import %s' % (import_mod,), 'exec')
-+ code = compile(ast.fix_missing_locations(ast.Module(body=[import_node], type_ignores=[])), 'import %s' % (import_mod,), 'exec')
- eval(code, globs)
- for eval_str in opts.evals:
- try:
-@@ -319,6 +319,7 @@ def compile_pipe_exprs(exprs):
- transform_def = ast.FunctionDef(
- name='_transformer',
- args=ast.arguments(
-+ posonlyargs=[],
- args=[arg('p'), arg('i')],
- vararg=None,
- kwarg=None,
-@@ -376,7 +377,7 @@ def compile_pipe_exprs(exprs):
- body.append(expr)
- body.extend(post_pipe_check)
-
-- mod = ast.Module(body=body)
-+ mod = ast.Module(body=body, type_ignores=[])
- ast.fix_missing_locations(mod)
-
- #raise RuntimeError(ast.dump(mod))
-diff --git a/test/test_statements.py b/test/test_statements.py
-index accbd28..1bff5d3 100644
---- a/test/test_statements.py
-+++ b/test/test_statements.py
-@@ -4,12 +4,12 @@ from test.test_helper import run
- class TestEval(TestCase):
- def test_import_assignment(self):
- self.assertEqual(
-- run('--eval=from cgi import escape as quote', 'quote(p)', ['a&b']),
-+ run('--eval=from html import escape as quote', 'quote(p)', ['a&b']),
- ['a&b'])
-
- def test_import_shorthand(self):
- self.assertEqual(
-- run('--import=cgi', 'cgi.escape(p)', ['a&b']),
-+ run('--import=html', 'html.escape(p)', ['a&b']),
- ['a&b'])
-
- def test_globals(self):
Copied: piep/repos/community-any/piep-python3.8.patch (from rev 820438, piep/trunk/piep-python3.8.patch)
===================================================================
--- piep-python3.8.patch (rev 0)
+++ piep-python3.8.patch 2021-01-13 12:45:19 UTC (rev 820439)
@@ -0,0 +1,49 @@
+diff --git a/piep/main.py b/piep/main.py
+index f3b1b58..4b18cfc 100755
+--- a/piep/main.py
++++ b/piep/main.py
+@@ -127,7 +127,7 @@ def init_globals(opts, input_file):
+ sys.path.insert(0, path)
+ for import_mod in opts.imports:
+ import_node = ast.Import(names=[ast.alias(name=import_mod, asname=None)])
+- code = compile(ast.fix_missing_locations(ast.Module(body=[import_node])), 'import %s' % (import_mod,), 'exec')
++ code = compile(ast.fix_missing_locations(ast.Module(body=[import_node], type_ignores=[])), 'import %s' % (import_mod,), 'exec')
+ eval(code, globs)
+ for eval_str in opts.evals:
+ try:
+@@ -319,6 +319,7 @@ def compile_pipe_exprs(exprs):
+ transform_def = ast.FunctionDef(
+ name='_transformer',
+ args=ast.arguments(
++ posonlyargs=[],
+ args=[arg('p'), arg('i')],
+ vararg=None,
+ kwarg=None,
+@@ -376,7 +377,7 @@ def compile_pipe_exprs(exprs):
+ body.append(expr)
+ body.extend(post_pipe_check)
+
+- mod = ast.Module(body=body)
++ mod = ast.Module(body=body, type_ignores=[])
+ ast.fix_missing_locations(mod)
+
+ #raise RuntimeError(ast.dump(mod))
+diff --git a/test/test_statements.py b/test/test_statements.py
+index accbd28..1bff5d3 100644
+--- a/test/test_statements.py
++++ b/test/test_statements.py
+@@ -4,12 +4,12 @@ from test.test_helper import run
+ class TestEval(TestCase):
+ def test_import_assignment(self):
+ self.assertEqual(
+- run('--eval=from cgi import escape as quote', 'quote(p)', ['a&b']),
++ run('--eval=from html import escape as quote', 'quote(p)', ['a&b']),
+ ['a&b'])
+
+ def test_import_shorthand(self):
+ self.assertEqual(
+- run('--import=cgi', 'cgi.escape(p)', ['a&b']),
++ run('--import=html', 'html.escape(p)', ['a&b']),
+ ['a&b'])
+
+ def test_globals(self):
More information about the arch-commits
mailing list