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

Frederik Schwan freswa at gemini.archlinux.org
Mon Apr 4 00:15:13 UTC 2022


    Date: Monday, April 4, 2022 @ 00:15:13
  Author: freswa
Revision: 1181145

archrelease: copy trunk to community-any

Added:
  python-pre-commit/repos/community-any/PKGBUILD
    (from rev 1181144, python-pre-commit/trunk/PKGBUILD)
Deleted:
  python-pre-commit/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  126 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 63 insertions(+), 63 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 00:15:09 UTC (rev 1181144)
+++ PKGBUILD	2022-04-04 00:15:13 UTC (rev 1181145)
@@ -1,63 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pre-commit
-pkgver=2.17.0
-pkgrel=1
-pkgdesc="A framework for managing and maintaining multi-language pre-commit hooks"
-url="https://github.com/pre-commit/pre-commit"
-license=('MIT')
-arch=('any')
-depends=('python-cfgv' 'python-identify' 'python-nodeenv' 'python-yaml' 'python-toml'
-         'python-virtualenv')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-env' 'python-re-assert' 'dotnet-sdk' 'git'
-              'go' 'nodejs' 'npm' 'python2' 'rubygems' 'rust' 'r' 'dart' 'luarocks')
-source=("https://github.com/pre-commit/pre-commit/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('54b5af9088083ad0c57fab09c06c35bd5921b29348454fc8fc16081d3c6a2e0add13f8a18f06b7408a0e06babc5e15659b37ab53797edd3514d516059e2343a8')
-
-build() {
-  cd pre-commit-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd pre-commit-$pkgver
-  git init
-  git config user.email "pony at arch"
-  git config user.name "Lucky Pony"
-  export GIT_AUTHOR_NAME="Lucky Pony"
-  export GIT_COMMITTER_NAME="Lucky Pony"
-  export GIT_AUTHOR_EMAIL="pony at arch"
-  export GIT_COMMITTER_EMAIL="pony at arch"
-  export VIRTUALENV_NO_DOWNLOAD=1
-  export PRE_COMMIT_NO_CONCURRENCY=1
-
-  # Empty venv so that `importlib` picks up the local "pre-commit" package
-  python -m venv --system-site-packages venv
-  source "$PWD/venv/bin/activate"
-  python setup.py develop
-
-  # Deselect conda because we don't have it!
-  # test_install_ruby_with_version,test_run_a_ruby_hook: https://github.com/pre-commit/pre-commit/issues/1368
-  python -m pytest --deselect tests/repository_test.py::test_conda_hook \
-                   --deselect tests/repository_test.py::test_conda_with_additional_dependencies_hook \
-                   --deselect tests/repository_test.py::test_local_conda_additional_dependencies \
-                   --deselect tests/repository_test.py::test_run_a_ruby_hook \
-                   --deselect tests/languages/ruby_test.py::test_install_ruby_with_version \
-                   --deselect tests/repository_test.py::test_switch_language_versions_doesnt_clobber \
-                   --deselect tests/repository_test.py::test_dotnet_hook \
-                   --deselect tests/repository_test.py::test_run_versioned_ruby_hook \
-                   --deselect tests/repository_test.py::test_run_ruby_hook_with_disable_shared_gems \
-                   --deselect tests/repository_test.py::test_golang_hook \
-                   --deselect tests/repository_test.py::test_golang_hook_still_works_when_gobin_is_set \
-                   --deselect tests/repository_test.py::test_additional_golang_dependencies_installed \
-                   --deselect tests/repository_test.py::test_local_golang_additional_dependencies
-  deactivate
-}
-
-package() {
-  cd pre-commit-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-pre-commit/repos/community-any/PKGBUILD (from rev 1181144, python-pre-commit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-04 00:15:13 UTC (rev 1181145)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pre-commit
+pkgver=2.18.1
+pkgrel=1
+pkgdesc="A framework for managing and maintaining multi-language pre-commit hooks"
+url="https://github.com/pre-commit/pre-commit"
+license=('MIT')
+arch=('any')
+depends=('python-cfgv' 'python-identify' 'python-nodeenv' 'python-yaml' 'python-toml'
+         'python-virtualenv')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-env' 'python-re-assert' 'dotnet-sdk' 'git'
+              'go' 'nodejs' 'npm' 'python2' 'rubygems' 'rust' 'r' 'dart' 'luarocks')
+source=("https://github.com/pre-commit/pre-commit/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('38ad176675b40eb4fd2475e51f3079cff5d84733401592a8a00021cba6656f01a38c5835298db50607fd8d188728c127600c731795fbc149436a5e4aada94fc1')
+
+build() {
+  cd pre-commit-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pre-commit-$pkgver
+  git init
+  git config user.email "pony at arch"
+  git config user.name "Lucky Pony"
+  export GIT_AUTHOR_NAME="Lucky Pony"
+  export GIT_COMMITTER_NAME="Lucky Pony"
+  export GIT_AUTHOR_EMAIL="pony at arch"
+  export GIT_COMMITTER_EMAIL="pony at arch"
+  export VIRTUALENV_NO_DOWNLOAD=1
+  export PRE_COMMIT_NO_CONCURRENCY=1
+
+  # Empty venv so that `importlib` picks up the local "pre-commit" package
+  python -m venv --system-site-packages venv
+  source "$PWD/venv/bin/activate"
+  python setup.py develop
+
+  # Deselect conda because we don't have it!
+  # test_install_ruby_with_version,test_run_a_ruby_hook: https://github.com/pre-commit/pre-commit/issues/1368
+  python -m pytest --deselect tests/repository_test.py::test_conda_hook \
+                   --deselect tests/repository_test.py::test_conda_with_additional_dependencies_hook \
+                   --deselect tests/repository_test.py::test_local_conda_additional_dependencies \
+                   --deselect tests/repository_test.py::test_run_a_ruby_hook \
+                   --deselect tests/languages/ruby_test.py::test_install_ruby_with_version \
+                   --deselect tests/repository_test.py::test_switch_language_versions_doesnt_clobber \
+                   --deselect tests/repository_test.py::test_dotnet_hook \
+                   --deselect tests/repository_test.py::test_run_versioned_ruby_hook \
+                   --deselect tests/repository_test.py::test_run_ruby_hook_with_disable_shared_gems \
+                   --deselect tests/repository_test.py::test_golang_hook \
+                   --deselect tests/repository_test.py::test_golang_hook_still_works_when_gobin_is_set \
+                   --deselect tests/repository_test.py::test_additional_golang_dependencies_installed \
+                   --deselect tests/repository_test.py::test_local_golang_additional_dependencies
+  deactivate
+}
+
+package() {
+  cd pre-commit-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list