Date: Friday, November 1, 2019 @ 20:07:29 Author: felixonmars Revision: 522087
archrelease: copy trunk to community-staging-any Added: python-dephell-discover/repos/community-staging-any/PKGBUILD (from rev 522086, python-dephell-discover/trunk/PKGBUILD) python-dephell-discover/repos/community-staging-any/dephell_discover-python-3.8.patch (from rev 522086, python-dephell-discover/trunk/dephell_discover-python-3.8.patch) Deleted: python-dephell-discover/repos/community-staging-any/PKGBUILD -----------------------------------+ PKGBUILD | 89 +++++++++++++++++++----------------- dephell_discover-python-3.8.patch | 22 ++++++++ 2 files changed, 69 insertions(+), 42 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-11-01 20:07:13 UTC (rev 522086) +++ PKGBUILD 2019-11-01 20:07:29 UTC (rev 522087) @@ -1,42 +0,0 @@ -# Maintainer: Eli Schwartz <eschwa...@archlinux.org> - -_pkgname=dephell_discover -pkgname=python-dephell-discover -pkgver=0.2.8 -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=('70347d511074c19a3facb16cd87f98c7077b76f3dfb6f4fc49e03392a81cb97d') -b2sums=('3e739975095e4358ab8931a24fd7949b6b25faaeaeaf94f3a89f9b81d1eb6d0368c391aa440e9d498d5449cd0155a0524a5e7ca62cfa71239bdc83a60264afda') - -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 -} Copied: python-dephell-discover/repos/community-staging-any/PKGBUILD (from rev 522086, python-dephell-discover/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-11-01 20:07:29 UTC (rev 522087) @@ -0,0 +1,47 @@ +# Maintainer: Eli Schwartz <eschwa...@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-staging-any/dephell_discover-python-3.8.patch (from rev 522086, 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-01 20:07:29 UTC (rev 522087) @@ -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,