Date: Wednesday, July 25, 2018 @ 05:01:13 Author: farseerfc Revision: 363346
upgpkg: pelican 3.7.1-3 pelican fix compatibility with py37 Modified: pelican/trunk/PKGBUILD ----------+ PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-07-25 04:55:33 UTC (rev 363345) +++ PKGBUILD 2018-07-25 05:01:13 UTC (rev 363346) @@ -4,7 +4,7 @@ pkgname=pelican pkgver=3.7.1 -pkgrel=2 +pkgrel=3 pkgdesc="A tool to generate a static blog, with restructured text (or markdown) input files." arch=('any') url="http://getpelican.com" @@ -35,8 +35,13 @@ # make python 3.6 target for tox # pending issue https://github.com/getpelican/pelican/pull/2074 - sed -i "s|envlist = py{27,33,34,35},docs,flake8|envlist = py{27,33,34,35,36},docs,flake8|" tox.ini - sed -i "s|py33: python3.3|py36: python3.6|" tox.ini + sed -i "s|envlist = py{27,33,34,35},docs,flake8|envlist = py{27,33,34,35,36,37},docs,flake8|" tox.ini + sed -i "s|py33: python3.3|py37: python3.7|" tox.ini + + # fix py37 DeprecationWarning + # importing ABCs directly from collections instead of collections.abc is deprecated + sed -i 's|import collections|import collections.abc|' pelican/tests/test_pelican.py + sed -i 's|collections\.Sequence|collections.abc.Sequence|' pelican/tests/test_pelican.py } build() {