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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 11:49:02 UTC 2021


    Date: Friday, December 3, 2021 @ 11:49:02
  Author: felixonmars
Revision: 1064766

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |  114 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 57 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-03 11:48:54 UTC (rev 1064765)
+++ PKGBUILD	2021-12-03 11:49:02 UTC (rev 1064766)
@@ -1,57 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pre-commit
-pkgver=2.16.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')
-source=("https://github.com/pre-commit/pre-commit/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('c9eb14a40e25e8408c2b2b5687eba4908d609bbb7bcf58a0153326696d272bca555156fd75f3ec5f0dec219aeeb4084df77f329f47cf190e40052c11e92fe185')
-
-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
-  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-staging-any/PKGBUILD (from rev 1064765, python-pre-commit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-03 11:49:02 UTC (rev 1064766)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pre-commit
+pkgver=2.16.0
+pkgrel=2
+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')
+source=("https://github.com/pre-commit/pre-commit/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c9eb14a40e25e8408c2b2b5687eba4908d609bbb7bcf58a0153326696d272bca555156fd75f3ec5f0dec219aeeb4084df77f329f47cf190e40052c11e92fe185')
+
+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
+  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