[arch-commits] Commit in python-coverage/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Dec 20 08:30:34 UTC 2020
Date: Sunday, December 20, 2020 @ 08:30:34
Author: felixonmars
Revision: 780183
archrelease: copy trunk to community-x86_64
Added:
python-coverage/repos/community-x86_64/PKGBUILD
(from rev 780182, python-coverage/trunk/PKGBUILD)
Deleted:
python-coverage/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 136 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 68 insertions(+), 68 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-20 08:30:28 UTC (rev 780182)
+++ PKGBUILD 2020-12-20 08:30:34 UTC (rev 780183)
@@ -1,68 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Clément Démoulins <clement at archivel.fr>
-# Contributor: Fazlul Shahriar <fshahriar at gmail.com>
-
-pkgbase=python-coverage
-pkgname=(python-coverage python2-coverage)
-pkgver=5.3
-pkgrel=3
-pkgdesc="A tool for measuring code coverage of Python programs"
-arch=('x86_64')
-url="https://nedbatchelder.com/code/coverage/"
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-flaky' 'python-hypothesis' 'python-mock'
-'python-pycontracts' 'python-pytest' 'python-pytest-xdist' 'python-toml'
-'python-unittest-mixins' 'python-virtualenv')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/nedbat/coveragepy/archive/coverage-$pkgver.tar.gz")
-sha512sums=('fb61b583d39d5f055742031e24b8b6509215fd5d4cfdae76391e8f9c03ab4d88c2955c4e751b2d792d841491991872d788f8204fc157e273ce6c254152bb4039')
-b2sums=('d84bc7907da7d66e3f767b97116b9ef061652b1090420d0b6271de5b2883d8736fc422410f405b4bc1d056dad655fc9d474b3f95011ba453481eea7e62e2b480')
-
-prepare() {
- mv -v "coveragepy-coverage-$pkgver" "${pkgbase}-$pkgver"
-}
-
-build() {
- cd "${pkgbase}-$pkgver"
- python setup.py build
- python2 setup.py build
-}
-
-check() {
- cd "${pkgbase}-$pkgver"
- local python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
- (
- virtualenv "test_dir" --system-site-packages
- . "test_dir/bin/activate"
- export PYTHONPATH="/usr/lib/python${python_version}/site-packages:${PYTHONPATH}"
- python setup.py --quiet clean 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
- ) || echo "Known failing tests."
-}
-
-package_python-coverage() {
- depends=('python-setuptools')
- optdepends=('python-toml: for pyproject.toml support')
- cd "${pkgbase}-$pkgver"
-
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
-}
-
-package_python2-coverage() {
- depends=('python2-setuptools')
- optdepends=('python2-toml: for pyproject.toml support')
- cd "${pkgbase}-$pkgver"
-
- python2 setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- # circumvent file conflicts with python-coverage
- mv -v "$pkgdir/usr/bin/coverage"{,2}
-}
Copied: python-coverage/repos/community-x86_64/PKGBUILD (from rev 780182, python-coverage/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-20 08:30:34 UTC (rev 780183)
@@ -0,0 +1,68 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Clément Démoulins <clement at archivel.fr>
+# Contributor: Fazlul Shahriar <fshahriar at gmail.com>
+
+pkgbase=python-coverage
+pkgname=(python-coverage python2-coverage)
+pkgver=5.3.1
+pkgrel=1
+pkgdesc="A tool for measuring code coverage of Python programs"
+arch=('x86_64')
+url="https://nedbatchelder.com/code/coverage/"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-flaky' 'python-hypothesis' 'python-mock'
+'python-pycontracts' 'python-pytest' 'python-pytest-xdist' 'python-toml'
+'python-unittest-mixins' 'python-virtualenv')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/nedbat/coveragepy/archive/coverage-$pkgver.tar.gz")
+sha512sums=('fd8a9588e60eb9d7610f25f7d3da5338d4bf6e9064ec1f73bd5699d541ee4327d892130081412bb939ef422fa44534b5996bab332149f1f4a9dfae0aae9b36a9')
+b2sums=('907ca2b1f0434e87c038cdc83ff10075e305c7614f4eaa1d185fca409a77e5613dcb65c7b6e58150a463d07d4e1a1ee14bdf4f2dffefbec47060e447729b7e39')
+
+prepare() {
+ mv -v "coveragepy-coverage-$pkgver" "${pkgbase}-$pkgver"
+}
+
+build() {
+ cd "${pkgbase}-$pkgver"
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd "${pkgbase}-$pkgver"
+ local python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
+ (
+ virtualenv "test_dir" --system-site-packages
+ . "test_dir/bin/activate"
+ export PYTHONPATH="/usr/lib/python${python_version}/site-packages:${PYTHONPATH}"
+ python setup.py --quiet clean 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
+ ) || echo "Known failing tests."
+}
+
+package_python-coverage() {
+ depends=('python-setuptools')
+ optdepends=('python-toml: for pyproject.toml support')
+ cd "${pkgbase}-$pkgver"
+
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+}
+
+package_python2-coverage() {
+ depends=('python2-setuptools')
+ optdepends=('python2-toml: for pyproject.toml support')
+ cd "${pkgbase}-$pkgver"
+
+ python2 setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ # circumvent file conflicts with python-coverage
+ mv -v "$pkgdir/usr/bin/coverage"{,2}
+}
More information about the arch-commits
mailing list