[arch-commits] Commit in python-dephell-discover/repos/community-testing-any (3 files)

Eli Schwartz eschwartz at archlinux.org
Wed Nov 13 14:29:17 UTC 2019


    Date: Wednesday, November 13, 2019 @ 14:29:16
  Author: eschwartz
Revision: 527159

archrelease: copy trunk to community-testing-any

Added:
  python-dephell-discover/repos/community-testing-any/PKGBUILD
    (from rev 527158, python-dephell-discover/trunk/PKGBUILD)
Deleted:
  python-dephell-discover/repos/community-testing-any/PKGBUILD
  python-dephell-discover/repos/community-testing-any/dephell_discover-python-3.8.patch

-----------------------------------+
 PKGBUILD                          |   90 ++++++++++++++++--------------------
 dephell_discover-python-3.8.patch |   22 --------
 2 files changed, 42 insertions(+), 70 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-13 14:28:44 UTC (rev 527158)
+++ PKGBUILD	2019-11-13 14:29:16 UTC (rev 527159)
@@ -1,48 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=dephell_discover
-pkgname=python-dephell-discover
-pkgver=0.2.8
-pkgrel=4
-pkgdesc="Find project modules and data files (packages and package_data for setup.py)"
-arch=('any')
-url="https://github.com/dephell/${_pkgname}"
-license=('MIT')
-depends=('python-attrs')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
-        "https://github.com/dephell/dephell_discover/pull/9/commits/af7fc75c378f52f4c7f423c1ff835a85da844379.patch")
-sha256sums=('70347d511074c19a3facb16cd87f98c7077b76f3dfb6f4fc49e03392a81cb97d'
-            '59b30f0accbc0be9d242b385af5b7213253b140cea5402a496c519008bf3b64d')
-b2sums=('3e739975095e4358ab8931a24fd7949b6b25faaeaeaf94f3a89f9b81d1eb6d0368c391aa440e9d498d5449cd0155a0524a5e7ca62cfa71239bdc83a60264afda'
-        'c221bb631bc2669922264396e0cff46aef15a982f52ed8e6444fa994194ff59fab9e1927bffd4c8636e8c51ac2bda6057e64f216ead79df0c3293ae8f75f658e')
-
-prepare() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    # Fix metadata parsing, in python 3.8 ast.Constant is used for all constants
-    # https://github.com/dephell/dephell_discover/issues/8
-    patch -p1 -i ../af7fc75c378f52f4c7f423c1ff835a85da844379.patch
-    # pycache slipped into release tarballs
-    find . -name \*.pyc -delete
-}
-
-build(){
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m pytest
-}
-
-package() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-dephell-discover/repos/community-testing-any/PKGBUILD (from rev 527158, python-dephell-discover/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-13 14:29:16 UTC (rev 527159)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_discover
+pkgname=python-dephell-discover
+pkgver=0.2.10
+pkgrel=2
+pkgdesc="Find project modules and data files (packages and package_data for setup.py)"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-attrs')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('a2ad414e5e0fe16c82c537d6a3198afd9818c0c010760eccb23e2d60e5b66df6')
+b2sums=('2721bdee22c9edcdc11c7102fb034db4ec92b23bf8ac7c077c87036083cefecf34bbf1474bdb0ddfa252ca47d40181054b5eacff68daef8c4e7bad9f4426ea35')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    # pycache slipped into release tarballs
+    find . -name \*.pyc -delete
+}
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m pytest
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Deleted: dephell_discover-python-3.8.patch
===================================================================
--- dephell_discover-python-3.8.patch	2019-11-13 14:28:44 UTC (rev 527158)
+++ dephell_discover-python-3.8.patch	2019-11-13 14:29:16 UTC (rev 527159)
@@ -1,22 +0,0 @@
-diff --git a/dephell_discover/_line.py b/dephell_discover/_line.py
-index 6739c34..31c82e4 100644
---- a/dephell_discover/_line.py
-+++ b/dephell_discover/_line.py
-@@ -53,7 +53,7 @@ class Line:
-         value = tree.body[0].value  # type: ignore
- 
-         # get string
--        if type(value) is ast.Str:
-+        if type(value) is ast.Constant:
-             return cls(
-                 target=target.id,
-                 value=value.s,
-@@ -65,7 +65,7 @@ class Line:
-         # get list
-         if type(value) is ast.List or type(value) is ast.Tuple:
-             for element in value.elts:
--                if type(element) is not ast.Str:
-+                if type(element) is not ast.Constant:
-                     return None
-             return cls(
-                 target=target.id,



More information about the arch-commits mailing list