[arch-commits] Commit in python-dephell-discover/repos/community-testing-any (4 files)
Eli Schwartz
eschwartz at archlinux.org
Sun Nov 10 17:40:24 UTC 2019
Date: Sunday, November 10, 2019 @ 17:40:24
Author: eschwartz
Revision: 526476
archrelease: copy trunk to community-testing-any
Added:
python-dephell-discover/repos/community-testing-any/PKGBUILD
(from rev 526475, python-dephell-discover/trunk/PKGBUILD)
python-dephell-discover/repos/community-testing-any/dephell_discover-python-3.8.patch
(from rev 526475, python-dephell-discover/trunk/dephell_discover-python-3.8.patch)
Deleted:
python-dephell-discover/repos/community-testing-any/PKGBUILD
python-dephell-discover/repos/community-testing-any/dephell_discover-python-3.8.patch
-----------------------------------+
PKGBUILD | 95 ++++++++++++++++++------------------
dephell_discover-python-3.8.patch | 44 ++++++++--------
2 files changed, 70 insertions(+), 69 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-10 17:39:43 UTC (rev 526475)
+++ PKGBUILD 2019-11-10 17:40:24 UTC (rev 526476)
@@ -1,47 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=dephell_discover
-pkgname=python-dephell-discover
-pkgver=0.2.8
-pkgrel=3
-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"
- dephell_discover-python-3.8.patch)
-sha256sums=('70347d511074c19a3facb16cd87f98c7077b76f3dfb6f4fc49e03392a81cb97d'
- 'a3ebca2fae6b43aa8c882ba8fa5d4dc0cbe5ad80f27dafe01a597cac2b2da8a7')
-b2sums=('3e739975095e4358ab8931a24fd7949b6b25faaeaeaf94f3a89f9b81d1eb6d0368c391aa440e9d498d5449cd0155a0524a5e7ca62cfa71239bdc83a60264afda'
- 'a1b218c4afdd995346cd67a505ac42147aa4609d5fb4c628fa4199fcd6df2f9ea4096104cb324fd6ac48e977ce8fa6de0a36191c55cda3301dc77e5a6c86b185')
-
-prepare() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- # Fix metadata parsing, in python 3.8 ast.Constant is used for all constants
- patch -p1 -i ../dephell_discover-python-3.8.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 526475, python-dephell-discover/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-10 17:40:24 UTC (rev 526476)
@@ -0,0 +1,48 @@
+# 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
+}
Deleted: dephell_discover-python-3.8.patch
===================================================================
--- dephell_discover-python-3.8.patch 2019-11-10 17:39:43 UTC (rev 526475)
+++ dephell_discover-python-3.8.patch 2019-11-10 17:40:24 UTC (rev 526476)
@@ -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,
Copied: python-dephell-discover/repos/community-testing-any/dephell_discover-python-3.8.patch (from rev 526475, python-dephell-discover/trunk/dephell_discover-python-3.8.patch)
===================================================================
--- dephell_discover-python-3.8.patch (rev 0)
+++ dephell_discover-python-3.8.patch 2019-11-10 17:40:24 UTC (rev 526476)
@@ -0,0 +1,22 @@
+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