diff options
Diffstat (limited to 'abs/core/python_modules')
35 files changed, 884 insertions, 477 deletions
diff --git a/abs/core/python_modules/docutils/PKGBUILD b/abs/core/python_modules/docutils/PKGBUILD index 1b7cbe6..fda440e 100644 --- a/abs/core/python_modules/docutils/PKGBUILD +++ b/abs/core/python_modules/docutils/PKGBUILD @@ -1,19 +1,18 @@ -# $Id$ # Maintainer: Sébastien Luttringer # Contributor : Ionut Biru <ibiru@archlinux.org> # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgbase=docutils pkgname=('python-docutils' 'python2-docutils') -pkgver=0.14 -pkgrel=1 +pkgver=0.16 +pkgrel=4 pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX' arch=('any') url='http://docutils.sourceforge.net' license=('custom') makedepends=('python' 'python2') -source=("http://downloads.sourceforge.net/$pkgbase/$pkgbase-$pkgver.tar.gz") -md5sums=('c53768d63db3873b7d452833553469de') +source=("https://downloads.sourceforge.net/$pkgbase/$pkgbase-$pkgver.tar.gz") +sha512sums=('1a4e1bdedc79388e73dd438ae6d4d2ba67a005c745613452e027c0f6b378058b528f3329d650454fc0d3dd5253a1eb95dc52b35846cbfb4d8618d9bd4c3ad934') build() { cd $pkgbase-$pkgver diff --git a/abs/core/python_modules/python-babel/PKGBUILD b/abs/core/python_modules/python-babel/PKGBUILD index fcbdc4b..1b144f7 100644 --- a/abs/core/python_modules/python-babel/PKGBUILD +++ b/abs/core/python_modules/python-babel/PKGBUILD @@ -1,54 +1,48 @@ -# $Id$ # Maintainer: Morten Linderud <foxboron@archlinux.no> # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor : Giedrius Slavinskas <giedrius25@gmail.com> -pkgbase=python-babel -pkgname=(python-babel python2-babel) -pkgver=2.5.3 -pkgrel=4 +pkgname=python-babel +pkgver=2.8.1 +_core=36 +pkgrel=2 pkgdesc="A collection of tools for internationalizing Python applications" url="http://babel.pocoo.org/" license=("BSD") arch=('any') -makedepends=('python' 'python2' - 'python-setuptools' 'python2-setuptools' - 'python-pytz' 'python2-pytz') -noextract=("core-28.zip") -source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz" - "core-29.zip::http://unicode.org/Public/cldr/29/core.zip") -sha256sums=('4c231f28875552abe18c6c10829cec0884d7eeb27423b562357250dc32090cb9' - 'b3308f8d3b4a80045ce4262b2784ac8d99775e80aaacafbf1277833f6b28ffda') +depends=('python' 'python-pytz') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-pytest-runner' 'python-freezegun') +noextract=("cldr-core-$_core.zip") +source=("$pkgname-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz" + "cldr-core-$_core.zip::http://unicode.org/Public/cldr/$_core/core.zip" + "python-3.9.patch") +sha256sums=('2324e41ffb439a83748813e54718574c094222bb32996d466958a7a3d6c23a47' + '07279e56c1f4266d140b907ef3ec379dce0a99542303a9628562ac5fe460ba43' + '13adbc61cf0c59f215f38cd5b1a4dc3c29f2e35c9e9d054f64a9f03308401b0a') prepare() { - cp -a babel-$pkgver{,-py2} - cp "$srcdir"/core-29.zip babel-$pkgver-py2/cldr/ - cp "$srcdir"/core-29.zip babel-$pkgver/cldr/ + # Python 3.9 fixes + patch -Np1 -d babel-$pkgver <python-3.9.patch + + cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver/cldr/cldr-core-$_core.zip } build(){ cd "$srcdir/babel-$pkgver" python setup.py import_cldr python setup.py build +} - cd "$srcdir/babel-$pkgver-py2" - python2 setup.py import_cldr - python2 setup.py build +check(){ + cd "$srcdir/babel-$pkgver" + # the tests fail if running in the wrong timezone: + # https://github.com/python-babel/babel/issues/757 + TZ=UTC python setup.py pytest } package_python-babel() { - depends=('python' 'python-pytz') - cd "$srcdir"/babel-${pkgver} python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-babel() { - depends=('python2' 'python2-pytz') - - cd "$srcdir"/babel-${pkgver}-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - mv "$pkgdir"/usr/bin/pybabel "$pkgdir"/usr/bin/pybabel2 - install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} diff --git a/abs/core/python_modules/python-babel/python-3.9.patch b/abs/core/python_modules/python-babel/python-3.9.patch new file mode 100644 index 0000000..676c682 --- /dev/null +++ b/abs/core/python_modules/python-babel/python-3.9.patch @@ -0,0 +1,202 @@ +From 4fa749b918810b52a63b312d82e4003e24db0406 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> +Date: Mon, 6 Jan 2020 00:37:39 +0100 +Subject: [PATCH] Replace usage of parser.suite with ast.parse + +Replaced usage of the long-superseded "parser.suite" module in the +mako.util package for parsing the python magic encoding comment with the +"ast.parse" function introduced many years ago in Python 2.5, as +"parser.suite" is emitting deprecation warnings in Python 3.9. + +Fixes https://github.com/sqlalchemy/mako/issues/310 +See also https://github.com/sqlalchemy/mako/commit/2dae7d2c3da73653e6de329dc15c55056a0b9ab6 +--- + babel/util.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/babel/util.py b/babel/util.py +index 73a90516..c371badb 100644 +--- a/babel/util.py ++++ b/babel/util.py +@@ -68,8 +68,8 @@ def parse_encoding(fp): + m = PYTHON_MAGIC_COMMENT_re.match(line1) + if not m: + try: +- import parser +- parser.suite(line1.decode('latin-1')) ++ import ast ++ ast.parse(line1.decode('latin-1')) + except (ImportError, SyntaxError, UnicodeEncodeError): + # Either it's a real syntax error, in which case the source is + # not valid python source, or line2 is a continuation of line1, + +From 167b71421f113e2210e4deefef5020402492e5be Mon Sep 17 00:00:00 2001 +From: Felix Schwarz <felix.schwarz@oss.schwarz.eu> +Date: Tue, 5 May 2020 09:58:01 +0200 +Subject: [PATCH] stop using deprecated ElementTree methods "getchildren()" and + "getiterator()" + +Both methods were removed in Python 3.9 as mentioned in the release notes: + +> Methods getchildren() and getiterator() of classes ElementTree and Element in +> the ElementTree module have been removed. They were deprecated in Python 3.2. +> Use iter(x) or list(x) instead of x.getchildren() and x.iter() or +> list(x.iter()) instead of x.getiterator(). +--- + scripts/import_cldr.py | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py +index 8993b68e..2ed3af91 100755 +--- a/scripts/import_cldr.py ++++ b/scripts/import_cldr.py +@@ -598,7 +598,7 @@ def parse_calendar_months(data, calendar): + for width in ctxt.findall('monthWidth'): + width_type = width.attrib['type'] + widths = ctxts.setdefault(width_type, {}) +- for elem in width.getiterator(): ++ for elem in width.iter(): + if elem.tag == 'month': + _import_type_text(widths, elem, int(elem.attrib['type'])) + elif elem.tag == 'alias': +@@ -616,7 +616,7 @@ def parse_calendar_days(data, calendar): + for width in ctxt.findall('dayWidth'): + width_type = width.attrib['type'] + widths = ctxts.setdefault(width_type, {}) +- for elem in width.getiterator(): ++ for elem in width.iter(): + if elem.tag == 'day': + _import_type_text(widths, elem, weekdays[elem.attrib['type']]) + elif elem.tag == 'alias': +@@ -634,7 +634,7 @@ def parse_calendar_quarters(data, calendar): + for width in ctxt.findall('quarterWidth'): + width_type = width.attrib['type'] + widths = ctxts.setdefault(width_type, {}) +- for elem in width.getiterator(): ++ for elem in width.iter(): + if elem.tag == 'quarter': + _import_type_text(widths, elem, int(elem.attrib['type'])) + elif elem.tag == 'alias': +@@ -649,7 +649,7 @@ def parse_calendar_eras(data, calendar): + for width in calendar.findall('eras/*'): + width_type = NAME_MAP[width.tag] + widths = eras.setdefault(width_type, {}) +- for elem in width.getiterator(): ++ for elem in width.iter(): + if elem.tag == 'era': + _import_type_text(widths, elem, type=int(elem.attrib.get('type'))) + elif elem.tag == 'alias': +@@ -676,7 +676,7 @@ def parse_calendar_periods(data, calendar): + def parse_calendar_date_formats(data, calendar): + date_formats = data.setdefault('date_formats', {}) + for format in calendar.findall('dateFormats'): +- for elem in format.getiterator(): ++ for elem in format.iter(): + if elem.tag == 'dateFormatLength': + type = elem.attrib.get('type') + if _should_skip_elem(elem, type, date_formats): +@@ -696,7 +696,7 @@ def parse_calendar_date_formats(data, calendar): + def parse_calendar_time_formats(data, calendar): + time_formats = data.setdefault('time_formats', {}) + for format in calendar.findall('timeFormats'): +- for elem in format.getiterator(): ++ for elem in format.iter(): + if elem.tag == 'timeFormatLength': + type = elem.attrib.get('type') + if _should_skip_elem(elem, type, time_formats): +@@ -717,7 +717,7 @@ def parse_calendar_datetime_skeletons(data, calendar): + datetime_formats = data.setdefault('datetime_formats', {}) + datetime_skeletons = data.setdefault('datetime_skeletons', {}) + for format in calendar.findall('dateTimeFormats'): +- for elem in format.getiterator(): ++ for elem in format.iter(): + if elem.tag == 'dateTimeFormatLength': + type = elem.attrib.get('type') + if _should_skip_elem(elem, type, datetime_formats): +@@ -880,7 +880,7 @@ def parse_interval_formats(data, tree): + interval_formats[None] = elem.text + elif elem.tag == "intervalFormatItem": + skel_data = interval_formats.setdefault(elem.attrib["id"], {}) +- for item_sub in elem.getchildren(): ++ for item_sub in elem: + if item_sub.tag == "greatestDifference": + skel_data[item_sub.attrib["id"]] = split_interval_pattern(item_sub.text) + else: +@@ -903,7 +903,7 @@ def parse_currency_formats(data, tree): + type = '%s:%s' % (type, curr_length_type) + if _should_skip_elem(elem, type, currency_formats): + continue +- for child in elem.getiterator(): ++ for child in elem.iter(): + if child.tag == 'alias': + currency_formats[type] = Alias( + _translate_alias(['currency_formats', elem.attrib['type']], + +From 7bdaa28a55e8d8228d5434effa4b1473ab7b3669 Mon Sep 17 00:00:00 2001 +From: Felix Schwarz <felix.schwarz@oss.schwarz.eu> +Date: Tue, 5 May 2020 08:05:56 +0000 +Subject: [PATCH] fix tests when using Python 3.9a6 + +In Python 3.9a6 integer values for future flags were changed to prevent +collision with compiler flags. We need to retrieve these at runtime so +the test suite works with Python <= 3.8 as well as Python 3.9. +--- + tests/test_util.py | 17 ++++++++++++----- + 1 file changed, 12 insertions(+), 5 deletions(-) + +diff --git a/tests/test_util.py b/tests/test_util.py +index a6a4450c..b9343aaa 100644 +--- a/tests/test_util.py ++++ b/tests/test_util.py +@@ -11,6 +11,7 @@ + # individuals. For the exact contribution history, see the revision + # history and logs, available at http://babel.edgewall.org/log/. + ++import __future__ + import unittest + + import pytest +@@ -20,6 +21,12 @@ + from babel.util import parse_future_flags + + ++class _FF: ++ division = __future__.division.compiler_flag ++ print_function = __future__.print_function.compiler_flag ++ with_statement = __future__.with_statement.compiler_flag ++ unicode_literals = __future__.unicode_literals.compiler_flag ++ + def test_distinct(): + assert list(util.distinct([1, 2, 1, 3, 4, 4])) == [1, 2, 3, 4] + assert list(util.distinct('foobar')) == ['f', 'o', 'b', 'a', 'r'] +@@ -70,25 +77,25 @@ def test_parse_encoding_non_ascii(): + from __future__ import print_function, + division, with_statement, + unicode_literals +-''', 0x10000 | 0x2000 | 0x8000 | 0x20000), ++''', _FF.print_function | _FF.division | _FF.with_statement | _FF.unicode_literals), + (''' + from __future__ import print_function, division + print('hello') +-''', 0x10000 | 0x2000), ++''', _FF.print_function | _FF.division), + (''' + from __future__ import print_function, division, unknown,,,,, + print 'hello' +-''', 0x10000 | 0x2000), ++''', _FF.print_function | _FF.division), + (''' + from __future__ import ( + print_function, + division) +-''', 0x10000 | 0x2000), ++''', _FF.print_function | _FF.division), + (''' + from __future__ import \\ + print_function, \\ + division +-''', 0x10000 | 0x2000), ++''', _FF.print_function | _FF.division), + ]) + def test_parse_future(source, result): + fp = BytesIO(source.encode('latin-1')) diff --git a/abs/core/python_modules/python-beautifulsoup4/PKGBUILD b/abs/core/python_modules/python-beautifulsoup4/PKGBUILD index 5ed3781..e3d2f56 100644 --- a/abs/core/python_modules/python-beautifulsoup4/PKGBUILD +++ b/abs/core/python_modules/python-beautifulsoup4/PKGBUILD @@ -1,20 +1,19 @@ -# $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> # Contributor: Giovanni Scafora <giovanni@archlinux.org> pkgbase=python-beautifulsoup4 pkgname=('python-beautifulsoup4' 'python2-beautifulsoup4') -pkgver=4.6.0 -pkgrel=2 +pkgver=4.9.3 +pkgrel=3 pkgdesc="A Python HTML/XML parser designed for quick turnaround projects like screen-scraping" arch=('any') -url="http://www.crummy.com/software/BeautifulSoup/index.html" +url="https://www.crummy.com/software/BeautifulSoup/index.html" license=('PSF') -makedepends=('python-setuptools' 'python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools' 'python-soupsieve' 'python2-soupsieve') checkdepends=('python-pytest' 'python2-pytest') -source=("http://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver%.*}/${pkgbase#*-}-$pkgver.tar.gz") -sha512sums=('1a7eee4218e58cc3852e71fe4f0892f673bb46a851941264766a38eff8ef05d612d88b4641fcb478ce8f66ac50dc987ca039923c4bbb11867c74813289f7e578') +source=("https://pypi.io/packages/source/b/beautifulsoup4/beautifulsoup4-$pkgver.tar.gz") +sha512sums=('e3cb6258bd7c51f12128fa8ee5948fb3566163ae233fac2dda21bab7772ab8dbb384d920b0ea138ef9921307b48f89cee3a9bf6111dfc8903d917ee7af365f34') prepare() { cp -a beautifulsoup4-$pkgver{,-py2} @@ -37,7 +36,7 @@ check() { } package_python-beautifulsoup4() { - depends=('python') + depends=('python-soupsieve') optdepends=('python-chardet: to autodetect character encodings' 'python-lxml: alternative HTML parser' 'python-html5lib: alternative HTML parser') @@ -47,7 +46,7 @@ package_python-beautifulsoup4() { } package_python2-beautifulsoup4() { - depends=('python2') + depends=('python2-soupsieve') optdepends=('python2-chardet: to autodetect character encodings' 'python2-lxml: alternative HTML parser' 'python2-html5lib: alternative HTML parser') diff --git a/abs/core/python_modules/python-chardet/PKGBUILD b/abs/core/python_modules/python-chardet/PKGBUILD index 6b6332d..a123390 100644 --- a/abs/core/python_modules/python-chardet/PKGBUILD +++ b/abs/core/python_modules/python-chardet/PKGBUILD @@ -1,4 +1,3 @@ -# $Id$ # Maintainer : Felix Yan <felixonmars@archlinux.org> # Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: William Rea <sillywilly@gmail.com> @@ -6,7 +5,7 @@ pkgbase=python-chardet pkgname=('python-chardet' 'python2-chardet') pkgver=3.0.4 -pkgrel=2 +pkgrel=7 arch=('any') url="https://github.com/chardet/chardet" license=('LGPL') diff --git a/abs/core/python_modules/python-future/PKGBUILD b/abs/core/python_modules/python-future/PKGBUILD index 3cc7fa5..55c7d3b 100644 --- a/abs/core/python_modules/python-future/PKGBUILD +++ b/abs/core/python_modules/python-future/PKGBUILD @@ -1,66 +1,38 @@ -# $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de> # Contributor: Gaute Hope <eg@gaute.vetsj.com> # Contributor: Melissa Padilla <mpadilla2 at hotmail dot com> -pkgbase=python-future -pkgname=(python-future python2-future) -pkgver=0.16.0 +pkgname=python-future +pkgver=0.18.2 pkgrel=3 pkgdesc="Clean single-source support for Python 3 and 2" -url="http://python-future.org/" +url="https://python-future.org/" arch=('any') license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-requests' 'python2-requests') +depends=('python') +provides=('futurize' 'pasteurize') +checkdepends=('python-requests') +makedepends=('python-setuptools') +optdepends=('python-setuptools: futurize and pasteurize scripts') options=('!emptydirs') source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz") -sha256sums=('e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb') - -prepare() { - cp -a future-$pkgver{,-py2} -} +sha512sums=('91c025f7d94bcdf93df838fab67053165a414fc84e8496f92ecbb910dd55f6b6af5e360bbd051444066880c5a6877e75157bd95e150ead46e5c605930dfc50f2') build() { cd "$srcdir"/future-$pkgver python setup.py build - - cd "$srcdir"/future-$pkgver-py2 - python2 setup.py build } check() { cd "$srcdir"/future-$pkgver - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed" - - cd "$srcdir"/future-$pkgver-py2 - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 setup.py test +#PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed" } -package_python-future() { - depends=('python') - optdepends=('python-setuptools: futurize and pasteurize scripts') - provides=('futurize' 'pasteurize') - +package() { cd future-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE.txt \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt } - -package_python2-future() { - depends=('python2') - optdepends=('python2-setuptools: futurize2 and pasteurize2 scripts') - - cd future-$pkgver-py2 - - python2 setup.py install --root="$pkgdir" --optimize=1 - - mv "$pkgdir"/usr/bin/futurize{,2} - mv "$pkgdir"/usr/bin/pasteurize{,2} - - install -D -m644 LICENSE.txt \ - "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt -} diff --git a/abs/core/python_modules/python-html5lib/LICENSE b/abs/core/python_modules/python-html5lib/LICENSE deleted file mode 100644 index 89de354..0000000 --- a/abs/core/python_modules/python-html5lib/LICENSE +++ /dev/null @@ -1,17 +0,0 @@ -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/abs/core/python_modules/python-html5lib/PKGBUILD b/abs/core/python_modules/python-html5lib/PKGBUILD index 4991390..2e7f14b 100644 --- a/abs/core/python_modules/python-html5lib/PKGBUILD +++ b/abs/core/python_modules/python-html5lib/PKGBUILD @@ -5,23 +5,29 @@ pkgbase=python-html5lib pkgname=('python2-html5lib' 'python-html5lib') -pkgver=1.0.1 -pkgrel=2 +pkgver=1.1 +pkgrel=5 arch=('any') url="https://github.com/html5lib" license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools' 'python-webencodings' 'python2-webencodings') -checkdepends=('python-six' 'python2-six' 'python-pytest-expect' 'python2-pytest-expect' - 'python-lxml' 'python2-lxml' 'python-mock' 'python2-mock') -_test_commit=c305da74fae50fb018870de7a042da36c1a93b65 +_deps=('six' 'webencodings') +makedepends=('python-setuptools' 'python2-setuptools' "${_deps[@]/#/python-}" "${_deps[@]/#/python2-}") +_checkdeps=('pytest' 'pytest-expect' 'lxml' 'mock') +checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}") +_test_commit=71eebd59772d1d39aced0c0582ae9c09acf3ce6e source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz" + "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch" "https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz") -sha256sums=('fabbebd6a55d07842087f13849076eeed350aa8bb6c9ec840f6a6aba9388db06' - 'cb261423c644b3469ac66926e290060b481371d0952995d270492fc761d0209a') +sha256sums=('66e9e24a53c10c27abb6be8a3cf2cf55824c6ea1cef8570a633cb223ec46e894' + '6f37b33667e35ea138279be9842f012792821b1497b81ae4b108a74180cfe249' + 'c866f5e4ae9ef34313e2b61fcb74849b6f8aef970bf8249956b6a5d142197087') prepare() { cd "${srcdir}"/html5lib-python-${pkgver} + # fix pytest 6 compat + patch -p1 -i ../2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch + rmdir html5lib/tests/testdata ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata } @@ -42,22 +48,21 @@ check() { package_python-html5lib() { pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec" - depends=('python' 'python-six' 'python-webencodings') + depends=("${_deps[@]/#/python-}") optdepends=('python-lxml: lxml treebuilder' 'python-genshi: genshi treewalker') cd "${srcdir}"/html5lib-python-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm755 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } package_python2-html5lib() { pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec" - depends=('python2' 'python2-six' 'python2-webencodings') - optdepends=('python2-lxml: lxml treebuilder' - 'python2-genshi: genshi treewalker') + depends=("${_deps[@]/#/python2-}") + optdepends=('python2-lxml: lxml treebuilder') cd "${srcdir}"/html5lib-python-${pkgver} python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm755 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } diff --git a/abs/core/python_modules/python-idna/PKGBUILD b/abs/core/python_modules/python-idna/PKGBUILD index 00a64bf..6f5941d 100644 --- a/abs/core/python_modules/python-idna/PKGBUILD +++ b/abs/core/python_modules/python-idna/PKGBUILD @@ -1,19 +1,19 @@ -# $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-idna pkgname=('python-idna' 'python2-idna') -pkgver=2.6 -pkgrel=1 +pkgver=2.10 +pkgrel=3 pkgdesc="Internationalized Domain Names in Applications (IDNA)" arch=('any') license=('BSD') url="https://github.com/kjd/idna" makedepends=('python-setuptools' 'python2-setuptools') source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz") -sha512sums=('cb5dbfab44c4d11521c67f9d29391f184d1267a3da6dc89f4ed12c60a7a909d5c7474c3ea2bddd0af7063f4f620e87a8dd586bb07e8b961b30b1dd7c969704c2') +sha512sums=('83b412de2f79a4bc86fb4bdac7252521b9d84f0be54f4fb1bde1ee13a210bbfa4b1a98247affbc7921046fb117a591316c12694c1be72865767646554c5207ac') prepare() { + rm -r idna-$pkgver/*.egg-info cp -a idna-$pkgver{,-py2} } diff --git a/abs/core/python_modules/python-imagesize/PKGBUILD b/abs/core/python_modules/python-imagesize/PKGBUILD index c8ee2da..6b20113 100644 --- a/abs/core/python_modules/python-imagesize/PKGBUILD +++ b/abs/core/python_modules/python-imagesize/PKGBUILD @@ -1,39 +1,31 @@ -pkgbase=python-imagesize -pkgname=('python-imagesize' 'python2-imagesize') -pkgver=1.0.0 -pkgrel=1 +pkgname=python-imagesize +pkgver=1.2.0 +pkgrel=4 pkgdesc='Getting image size from png/jpeg/jpeg2000/gif file' url='https://github.com/shibukawa/imagesize_py' arch=('any') license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') +depends=('python') +makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz") -md5sums=('9aa76df782f1df5b917794638b6bb6c2') +sha256sums=('b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1') build() { - cp -r imagesize-$pkgver imagesize-$pkgver-py2 - cd "$srcdir"/imagesize-$pkgver python setup.py build - - cd "$srcdir"/imagesize-$pkgver-py2 - python2 setup.py build } -package_python-imagesize() { - depends=('python') - - cd imagesize-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 +check() { + cd "$srcdir"/imagesize-$pkgver + python -m unittest discover -v } -package_python2-imagesize() { - depends=('python2') - - cd imagesize-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 +package() { + cd imagesize-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst } diff --git a/abs/core/python_modules/python-jinja/PKGBUILD b/abs/core/python_modules/python-jinja/PKGBUILD index 1bcd44e..c9822bd 100644 --- a/abs/core/python_modules/python-jinja/PKGBUILD +++ b/abs/core/python_modules/python-jinja/PKGBUILD @@ -1,49 +1,49 @@ -# $Id$ # Maintainer: Evangelos Foutras <evangelos@foutrelis.com> +# Contributor: David Runge <dave@sleepmap.de> # Contributor: Peter Baldwin <bald_pete@hotmail.com> pkgname=('python-jinja' 'python2-jinja') -pkgver=2.10 -pkgrel=1 +pkgver=2.11.2 +pkgrel=4 pkgdesc="A simple pythonic template language written in Python" arch=('any') -url="http://jinja.pocoo.org/" +url="https://palletsprojects.com/p/jinja/" license=('BSD') makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe') -source=(https://pypi.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz) -sha256sums=('f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4') +checkdepends=('python-pytest' 'python2-pytest') +source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz) +sha256sums=('89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0') build() { - cd "$srcdir" - - rm -rf python{2,3}-build - for builddir in python{2,3}-build; do - cp -r Jinja2-$pkgver $builddir - pushd $builddir - ${builddir%-build} setup.py build - popd - done + cd Jinja2-$pkgver + python3 setup.py build +} + +check() { + cd Jinja2-$pkgver + export PYTHONPATH=build/lib:$PYTHONPATH + py.test + py.test2 } package_python-jinja() { depends=('python-setuptools' 'python-markupsafe') + optdepends=('python-babel: for i18n support') - cd "$srcdir/python3-build" - - python3 setup.py install --root="$pkgdir" -O1 + cd Jinja2-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 ext/Vim/jinja.vim -t "$pkgdir/usr/share/vim/vimfiles/syntax" } package_python2-jinja() { depends=('python2-setuptools' 'python2-markupsafe') - cd "$srcdir/python2-build" - - python2 setup.py install --root="$pkgdir" -O1 - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd Jinja2-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname" } # vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-lxml/PKGBUILD b/abs/core/python_modules/python-lxml/PKGBUILD index f939617..b38d024 100644 --- a/abs/core/python_modules/python-lxml/PKGBUILD +++ b/abs/core/python_modules/python-lxml/PKGBUILD @@ -3,17 +3,17 @@ pkgbase=python-lxml pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs') -pkgver=4.3.0 -pkgrel=1 +pkgver=4.6.1 +pkgrel=3 arch=('x86_64') license=('BSD' 'custom') -url="http://lxml.de/" -makedepends=('libxslt' 'python-setuptools' 'python2-setuptools' 'epydoc' 'python2-pygments' - 'python2-docutils' 'cython' 'cython2') +url="https://lxml.de/" +makedepends=('libxslt' 'python-setuptools' 'python2-setuptools' 'python-pygments' + 'python-sphinx' 'python-sphinx_rtd_theme' 'cython' 'cython2') checkdepends=('python-cssselect' 'python2-cssselect' 'python-html5lib' 'python2-html5lib' 'python-beautifulsoup4' 'python2-beautifulsoup4') source=("https://github.com/lxml/lxml/archive/lxml-$pkgver.tar.gz") -sha512sums=('3739e243b543e8a5f678aaca19fe1b5be21351c343065fe8e52709523d4e27dbd5c846c0681473b9612fd73af6a4d04ec21c6834e53680410cab854b7f7f1675') +sha512sums=('3cc917e7535ac1be3db8939f72846313267c8b1f0adccc92a2155a160ed7299d0def718bdae1379e42398ca1b959b1130505597febca00f02cb87c8666f1f1c3') prepare() { mv lxml-lxml-$pkgver lxml-$pkgver @@ -26,20 +26,20 @@ prepare() { build() { cd "$srcdir"/lxml-$pkgver python setup.py build + make html cd "$srcdir"/lxml-$pkgver-py2 python2 setup.py build - make PYTHON=python2 html } check() { # TODO: Find a sane way to skip inplace build cd "$srcdir"/lxml-$pkgver - make PYTHON=python test || warning "Tests failed" + make PYTHON=python test cd "$srcdir"/lxml-$pkgver-py2 - make PYTHON=python2 test || warning "Tests failed" + make PYTHON=python2 test } package_python-lxml() { @@ -84,7 +84,7 @@ package_python-lxml-docs() { pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)" options=('docs') - cd lxml-$pkgver-py2 + cd lxml-$pkgver install -d "$pkgdir"/usr/share/doc/$pkgbase cp -r doc/html "$pkgdir"/usr/share/doc/$pkgbase diff --git a/abs/core/python_modules/python-markupsafe/PKGBUILD b/abs/core/python_modules/python-markupsafe/PKGBUILD index ec6d6f9..a57d99d 100644 --- a/abs/core/python_modules/python-markupsafe/PKGBUILD +++ b/abs/core/python_modules/python-markupsafe/PKGBUILD @@ -1,53 +1,46 @@ -# $Id$ # Maintainer : Felix Yan <felixonmars@archlinux.org> # Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Alex Anthony <alex.anthony28991@gmail.com> +pkgbase=python-markupsafe pkgname=('python-markupsafe' 'python2-markupsafe') -pkgver=1.0 -pkgrel=1 +pkgver=1.1.1 +pkgrel=6 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" arch=('x86_64') -url="http://pypi.python.org/pypi/MarkupSafe" -license=('custom') +url="https://pypi.python.org/pypi/MarkupSafe" +license=('BSD') makedepends=('python-setuptools' 'python2-setuptools') -source=("https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz") -sha512sums=('7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8') - -prepare() { - cp -a MarkupSafe-$pkgver{,-py2} -} +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pallets/markupsafe/archive/$pkgver.tar.gz") +sha512sums=('c2a1072c5dd0918e47f9cfbd30b79b0690a43635f7cfc3fdd27f3df52f8e20406d7e3cfadd29df8ab1d1110f50e23eb7c7272707e0739d862d4b1edb59bbc241') build() { - cd "$srcdir"/MarkupSafe-$pkgver + cd markupsafe-$pkgver python setup.py build - - cd "$srcdir"/MarkupSafe-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir"/MarkupSafe-$pkgver - python setup.py test - - cd "$srcdir"/MarkupSafe-$pkgver-py2 - python2 setup.py test + cd markupsafe-$pkgver + python setup.py pytest + python2 setup.py pytest } package_python-markupsafe() { depends=('python') - cd MarkupSafe-$pkgver + cd markupsafe-$pkgver python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE + install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE.rst } package_python2-markupsafe() { depends=('python2') - cd MarkupSafe-$pkgver-py2 + cd markupsafe-$pkgver python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-markupsafe/LICENSE + install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/python2-markupsafe/LICENSE.rst } diff --git a/abs/core/python_modules/python-mysqlclient/PKGBUILD b/abs/core/python_modules/python-mysqlclient/PKGBUILD new file mode 100644 index 0000000..8b49ff4 --- /dev/null +++ b/abs/core/python_modules/python-mysqlclient/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Florian Pritz <bluewind@xinu.at> +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=python-mysqlclient +_libname=${pkgname/python-/} +pkgver=2.0.1 +pkgrel=1 +pkgdesc="Fork of MySQL-python with support for Python 3" +arch=('x86_64') +url="https://github.com/PyMySQL/mysqlclient-python" +license=('GPL') +depends=('python' 'libmysqlclient') +makedepends=('mysql' 'python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz") + +build() { + cd "$srcdir"/$_libname-$pkgver + python setup.py build +} + +package() { + cd "$srcdir"/$_libname-$pkgver + python setup.py install -O1 --skip-build --root="$pkgdir" +} + +sha256sums=('fb2f75aea14722390d2d8ddf384ad99da708c707a96656210a7be8af20a2c5e5') diff --git a/abs/core/python_modules/python-pygments/PKGBUILD b/abs/core/python_modules/python-pygments/PKGBUILD index ef7fc43..20edf45 100644 --- a/abs/core/python_modules/python-pygments/PKGBUILD +++ b/abs/core/python_modules/python-pygments/PKGBUILD @@ -1,62 +1,44 @@ # Maintainer: Evangelos Foutras <evangelos@foutrelis.com> # Contributor: Timm Preetz <timm@preetz.us> -pkgname=('python-pygments' 'python2-pygments' 'pygmentize') -pkgver=2.3.1 -pkgrel=1 +pkgname=python-pygments +pkgver=2.7.2 +pkgrel=3 pkgdesc="Python syntax highlighter" arch=('any') -url="http://pygments.org/" +url="https://pygments.org/" license=('BSD') -makedepends=('python-setuptools' 'python2-setuptools') -options=('!emptydirs') +depends=('python-setuptools') +makedepends=('python-sphinx') +checkdepends=('python-pytest') +provides=('pygmentize') +conflicts=('pygmentize') +replaces=('pygmentize') source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz) -sha256sums=('5ffada19f6203563680669ee7f53b64dabbeb100eb51b61996085e99c03b284a') - -package_python-pygments() { - depends=('python-setuptools') +sha256sums=('381985fcc551eb9d37c52088a32914e00517e57f4a21609f48141ba08e193fa0') +build() { cd "$srcdir/Pygments-$pkgver" - - python3 setup.py install --root="$pkgdir" -O1 - - # pygmentize is shipped in its own package - rm "$pkgdir/usr/bin/pygmentize" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + make -C doc html } -package_python2-pygments() { - depends=('python2-setuptools') - install=python2-pygments.install - +check() { cd "$srcdir/Pygments-$pkgver" - - python2 setup.py install --root="$pkgdir" -O1 - - # pygmentize is shipped in its own package - rm "$pkgdir/usr/bin/pygmentize" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + PYTHONDONTWRITEBYTECODE=1 pytest } -package_pygmentize() { - depends=('python-pygments') - +package() { cd "$srcdir/Pygments-$pkgver" + export PYTHONHASHSEED=0 python3 setup.py install --root="$pkgdir" -O1 + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" - # Remove all files except for usr/bin/pygmentize - find "$pkgdir" -type f -not -name pygmentize -delete - - # Drop version dependency from console script - sed -i "s/Pygments==$pkgver/Pygments/g" "$pkgdir/usr/bin/pygmentize" - + mkdir -p "$pkgdir/usr/share/doc" + cp -rT doc/_build/html "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 doc/pygmentize.1 -t "$pkgdir/usr/share/man/man1" install -Dm644 external/pygments.bashcomp \ "$pkgdir/usr/share/bash-completion/completions/pygmentize" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pygments/python2-pygments.install b/abs/core/python_modules/python-pygments/python2-pygments.install deleted file mode 100644 index 3949246..0000000 --- a/abs/core/python_modules/python-pygments/python2-pygments.install +++ /dev/null @@ -1,7 +0,0 @@ -post_upgrade() { - if (($(vercmp $2 2.0.2-2) < 0)); then - echo ':: /usr/bin/pygmentize has been moved to the pygmentize package' - fi -} - -# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pytest-runner/PKGBUILD b/abs/core/python_modules/python-pytest-runner/PKGBUILD index 8928aa0..891ce11 100644 --- a/abs/core/python_modules/python-pytest-runner/PKGBUILD +++ b/abs/core/python_modules/python-pytest-runner/PKGBUILD @@ -1,44 +1,43 @@ -# $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-pytest-runner pkgname=('python-pytest-runner' 'python2-pytest-runner') -pkgver=2.11.1 -pkgrel=2 +pkgver=5.2 +pkgrel=1 pkgdesc="Invoke py.test as distutils command with dependency resolution" arch=('any') license=('MIT') url="https://github.com/pytest-dev/pytest-runner" -makedepends=('python-pytest' 'python-setuptools-scm' 'python2-pytest' 'python2-setuptools-scm' 'git') -source=("git+https://github.com/pytest-dev/pytest-runner.git#tag=$pkgver") -sha512sums=('SKIP') +makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm') +checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-virtualenv' + 'python-pytest-flake8') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz") +sha512sums=('0ce9c191481ab97795d0f45bdea7669cb61c3ac6aac476954d34c3e09e6fb08fd6bf73f192c014cb7ff2bd90dbfeb0f01d9a9ba7a9c6caeb371e40b42b558d63') prepare() { - cp -a pytest-runner{,-py2} + cp -a pytest-runner-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver } build() { - cd "$srcdir"/pytest-runner + cd "$srcdir"/pytest-runner-$pkgver python setup.py build - cd "$srcdir"/pytest-runner-py2 + cd "$srcdir"/pytest-runner-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir"/pytest-runner + cd pytest-runner-$pkgver python setup.py egg_info PYTHONPATH="$PWD" pytest - - cd "$srcdir"/pytest-runner-py2 - python2 setup.py egg_info - PYTHONPATH="$PWD" pytest2 } package_python-pytest-runner() { depends=('python-pytest') - cd pytest-runner + cd pytest-runner-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } @@ -46,7 +45,7 @@ package_python-pytest-runner() { package_python2-pytest-runner() { depends=('python2-pytest') - cd pytest-runner-py2 + cd pytest-runner-$pkgver-py2 python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/abs/core/python_modules/python-pytz/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch b/abs/core/python_modules/python-pytz/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch new file mode 100644 index 0000000..ba7e388 --- /dev/null +++ b/abs/core/python_modules/python-pytz/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch @@ -0,0 +1,69 @@ +From 74baf31e5505d03a71df49894d57e1011e771eb9 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz@archlinux.org> +Date: Mon, 4 May 2020 15:26:01 -0400 +Subject: [PATCH] Use the system zoneinfo from the tzdata package. + +We don't need to ship these vendored blobs as our system copy works +quite well. + +Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> +--- + src/pytz/__init__.py | 13 +------------ + src/pytz/tzfile.py | 2 +- + src/setup.py | 2 -- + 3 files changed, 2 insertions(+), 15 deletions(-) + +diff --git a/src/pytz/__init__.py b/src/pytz/__init__.py +index c25a1d1..3cc59ef 100644 +--- a/src/pytz/__init__.py ++++ b/src/pytz/__init__.py +@@ -92,19 +92,8 @@ def open_resource(name): + if zoneinfo_dir is not None: + filename = os.path.join(zoneinfo_dir, *name_parts) + else: +- filename = os.path.join(os.path.dirname(__file__), ++ filename = os.path.join('/usr', 'share', + 'zoneinfo', *name_parts) +- if not os.path.exists(filename): +- # http://bugs.launchpad.net/bugs/383171 - we avoid using this +- # unless absolutely necessary to help when a broken version of +- # pkg_resources is installed. +- try: +- from pkg_resources import resource_stream +- except ImportError: +- resource_stream = None +- +- if resource_stream is not None: +- return resource_stream(__name__, 'zoneinfo/' + name) + return open(filename, 'rb') + + +diff --git a/src/pytz/tzfile.py b/src/pytz/tzfile.py +index 25117f3..98eba05 100644 +--- a/src/pytz/tzfile.py ++++ b/src/pytz/tzfile.py +@@ -126,7 +126,7 @@ def build_tzinfo(zone, fp): + if __name__ == '__main__': + import os.path + from pprint import pprint +- base = os.path.join(os.path.dirname(__file__), 'zoneinfo') ++ base = os.path.join('/usr', 'share', 'zoneinfo') + tz = build_tzinfo('Australia/Melbourne', + open(os.path.join(base, 'Australia', 'Melbourne'), 'rb')) + tz = build_tzinfo('US/Eastern', +diff --git a/src/setup.py b/src/setup.py +index fa9a592..675618c 100644 +--- a/src/setup.py ++++ b/src/setup.py +@@ -22,8 +22,6 @@ for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')): + for filename in filenames]) + package_data = {'pytz': resources} + +-assert len(resources) > 10, 'zoneinfo files not found!' +- + setup( + name='pytz', + version=pytz.VERSION, +-- +2.26.2 + diff --git a/abs/core/python_modules/python-pytz/PKGBUILD b/abs/core/python_modules/python-pytz/PKGBUILD index fca20e0..7eb49b7 100644 --- a/abs/core/python_modules/python-pytz/PKGBUILD +++ b/abs/core/python_modules/python-pytz/PKGBUILD @@ -4,23 +4,31 @@ # Contributor: William Rea <sillywilly@gmail.com> pkgname=('python-pytz' 'python2-pytz') -pkgver=2018.3 -pkgrel=1 +pkgver=2020.4 +pkgrel=3 arch=('any') -url="http://pypi.python.org/pypi/pytz" +url="https://pypi.python.org/pypi/pytz" license=("MIT") makedepends=('python' 'python2') -source=("https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz") -md5sums=('abb07c09c79f78d7c04f222a550c99ef') +source=("https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz" + "0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch") +sha512sums=('dcbe763bc6e48c52df855fe03a8109dc0656a0e851324c0468f4307e8aff60e577fe0c9f0b062319e90d2f639b96e98edf8346064705e244143386c863a0aa7c' + '3cbd497313c3049a2ae04298118aefb6dfa9ec4626078c665c95c13a78ae944b33a68813aea0c53b02b0532b64221cca4a0cd2153bd91b3760916bc3c0f6df8f') validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A') +prepare() { + cd pytz-$pkgver + + patch -p2 -i ../0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch + rm -r pytz/zoneinfo/ +} + build(){ - cd $srcdir cp -rf pytz-$pkgver pytz2-$pkgver } check(){ - cd $srcdir/pytz-$pkgver/pytz/tests + cd pytz-$pkgver/pytz/tests python3 test_tzinfo.py python2 test_tzinfo.py @@ -30,14 +38,11 @@ package_python-pytz(){ depends=('python') pkgdesc="Cross platform time zone library for Python" - cd $srcdir/pytz-$pkgver + cd pytz-$pkgver - # Fix locale https://github.com/ipython/ipython/issues/2057 - export LC_ALL=en_US.UTF-8 + python3 setup.py install --root="$pkgdir"/ - python3 setup.py install --root=$pkgdir/ - - install -D LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } @@ -45,12 +50,9 @@ package_python2-pytz(){ depends=('python2') pkgdesc="Cross platform time zone library for Python" - cd $srcdir/pytz2-$pkgver - - # python 2 fix -# sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pytz/tzfile.py + cd pytz2-$pkgver - python2 setup.py install --root="$pkgdir/" + python2 setup.py install --root="$pkgdir"/ - install -D LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/abs/core/python_modules/python-requests/PKGBUILD b/abs/core/python_modules/python-requests/PKGBUILD index e791c7b..eee0bf0 100644 --- a/abs/core/python_modules/python-requests/PKGBUILD +++ b/abs/core/python_modules/python-requests/PKGBUILD @@ -1,10 +1,9 @@ -# $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> pkgbase=python-requests pkgname=('python-requests' 'python2-requests') -pkgver=2.18.4 +pkgver=2.25.0 pkgrel=1 pkgdesc="Python HTTP for Humans" arch=('any') @@ -12,16 +11,16 @@ url="http://python-requests.org" license=('Apache') makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet' 'python-urllib3' 'python2-urllib3' 'python-idna' 'python2-idna') -checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 'python-pytest-mock' - 'python2-pytest-mock' 'python-pysocks' 'python2-pysocks') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz" +checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 'python-pyopenssl') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/psf/requests/archive/v$pkgver.tar.gz" certs.patch) -sha512sums=('8ca20fe18d13b8c62977be0c51617f2ae8618d3d002ad4dc554362828855db7359274efbff0cd13e8c5699508913e91205cffcf306221a70321e74ac10b2d4d7' +sha512sums=('f60d8dbbc7aaebaedc7647ab2cec1fffd01547ea3340b91d9c7fea51fde4cb932aaf81e3b8aac9f4be11243e4fc44c8266a69db5f52c4eb2afb1b7714c150b95' '424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3') prepare() { cd "$srcdir"/requests-$pkgver sed -e '/certifi/d' \ + -e "s/,<.*'/'/" \ -i setup.py patch -p1 -i "$srcdir"/certs.patch @@ -39,11 +38,10 @@ build() { } check() { - cd "$srcdir"/requests-$pkgver - py.test tests + # Seems to be a problem about pytest-httpbin - cd "$srcdir"/requests-$pkgver-py2 - py.test2 tests + cd requests-$pkgver + pytest tests --deselect tests/test_requests.py::TestRequests::test_https_warnings } package_python-requests() { diff --git a/abs/core/python_modules/python-simplejson/PKGBUILD b/abs/core/python_modules/python-simplejson/PKGBUILD index 0e1a323..c953a4e 100644 --- a/abs/core/python_modules/python-simplejson/PKGBUILD +++ b/abs/core/python_modules/python-simplejson/PKGBUILD @@ -1,4 +1,3 @@ -# $Id$ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> # Contributor: Allan McRae <allan@archlinux.org> @@ -6,7 +5,7 @@ pkgbase=python-simplejson pkgname=('python-simplejson' 'python2-simplejson') -pkgver=3.13.2 +pkgver=3.17.2 pkgrel=1 pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python' license=('MIT') @@ -15,7 +14,7 @@ url='https://github.com/simplejson/simplejson' makedepends=('python-setuptools' 'python2-setuptools') checkdepends=('python-pytest-runner' 'python2-pytest-runner') source=("$pkgbase-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz") -sha512sums=('b1d6c68e1a6c967dfb695d0cd3d8dca19d458b650ddc0c8273328378eab7f52b801ee29431a6b3bde16608e886259267f41cbefabb7fbe7adb1e243479f91132') +sha512sums=('59428640d43fdc6927db752a36196f48d00818a87d924358deab7e498709515423ecdd34dece31364c5e8d64b63d99112fd4a4b8a03b9f9c6533268afc38e314') prepare() { cp -a simplejson-$pkgver{,-py2} diff --git a/abs/core/python_modules/python-snowballstemmer/PKGBUILD b/abs/core/python_modules/python-snowballstemmer/PKGBUILD index 676c0e8..0351e53 100644 --- a/abs/core/python_modules/python-snowballstemmer/PKGBUILD +++ b/abs/core/python_modules/python-snowballstemmer/PKGBUILD @@ -1,47 +1,32 @@ -# $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: xantares -pkgbase=python-snowballstemmer -pkgname=('python-snowballstemmer' 'python2-snowballstemmer') -pkgver=1.2.1 -pkgrel=2 +pkgname=python-snowballstemmer +pkgver=2.0.0 +pkgrel=6 arch=('any') pkgdesc="Snowball stemming library collection for Python" -url='https://github.com/shibukawa/snowball_py' +url='https://snowballstem.org' license=('BSD') -makedepends=('python' 'python2') -source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-${pkgver}.tar.gz") -md5sums=('643b019667a708a922172e33a99bf2fa') - -prepare() { - cp -a snowballstemmer-${pkgver}{,-py2} -} +depends=('python') +optdepends=('python-pystemmer: for improved performance') +makedepends=('python-setuptools') +source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-$pkgver.tar.gz") +md5sums=('c05ec4a897be3c953c8b8b844c4241d4') build() { - cd "$srcdir"/snowballstemmer-${pkgver} + cd "$srcdir"/snowballstemmer-$pkgver python setup.py build - - cd "$srcdir"/snowballstemmer-${pkgver}-py2 - python2 setup.py build } -package_python-snowballstemmer() { - depends=('python') - optdepends=('python-pystemmer: for improved performance') - - cd "$srcdir"/snowballstemmer-${pkgver} - python setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst +check() { + cd "$srcdir"/snowballstemmer-$pkgver/src + PYTHONPATH=. python sample/testapp.py english "what's this" } -package_python2-snowballstemmer() { - depends=('python2') - optdepends=('python2-pystemmer: for improved performance') - - cd "$srcdir"/snowballstemmer-${pkgver}-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 +package() { + cd "$srcdir"/snowballstemmer-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } diff --git a/abs/core/python_modules/python-soupsieve/PKGBUILD b/abs/core/python_modules/python-soupsieve/PKGBUILD new file mode 100644 index 0000000..8b65574 --- /dev/null +++ b/abs/core/python_modules/python-soupsieve/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgname=python-soupsieve +pkgver=2.0.1 +pkgrel=3 +pkgdesc="A CSS4 selector implementation for Beautiful Soup" +url="https://github.com/facelessuser/soupsieve" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-html5lib' 'python-lxml') +source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('f4ef4deee81bb31952e1d3216250712f09b425e7a2253e15bd1b38cb74b680e421e7d086a8770737898f6b57867f07f2dd07b8a98108d05e338bce92b274b85f') + +build() { + cd soupsieve-$pkgver + python setup.py build +} + +check() { + cd soupsieve-$pkgver + pytest +} + +package() { + cd soupsieve-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md +} diff --git a/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD b/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD index d3203be..9900d02 100644 --- a/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD +++ b/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD @@ -1,43 +1,30 @@ -# $Id$ # Maintainer: Johannes Löthberg <johannes@kyriasis.com> # Contributor: xantares -pkgbase=python-sphinx-alabaster-theme -pkgname=(python-sphinx-alabaster-theme python2-sphinx-alabaster-theme) -pkgver=0.7.10 -pkgrel=1 +pkgname=python-sphinx-alabaster-theme +pkgver=0.7.12 +pkgrel=6 pkgdesc="Sphinx default theme" url='https://github.com/bitprophet/alabaster' arch=('any') license=('custom:BSD') +depends=('python') makedepends=('python-setuptools' 'python2-setuptools') source=("https://pypi.org/packages/source/a/alabaster/alabaster-$pkgver.tar.gz") -md5sums=('7934dccf38801faa105f6e7b4784f493') +md5sums=('3591827fde96d1dd23970fb05410ed04') build() { - cp -r alabaster-"$pkgver" alabaster-"$pkgver"-py2 - cd alabaster-"$pkgver" python setup.py build - - cd "$srcdir"/alabaster-"$pkgver"-py2 - python2 setup.py build } -package_python-sphinx-alabaster-theme() { +package() { cd alabaster-"$pkgver" python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE } - -package_python2-sphinx-alabaster-theme() { - cd alabaster-"$pkgver"-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE -} diff --git a/abs/core/python_modules/python-sphinx/PKGBUILD b/abs/core/python_modules/python-sphinx/PKGBUILD index cab258e..33328d1 100644 --- a/abs/core/python_modules/python-sphinx/PKGBUILD +++ b/abs/core/python_modules/python-sphinx/PKGBUILD @@ -1,150 +1,63 @@ -# $Id$ # Maintainer: Johannes Löthberg <johannes@kyriasis.com> +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> # Contributor: Sébastien Luttringer # Contributor: Angel Velasquez <angvp@archlinux.org> # Contributor: Fabio Volpe <volpefabio@gmail.com> -pkgbase=python-sphinx -pkgname=('python-sphinx' 'python2-sphinx') -pkgver=1.7.0 -pkgrel=1 - +pkgname=python-sphinx +pkgver=3.2.1 +pkgrel=3 +pkgdesc='Python documentation generator' arch=('any') -url='http://sphinx.pocoo.org/' +url=http://www.sphinx-doc.org/ license=('BSD') - -makedepends=( - 'python-setuptools' - 'python-docutils' - 'python-jinja' - 'python-pygments' - 'python-six' - 'python-imagesize' - 'python-sphinxcontrib-websupport' - 'python-sqlalchemy' - 'python-whoosh' - 'python2-setuptools' - 'python2-docutils' - 'python2-jinja' - 'python2-pygments' - 'python2-six' - 'python2-imagesize' - 'python2-sphinxcontrib-websupport' - 'python2-sqlalchemy' - 'python2-whoosh' - 'python2-typing' -) - -checkdepends=( - 'texlive-latexextra' - 'python-nose' 'python2-nose' - 'python-snowballstemmer' 'python2-snowballstemmer' - 'python-babel' 'python2-babel' - 'python-sphinx-alabaster-theme' 'python2-sphinx-alabaster-theme' - 'python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme' - 'python-mock' 'python2-mock' - 'python-html5lib' 'python2-html5lib' - 'python-requests' 'python2-requests' - 'python2-pytest' 'python-pytest' - 'python2-enum34' - 'python-sphinxcontrib-websupport' 'python2-sphinxcontrib-websupport' - 'imagemagick' 'librsvg' -) - -source=("https://pypi.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz"{,.asc}) - -validpgpkeys=('8A11B79A5D0D749A66F0A030102C2C17498D6B9E' - 'E9BEABB07E7B9CC3F56E62C91425F8CE5EBA0E07') -md5sums=('7d6d8226148378875986310aea68702e' - 'SKIP') +depends=('python-babel' + 'python-docutils' + 'python-imagesize' + 'python-jinja' + 'python-pygments' + 'python-requests' + 'python-setuptools' + 'python-snowballstemmer' + 'python-sphinx-alabaster-theme' + 'python-sphinxcontrib-'{{apple,dev,html}help,jsmath,qthelp,serializinghtml}) +checkdepends=('cython' + 'imagemagick' 'librsvg' + 'python-html5lib' + 'python-pytest' + 'texlive-fontsextra' 'texlive-latexextra') +optdepends=('imagemagick: for ext.imgconverter' + 'texlive-latexextra: for generation of PDF documentation') +source=("https://pypi.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz"{,.asc} + $pkgname-pygments-2.7.patch::https://github.com/sphinx-doc/sphinx/commit/85b24a2e88ea.patch) +sha256sums=('321d6d9b16fa381a5306e5a0b76cd48ffbc588e6340059a729c6fdd66087e0e8' + 'SKIP' + '6b790f4b3b540924a6a7861452fcbac8123f1e0a6c1765f5caafd7cb94fcecec') +validpgpkeys=('8A11B79A5D0D749A66F0A030102C2C17498D6B9E' # Takeshi KOMIYA + 'E9BEABB07E7B9CC3F56E62C91425F8CE5EBA0E07') # Takayuki Shimizukawa prepare() { - # souce duplication is required because makefile modify source code - # setyp.py --build tricks don't works well - cp -a Sphinx-$pkgver Sphinx-${pkgver}2 - # change python2 interpreter - find Sphinx-${pkgver}2 -type f -exec \ - sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \; - # change sphinx-binaries name in source code - find Sphinx-${pkgver}2 -type f -name '*.py' -exec \ - sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \; + cd Sphinx-$pkgver + + # Fix test failure with pygments 2.7 + patch -Np1 -i ../$pkgname-pygments-2.7.patch } build() { - msg2 'Python 3 version' - cd "$srcdir"/Sphinx-$pkgver - make PYTHON=python3 build - - msg2 'Python 2 version' - cd "$srcdir"/Sphinx-${pkgver}2 - make PYTHON=python2 build + cd Sphinx-$pkgver + make build } -#check() { -# msg2 'Python 3 version' -# cd "$srcdir"/Sphinx-$pkgver -# LC_ALL="en_US.UTF-8" make PYTHON=python3 test -# rm -r tests -# -# msg2 'Python 2 version' -# cd "$srcdir"/Sphinx-${pkgver}2 -# LC_ALL="en_US.UTF-8" make PYTHON=python2 test -# rm -r tests -#} - -package_python-sphinx() { - pkgdesc='Python3 documentation generator' - depends=( - 'python-setuptools' - 'python-jinja' - 'python-pygments' - 'python-docutils' - 'python-sphinx_rtd_theme' - 'python-sphinx-alabaster-theme' - 'python-babel' - 'python-snowballstemmer' - 'python-six' - 'python-imagesize' - 'python-requests' - 'python-sphinxcontrib-websupport' - 'python-sqlalchemy' - 'python-whoosh' - ) - optdepends=('texlive-latexextra: for generation of PDF documentation' - 'imagemagick: ext.imageconverter') - +check() { cd Sphinx-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 "$srcdir"/Sphinx-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/python-sphinx/LICENSE + LC_ALL="en_US.UTF-8" make test + rm -r tests } -package_python2-sphinx() { - pkgdesc='Python2 documentation generator' - depends=( - 'python2-setuptools' - 'python2-jinja' - 'python2-pygments' - 'python2-docutils' - 'python2-sphinx_rtd_theme' - 'python2-sphinx-alabaster-theme' - 'python2-babel' - 'python2-snowballstemmer' - 'python2-six' - 'python2-imagesize' - 'python2-requests' - 'python2-sphinxcontrib-websupport' - 'python2-sqlalchemy' - 'python2-whoosh' - 'python2-typing' - ) - optdepends=('texlive-latexextra: for generation of PDF documentation' - 'imagemagick: ext.imageconverter') - - cd Sphinx-${pkgver}2 - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -Dm644 "$srcdir"/Sphinx-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/python2-sphinx/LICENSE +package() { + cd Sphinx-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE } # vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinxcontrib-applehelp/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-applehelp/PKGBUILD new file mode 100644 index 0000000..92bfa97 --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-applehelp/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> + +_name=sphinxcontrib-applehelp +pkgname=python-sphinxcontrib-applehelp +pkgver=1.0.2 +pkgrel=3 +pkgdesc='Sphinx extension which outputs Apple help books' +arch=('any') +url=https://github.com/sphinx-doc/sphinxcontrib-applehelp +license=('BSD') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58') + +build() { + cd $_name-$pkgver + python setup.py build +} + +check() { + cd $_name-$pkgver + pytest +} + +package() { + cd $_name-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinxcontrib-devhelp/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-devhelp/PKGBUILD new file mode 100644 index 0000000..105a41d --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-devhelp/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> + +_name=sphinxcontrib-devhelp +pkgname=python-sphinxcontrib-devhelp +pkgver=1.0.2 +pkgrel=3 +pkgdesc='Sphinx extension which outputs Devhelp document' +arch=('any') +url=https://github.com/sphinx-doc/sphinxcontrib-devhelp +license=('BSD') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4') + +build() { + cd $_name-$pkgver + python setup.py build +} + +check() { + cd $_name-$pkgver + pytest +} + +package() { + cd $_name-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinxcontrib-htmlhelp/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-htmlhelp/PKGBUILD new file mode 100644 index 0000000..ac87604 --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-htmlhelp/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> + +_name=sphinxcontrib-htmlhelp +pkgname=python-sphinxcontrib-htmlhelp +pkgver=1.0.3 +pkgrel=3 +pkgdesc='Sphinx extension which renders HTML help files' +arch=('any') +url=https://github.com/sphinx-doc/sphinxcontrib-htmlhelp +license=('BSD') +makedepends=('python-setuptools') +checkdepends=('python-html5lib' 'python-pytest' 'python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b') + +build() { + cd $_name-$pkgver + python setup.py build +} + +check() { + cd $_name-$pkgver + pytest +} + +package() { + cd $_name-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinxcontrib-jsmath/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-jsmath/PKGBUILD new file mode 100644 index 0000000..d50d95e --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-jsmath/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> + +_name=sphinxcontrib-jsmath +pkgname=python-sphinxcontrib-jsmath +pkgver=1.0.1 +pkgrel=6 +pkgdesc='Sphinx extension which renders display math in HTML via JavaScript' +arch=('any') +url=https://github.com/sphinx-doc/sphinxcontrib-jsmath +license=('BSD') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8') + +build() { + cd $_name-$pkgver + python setup.py build +} + +check() { + cd $_name-$pkgver + pytest +} + +package() { + cd $_name-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinxcontrib-qthelp/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-qthelp/PKGBUILD new file mode 100644 index 0000000..38ff257 --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-qthelp/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> + +_name=sphinxcontrib-qthelp +pkgname=python-sphinxcontrib-qthelp +pkgver=1.0.3 +pkgrel=3 +pkgdesc='Sphinx extension which outputs QtHelp document' +arch=('any') +url=https://github.com/sphinx-doc/sphinxcontrib-qthelp +license=('BSD') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72') + +build() { + cd $_name-$pkgver + python setup.py build +} + +check() { + cd $_name-$pkgver + pytest +} + +package() { + cd $_name-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinxcontrib-serializinghtml/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-serializinghtml/PKGBUILD new file mode 100644 index 0000000..baaa7d4 --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-serializinghtml/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> + +_name=sphinxcontrib-serializinghtml +pkgname=python-sphinxcontrib-serializinghtml +pkgver=1.1.4 +pkgrel=3 +pkgdesc='Sphinx extension which outputs "serialized" HTML files (json and pickle)' +arch=('any') +url=https://github.com/sphinx-doc/sphinxcontrib-serializinghtml +license=('BSD') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-sphinx') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc') + +build() { + cd $_name-$pkgver + python setup.py build +} + +check() { + cd $_name-$pkgver + pytest +} + +package() { + cd $_name-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python2-backports.functools_lru_cache/PKGBUILD b/abs/core/python_modules/python2-backports.functools_lru_cache/PKGBUILD new file mode 100644 index 0000000..fd5eb30 --- /dev/null +++ b/abs/core/python_modules/python2-backports.functools_lru_cache/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Crass00 <crass00 @ hotmail . com> + +pkgname=python2-backports.functools_lru_cache +pkgver=1.6.1 +pkgrel=2 +pkgdesc="Backport of functools.lru_cache from Python 3.3" +arch=('any') +url="https://github.com/jaraco/backports.functools_lru_cache" +license=('MIT') +depends=('python2-backports') +makedepends=('python2-setuptools-scm') +checkdepends=('python2-pytest') +source=("https://pypi.io/packages/source/b/backports.functools_lru_cache/backports.functools_lru_cache-$pkgver.tar.gz") +sha512sums=('5764cc6ed83dc4abc2a7e5f8b5bb30c7b7554aafcbb6dfcececdb3646fe9298a8c1791a02112238ec94a0e383855bdec43bf9094f40b57124d0a0c9aa7c67f88') + +prepare() { + cd backports.functools_lru_cache-$pkgver + # Style or coverage checks are not relevant for us + sed -i 's/--flake8 --black --cov//' pytest.ini +} + +build() { + cd backports.functools_lru_cache-$pkgver + python2 setup.py build +} + +check() { + cd backports.functools_lru_cache-$pkgver + python2 -m pytest +} + +package() { + cd backports.functools_lru_cache-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + + rm "$pkgdir"/usr/lib/python2.7/site-packages/backports/__init__.py* +} diff --git a/abs/core/python_modules/python2-backports/PKGBUILD b/abs/core/python_modules/python2-backports/PKGBUILD new file mode 100644 index 0000000..0585c1d --- /dev/null +++ b/abs/core/python_modules/python2-backports/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgname=python2-backports +pkgver=1.0 +pkgrel=3 +pkgdesc="Namespace package required for backports collection" +arch=('any') +url="https://pypi.python.org/pypi/backports" +license=('PSF') +depends=('python2') + +build() { + cd "$srcdir" + cat << EOF > __init__.py +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) +EOF + python2 -m compileall . +} + +package() { + cd "$srcdir" + install -Dm644 __init__.py "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.py" + install -Dm644 __init__.pyc "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.pyc" +} diff --git a/abs/core/python_modules/python2-futures/PKGBUILD b/abs/core/python_modules/python2-futures/PKGBUILD index dcaed42..7034b40 100644 --- a/abs/core/python_modules/python2-futures/PKGBUILD +++ b/abs/core/python_modules/python2-futures/PKGBUILD @@ -1,12 +1,11 @@ -# $Id$ # Maintainer: Balló György <ballogyor+arch at gmail dot com> # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> # Contributor: Allan McRae <allan@archlinux.org> pkgname=python2-futures _pkgname=futures -pkgver=3.1.1 -pkgrel=1 +pkgver=3.3.0 +pkgrel=2 pkgdesc="Backport of the concurrent.futures package from Python 3.2" arch=('any') url="https://github.com/agronholm/pythonfutures" @@ -14,7 +13,7 @@ license=('BSD') depends=('python2') source=("$_pkgname-$pkgver.tar.gz::https://github.com/agronholm/pythonfutures/archive/$pkgver.tar.gz" LICENSE) -md5sums=('c500fc20a02b83e7ec88dc5bac9649f5' +md5sums=('f27b1e0bd1fb32b2b2c79cb0823f2a2d' 'dd6708d05936d3f6c4e20ed14c87b5e3') build() { diff --git a/abs/core/python_modules/python2-soupsieve/PKGBUILD b/abs/core/python_modules/python2-soupsieve/PKGBUILD new file mode 100644 index 0000000..f552d97 --- /dev/null +++ b/abs/core/python_modules/python2-soupsieve/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgname=python2-soupsieve +pkgver=1.9.6 +pkgrel=2 +pkgdesc="A CSS4 selector implementation for Beautiful Soup" +url="https://github.com/facelessuser/soupsieve" +license=('MIT') +arch=('any') +depends=('python2-backports.functools_lru_cache') +makedepends=('python2-setuptools') +checkdepends=('python2-pytest' 'python2-beautifulsoup4' 'python2-html5lib' 'python2-lxml') +source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('44954cdedc16a51c794ebe6770caeb8f179167ad2f0a0478cb1efd5878d6cc49fffd6119125964b19184afa6d0d7dedadb81dee020a48c5128ccf56e36a78f61') + +build() { + cd soupsieve-$pkgver + python2 setup.py build +} + +check() { + cd soupsieve-$pkgver + pytest2 +} + +package() { + cd soupsieve-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md +} |