[arch-commits] Commit in python-cpplint/repos/community-any (PKGBUILD PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Aug 22 13:16:31 UTC 2022


    Date: Monday, August 22, 2022 @ 13:16:30
  Author: kgizdov
Revision: 1274690

archrelease: copy trunk to community-any

Added:
  python-cpplint/repos/community-any/PKGBUILD
    (from rev 1274689, python-cpplint/trunk/PKGBUILD)
Deleted:
  python-cpplint/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   85 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 41 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-22 13:16:25 UTC (rev 1274689)
+++ PKGBUILD	2022-08-22 13:16:30 UTC (rev 1274690)
@@ -1,44 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Contributor: Jason Papakostas <vithos at gmail.com>
-# Contributor: Liganic <liganic-aur at gmx.net>
-_pkgname='cpplint'
-pkgname="python-${_pkgname}"
-pkgver='1.6.0'
-pkgrel=1
-pkgdesc="Command-line tool to check C/C++ files for style issues following Google's C++ style guide."
-arch=('any')
-url='https://github.com/cpplint/cpplint'
-license=('custom:BSD3')
-depends=('python')
-makedepends=('python-build' 'python-installer' 'python-pytest-runner' 'python-pip' 'python-wheel')
-checkdepends=('python-flake8' 'python-pylint' 'python-importlib-metadata' 'python-tox' 'python-testfixtures')
-provides=('cpplint' 'cpplint-py3')
-replaces=('cpplint-py3')
-conflicts=('cpplint')
-checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-runner')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('ddc50661b62103376675d6e4bcaa85745fa523343c3d93a1f774685005f9afb3')
-
-build() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  # for some reason upstream insists on pytest-runner==5.2, remove
-  sed -e 's/pytest-runner==.*/pytest-runner"/' -i setup.py
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  # bug in pytest prevents testing - https://github.com/pytest-dev/pytest/issues/1888
-  # python -m venv --system-site-packages test-env
-  # test-env/bin/python -m pip install -r test-requirements
-  # test-env/bin/python -m pytest
-}
-
-package() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-
-  python -m installer --destdir="${pkgdir}" dist/*.whl
-
-  install -Dm644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
-  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-cpplint/repos/community-any/PKGBUILD (from rev 1274689, python-cpplint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-22 13:16:30 UTC (rev 1274690)
@@ -0,0 +1,41 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Jason Papakostas <vithos at gmail.com>
+# Contributor: Liganic <liganic-aur at gmx.net>
+_pkgname='cpplint'
+pkgname="python-${_pkgname}"
+pkgver='1.6.1'
+pkgrel=1
+pkgdesc="Command-line tool to check C/C++ files for style issues following Google's C++ style guide."
+arch=('any')
+url='https://github.com/cpplint/cpplint'
+license=('custom:BSD3')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-pytest-runner' 'python-pip' 'python-wheel')
+checkdepends=('python-pytest-flake8' 'python-pylint' 'python-importlib-metadata' 'python-tox' 'python-testfixtures'
+              'python-pytest' 'python-pytest-cov')
+provides=('cpplint' 'cpplint-py3')
+replaces=('cpplint-py3')
+conflicts=('cpplint')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+b2sums=('f3afaba6f8389e8d925e20d94cbcf1451d11b85ca7914b53f966c575a5be7a6b4eb7367f53e549644019ccd1f76eca61415f0c5997842cb5640ab5a7ba00c1de')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  # for some reason upstream insists on pytest-runner==5.2, remove
+  sed -e 's/pytest-runner==.*/pytest-runner"/' -i setup.py
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  PYTHONPATH=build/lib pytest  
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+
+  install -Dm644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list