Commit 46638746 authored by Ram-Z's avatar Ram-Z

mutagen: update run tests and add missing packages [skip ci]

parent 22c902cb
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname=mpdecimal
pkgver=2.4.2
pkgrel=1
pkgdesc="Package for correctly-rounded arbitrary precision decimal floating point arithmetic"
arch=('x86_64')
url="http://www.bytereef.org/mpdecimal/index.html"
license=('custom')
depends=('glibc')
source=("http://www.bytereef.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz")
sha512sums=('eb18ad53b81b93c469db4d915bbb3fae21b36ad82a88e01fef3a6946ac5f50b54376e259a5ecbe23836f1efd59d226b942ecdee87eaba7f9e75cdcaaa9499ef7')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
......@@ -3,22 +3,27 @@
pkgbase=mutagen
pkgname=('mutagen' 'python3-mutagen')
pkgver=1.37
pkgver=1.40.0
pkgrel=1
arch=('any')
url="https://github.com/quodlibet/mutagen"
license=('GPL2')
makedepends=('python2-setuptools' 'python3-setuptools')
checkdepends=('python2-pytest' 'python3-pytest')
source=($pkgname-$pkgver::https://github.com/quodlibet/mutagen/archive/release-${pkgver}.tar.gz)
sha1sums=('4c9725f0b613d54e8ae522dac3d716c36ef10095')
makedepends=(python2-setuptools python3-setuptools)
checkdepends=(python2-pytest python3-pytest
python2-hypothesis python3-hypothesis
python2-pyflakes python3-pyflakes
python2-pycodestyle python3-pycodestyle)
source=(https://github.com/quodlibet/mutagen/releases/download/release-${pkgver}/${pkgbase}-${pkgver}.tar.gz{,.sig})
validgpgkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC)
sha1sums=('3473555912d01026ed9c085b01d91ee0117b45f9'
'SKIP')
prepare() {
cp -aT $pkgbase-release-$pkgver python3-$pkgbase-$pkgver
cp -aT $pkgbase-$pkgver python3-$pkgbase-$pkgver
}
check() {
cd $pkgbase-release-$pkgver
cd $pkgbase-$pkgver
LANG=en_US.UTF8 python2 setup.py test
cd ../python3-$pkgbase-$pkgver
# LANG=en_US.UTF8 python3 setup.py test
......@@ -28,7 +33,7 @@ package_mutagen() {
pkgdesc="An audio metadata tag reader and writer"
depends=('python2')
cd $pkgbase-release-$pkgver
cd $pkgbase-$pkgver
python2 setup.py install --root="${pkgdir}"
}
......
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
pkgbase=pylint
pkgname=('python3-pylint' 'python2-pylint')
pkgver=1.8.2
pkgrel=2
pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
arch=('any')
url="http://pylint.org"
license=('GPL')
makedepends=('python3-astroid' 'python2-astroid'
'python3-setuptools' 'python2-setuptools'
'python3-six' 'python2-six'
'python3-isort' 'python2-isort'
'python3-mccabe' 'python2-mccabe'
'python2-backports.functools_lru_cache'
'python2-configparser'
'python2-singledispatch')
checkdepends=('python3-pytest-runner' 'python2-pytest-runner' 'mpdecimal')
optdepends=('tk: Pylint GUI'
'graphviz: To have other output formats than dot or vcg')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/pylint/archive/pylint-$pkgver.tar.gz")
sha512sums=('ac0e7d53b5482435b0579b475684bb725358f21ae3a09d15fdf01bb51dd06f9204c4be3b17de69d4e11d1fed38820f0046625030928ca5699f2828c8f2a44716')
prepare() {
sed -i 's/pytest<3.3/pytest/' pylint-pylint-$pkgver/setup.py
cp -a pylint-pylint-$pkgver{,-py2}
cd "$srcdir"/pylint-pylint-$pkgver/pylint
sed -e "s|/usr/bin/env python|/usr/bin/env python3|" -e "s|/usr/bin/python$|/usr/bin/python3|" -i epylint.py __main__.py test/input/noext test/data/ascript
cd "$srcdir"/pylint-pylint-$pkgver-py2/pylint
sed -e "s|/usr/bin/env python|/usr/bin/env python2|" -e "s|/usr/bin/python$|/usr/bin/python2|" -i epylint.py __main__.py test/input/noext test/data/ascript
}
build() {
cd "$srcdir"/pylint-pylint-$pkgver
python3 setup.py build
cd "$srcdir"/pylint-pylint-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/pylint-pylint-$pkgver
python3 setup.py pytest
cd "$srcdir"/pylint-pylint-$pkgver-py2
python2 setup.py pytest
}
package_python3-pylint() {
depends=('python3-astroid' 'python3-setuptools' 'python3-mccabe' 'python3-isort')
cd pylint-pylint-$pkgver
python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
install -d "$pkgdir"/usr/share/man/man1
install -m644 man/* "$pkgdir"/usr/share/man/man1
}
package_python2-pylint() {
depends=('python2-astroid' 'python2-setuptools' 'python2-mccabe' 'python2-isort'
'python2-backports.functools_lru_cache' 'python2-configparser' 'python2-singledispatch')
cd pylint-pylint-$pkgver-py2
python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
install -d "$pkgdir"/usr/share/man/man1
install -m644 man/* "$pkgdir"/usr/share/man/man1
for _exe in epylint pylint pyreverse symilar; do
mv "$pkgdir"/usr/bin/${_exe}{,2}
mv "$pkgdir"/usr/share/man/man1/${_exe}{,2}.1
done
}
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-astroid
pkgname=('python2-astroid' 'python3-astroid')
pkgver=1.6.1
pkgrel=1
pkgdesc="Useful miscellaneous modules used by Logilab projects"
arch=('any')
url="https://github.com/PyCQA/astroid"
license=('LGPL')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six'
'python3-lazy-object-proxy' 'python2-lazy-object-proxy' 'python3-wrapt' 'python2-wrapt'
'python2-singledispatch' 'python2-enum34' 'python2-backports.functools_lru_cache')
checkdepends=('python3-dateutil' 'python2-dateutil' 'python3-pytest' 'python2-pytest' 'python3-numpy'
'python2-numpy' 'python3-nose' 'python2-nose')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/astroid/archive/astroid-$pkgver.tar.gz")
sha512sums=('fbe1495ecd493de0341ce973046c94f2fe2783666ad4d15513ea60831d1e0f0663d3f3afdc0c37a6313eb581f333bdc75c21214b660536c92f3b5073ce0845f2')
prepare() {
cp -a astroid-astroid-$pkgver{,-py2}
}
build() {
cd "$srcdir"/astroid-astroid-$pkgver
python3 setup.py build
cd "$srcdir"/astroid-astroid-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/astroid-astroid-$pkgver
python3 -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
# https://github.com/PyCQA/astroid/issues/472
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python3 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" -v || warning "Tests failed"
cd "$srcdir"/astroid-astroid-$pkgver-py2
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" -v
}
package_python3-astroid() {
depends=('python3-six' 'python3-lazy-object-proxy' 'python3-wrapt')
replaces=('python3-logilab-astng')
conflicts=('python3-logilab-astng')
cd astroid-astroid-$pkgver
python3 setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
}
package_python2-astroid() {
depends=('python2-six' 'python2-lazy-object-proxy' 'python2-wrapt' 'python2-singledispatch'
'python2-enum34' 'python2-backports.functools_lru_cache')
replaces=('python2-logilab-astng')
conflicts=('python2-logilab-astng')
cd astroid-astroid-$pkgver-py2
python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
}
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Clément Démoulins <clement@archivel.fr>
# Contributor: Fazlul Shahriar <fshahriar@gmail.com>
pkgbase=python-coverage
pkgname=(python3-coverage python2-coverage)
pkgver=4.5.1
pkgrel=1
pkgdesc="A tool for measuring code coverage of Python programs"
arch=('x86_64')
url="http://nedbatchelder.com/code/coverage/"
license=('Apache')
makedepends=('python3-setuptools' 'python2-setuptools')
checkdepends=('python3-mock' 'python2-mock' 'python3-pytest-xdist' 'python2-pytest-xdist'
'python3-pycontracts' 'python2-pycontracts' 'python3-greenlet' 'python2-greenlet'
'python3-virtualenv' 'python2-virtualenv' 'python3-pyenchant' 'python2-pyenchant'
'python3-pylint' 'python2-pylint' 'python3-unittest-mixins' 'python2-unittest-mixins'
'python3-flaky' 'python2-flaky')
source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/ned/coveragepy/get/coverage-$pkgver.tar.gz")
sha512sums=('72e03b35140596d7b6cd2976d35ecfd931b8c5518ae09dddeb2e204e73cee5e4f87341458dabbf5fdc6774a89342383ccd01d98ec7a8291f9cf8d9c1e5e9d0e9')
prepare() {
mv ned-coveragepy-* coveragepy-$pkgver
cp -a coveragepy-$pkgver{,-py2}
}
check() {
# Hack entry points by installing it
export LC_CTYPE=en_US.UTF-8
(
cd "$srcdir/coveragepy-$pkgver"
virtualenv3 "$srcdir/pyvenv" --system-site-packages
. "$srcdir/pyvenv/bin/activate"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.6/site-packages"
python setup.py --quiet develop
python igor.py zip_mods install_egg remove_extension
python igor.py test_with_tracer py
python setup.py --quiet build_ext --inplace
python igor.py test_with_tracer c
) || warning "Python 3 tests failed"
(
cd "$srcdir/coveragepy-$pkgver-py2"
virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages
. "$srcdir/pyvenv-py2/bin/activate"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/site-packages"
python setup.py --quiet develop
python igor.py zip_mods install_egg remove_extension
python igor.py test_with_tracer py
python setup.py --quiet build_ext --inplace
python igor.py test_with_tracer c
) || warning "Python 2 tests failed"
}
package_python3-coverage() {
depends=('python3')
cd coveragepy-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
package_python2-coverage() {
depends=('python2')
cd coveragepy-$pkgver
python2 setup.py install --root="$pkgdir" --optimize=1
mv "$pkgdir/usr/bin/coverage" "$pkgdir/usr/bin/coverage2"
}
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-fields
pkgname=('python3-fields' 'python2-fields')
pkgver=5.0.0
pkgrel=2
arch=('any')
pkgdesc='A totally different take on container boilerplate'
url='https://github.com/ionelmc/python-fields'
license=('BSD')
makedepends=('python3-setuptools' 'python2-setuptools' 'git')
checkdepends=(
'python3-pytest-benchmark' 'python2-pytest-benchmark'
'python3-pytest-runner' 'python2-pytest-runner' 'python3-attrs'
'python2-attrs' 'python3-characteristic' 'python2-characteristic')
source=("git+https://github.com/ionelmc/python-fields.git#tag=v$pkgver")
sha512sums=('SKIP')
prepare() {
cp -a python-fields{,-py2}
}
build() {
cd "$srcdir"/python-fields
python3 setup.py build
cd "$srcdir"/python-fields-py2
python2 setup.py build
}
check() {
# To workaround an error in doctest
export LC_CTYPE=en_US.UTF-8
cd "$srcdir"/python-fields
python3 setup.py ptr
cd "$srcdir"/python-fields-py2
python2 setup.py ptr
}
package_python3-fields() {
depends=('python3')
cd python-fields
python3 setup.py install --root "$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-fields() {
depends=('python2')
cd python-fields-py2
python2 setup.py install --root "$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-flaky
pkgname=('python3-flaky' 'python2-flaky')
pkgver=3.4.0
pkgrel=1
pkgdesc='Plugin for nose or py.test that automatically reruns flaky tests'
arch=('any')
license=('Apache')
url='https://github.com/box/flaky'
makedepends=('python3-setuptools' 'python2-setuptools')
checkdepends=('python3-pytest' 'python2-pytest' 'python3-nose' 'python2-nose'
'python3-genty' 'python2-genty' 'python3-mock' 'python2-mock')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/box/flaky/archive/v$pkgver.tar.gz")
sha512sums=('1e0902d1fc1566e11e64c6a983617d63109f6277fc51e42a88d9d1d7115dd2234636b0833df3aba22838427b792caa65638c33e75f86b3d402054923af3ffd66')
prepare() {
cp -a flaky-$pkgver{,-py2}
}
build() {
cd "$srcdir"/flaky-$pkgver
python3 setup.py build
cd "$srcdir"/flaky-$pkgver-py2
python2 setup.py build
}
check() {
# Hack entry points by installing it
cd "$srcdir"/flaky-$pkgver
python3 setup.py install --root="$PWD/tmp_install" --optimize=1
(
export PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH"
nosetests3 --with-flaky --exclude="test_nose_options_example" test/test_nose/
py.test -k 'example and not options' --doctest-modules test/test_pytest/
py.test -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
nosetests3 --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
py.test --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
)
cd "$srcdir"/flaky-$pkgver-py2
python2 setup.py install --root="$PWD/tmp_install" --optimize=1
(
export PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH"
nosetests2 --with-flaky --exclude="test_nose_options_example" test/test_nose/
py.test2 -k 'example and not options' --doctest-modules test/test_pytest/
py.test2 -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
nosetests2 --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
py.test2 --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
)
}
package_python3-flaky() {
depends=('python3')
cd "$srcdir"/flaky-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
package_python2-flaky() {
depends=('python2')
cd "$srcdir"/flaky-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
}
# vim:set ts=2 sw=2 et:
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-genty
pkgname=('python3-genty' 'python2-genty')
pkgver=1.3.2
pkgrel=2
pkgdesc="Allows you to run a test with multiple data sets"
arch=('any')
license=('Apache')
url="https://github.com/box/genty"
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six' 'git')
checkdepends=('python3-mock' 'python2-mock')
source=("git+https://github.com/box/genty.git#tag=v$pkgver")
sha512sums=('SKIP')
prepare() {
cp -a genty{,-py2}
}
build() {
cd "$srcdir/genty"
python3 setup.py build
cd "$srcdir/genty-py2"
python2 setup.py build
}
check() {
cd "$srcdir/genty"
python3 setup.py test
cd "$srcdir/genty-py2"
python2 setup.py test
}
package_python3-genty() {
depends=('python3-six')
cd genty
python3 setup.py install --root="${pkgdir}" --optimize=1
}
package_python2-genty() {
depends=('python2-six')
cd genty-py2
python2 setup.py install --root="${pkgdir}" --optimize=1
}
# Arch Contributor: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-hypothesis
pkgname=('python3-hypothesis' 'python2-hypothesis')
pkgver=3.48.0
pkgrel=1
pkgdesc="Advanced Quickcheck style testing library for Python"
arch=('any')
license=('MPL')
url="https://hypothesis.readthedocs.org"
makedepends=('python3-setuptools' 'python2-setuptools'
'python3-attrs' 'python2-attrs'
'python3-coverage' 'python2-coverage'
'python2-enum34')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis-python/archive/$pkgver.tar.gz")
sha512sums=('eb3377fae612840737f134c413a6835926580648f982cb6b8fb319571bd600348c621500bb0210c68c0aad4aa27e9cccf2e60af63cc08b2c15f04bf1c02152dc')
prepare() {
cp -a hypothesis-python-$pkgver{,-py2}
rm -r hypothesis-python-$pkgver/tests/py2
rm -r hypothesis-python-$pkgver-py2/tests/py3
export LC_CTYPE=en_US.UTF-8
}
build() {
cd "$srcdir"/hypothesis-python-$pkgver
python3 setup.py build
cd "$srcdir"/hypothesis-python-$pkgver-py2
python2 setup.py build
}
package_python3-hypothesis() {
depends=('python3-attrs' 'python3-coverage')
cd hypothesis-python-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
package_python2-hypothesis() {
depends=('python2-attrs' 'python2-coverage' 'python2-enum34')
cd hypothesis-python-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
}
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Yaron de Leeuw <me@jarondl.net>
pkgbase=python-isort
pkgname=('python3-isort' 'python2-isort')
pkgver=4.3.4
pkgrel=1
pkgdesc="A Python utility / library to sort Python imports."
arch=('any')
url="https://github.com/timothycrosley/isort"
license=('MIT')
makedepends=('python3-setuptools' 'python2-setuptools' 'python2-futures')
checkdepends=('python3-pytest' 'python2-pytest' 'python3-mock' 'python2-mock')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
sha512sums=('cc9254c288e479a05cc20c29c9be6fa368a46e85f8eb0a22238ee3e57004a75999d35d2a736ad0a4ddc7d7c7efcc30fb97bfd16fcd0adb44d3b937dd935588b7')
prepare() {
cp -a isort-$pkgver{,-py2}
}
build() {
cd "$srcdir"/isort-$pkgver
python3 setup.py build
cd "$srcdir"/isort-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/isort-$pkgver
python3 setup.py test
cd "$srcdir"/isort-$pkgver-py2
python2 setup.py test
}
package_python3-isort() {
depends=('python3-setuptools')
cd isort-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-isort() {
depends=('python2-setuptools' 'python2-futures')
cd isort-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
mv "$pkgdir"/usr/bin/isort{,2}
}
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-lazy-object-proxy
pkgname=(python3-lazy-object-proxy python2-lazy-object-proxy)
pkgver=1.3.1
pkgrel=1
pkgdesc='A fast and thorough lazy object proxy'
arch=('x86_64')
url="https://github.com/ionelmc/python-lazy-object-proxy"
license=('BSD')
makedepends=('python3-setuptools' 'python2-setuptools')
checkdepends=('python3-pytest' 'python2-pytest'
'python3-pytest-benchmark' 'python2-pytest-benchmark')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-lazy-object-proxy/archive/v$pkgver.tar.gz")
sha256sums=('b315bc589ac934feb81c954424b501bf56afdbf7851918be4261c2ccdbb14ea7')
prepare() {
cp -a python-lazy-object-proxy-$pkgver{,-py2}
}
build() {
cd "$srcdir"/python-lazy-object-proxy-$pkgver
python3 setup.py build
cd "$srcdir"/python-lazy-object-proxy-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/python-lazy-object-proxy-$pkgver
LC_CTYPE=en_US.UTF-8 PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" py.test --ignore=src
cd "$srcdir"/python-lazy-object-proxy-$pkgver-py2
PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2 --ignore=src
}
package_python3-lazy-object-proxy() {
depends=("python3")
cd python-lazy-object-proxy-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-lazy-object-proxy() {
depends=("python2")
cd python-lazy-object-proxy-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
pkgbase=python-mccabe
pkgname=(python3-mccabe python2-mccabe)
pkgver=0.6.1
pkgrel=1
pkgdesc="McCabe complexity checker for Python"
arch=('any')
url="https://github.com/flintwork/mccabe"
license=('custom:Expat')
makedepends=('python3-pytest-runner' 'python2-pytest-runner')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/flintwork/mccabe/archive/$pkgver.tar.gz")
md5sums=('0360af86f0bce7a839bd3cba517edf9c')
prepare() {
cp -a mccabe-$pkgver{,-py2}
}
build() {
cd "$srcdir"/mccabe-$pkgver
python3 setup.py build
cd "$srcdir"/mccabe-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/mccabe-$pkgver
python3 setup.py test
cd "$srcdir"/mccabe-$pkgver-py2
python2 setup.py test
}
package_python3-mccabe() {
depends=('python3')
cd mccabe-$pkgver
python3 setup.py install --root="$pkgdir" --prefix=/usr --skip-build --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-mccabe() {
depends=('python2')
cd mccabe-$pkgver-py2
python2 setup.py install --root="$pkgdir" --prefix=/usr --skip-build --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-process-tests
pkgname=('python3-process-tests' 'python2-process-tests')
pkgver=2.0.0
pkgrel=1
pkgdesc="Tools for testing processes"
arch=('any')
url="https://pypi.python.org/pypi/process-tests"
license=('BSD')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://pypi.io/packages/source/p/process-tests/process-tests-$pkgver.tar.gz")
sha512sums=('456238c9fe29dac2d03acb4f8b26d3801cf3cf997210a5de6634d9a86e8b6f2d29db4042ccc1721caa880b31f8d4131d5c121bab84033625a9ce0e80fd379f8a')
prepare() {
cp -a process-tests-$pkgver{,-py2}
}
build() {
cd "$srcdir"/process-tests-$pkgver
python3 setup.py build
cd "$srcdir"/process-tests-$pkgver-py2
python2 setup.py build
}
package_python3-process-tests() {
depends=('python3')
cd process-tests-$pkgver
python3 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-process-tests() {
depends=('python2')
cd process-tests-$pkgver
python2 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-py-cpuinfo
pkgname=('python3-py-cpuinfo' 'python2-py-cpuinfo')
pkgver=3.3.0
_commit=894ff3fdbf67953b089e93597b0c361e50968170
pkgrel=1
arch=('any')
pkgdesc='Get CPU info with pure Python 2 & 3'
url='https://github.com/workhorsy/py-cpuinfo'
license=('MIT')
makedepends=('python3-setuptools' 'python2-setuptools')