[arch-commits] Commit in python-pre-commit/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Feb 8 21:43:05 UTC 2021
Date: Monday, February 8, 2021 @ 21:43:04
Author: felixonmars
Revision: 850337
archrelease: copy trunk to community-any
Added:
python-pre-commit/repos/community-any/PKGBUILD
(from rev 850336, python-pre-commit/trunk/PKGBUILD)
Deleted:
python-pre-commit/repos/community-any/PKGBUILD
----------+
PKGBUILD | 112 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 56 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-08 21:42:49 UTC (rev 850336)
+++ PKGBUILD 2021-02-08 21:43:04 UTC (rev 850337)
@@ -1,56 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pre-commit
-pkgver=2.10.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-re-assert' 'dotnet-sdk' 'git' 'go' 'nodejs' 'npm' 'python2' 'rubygems' 'rust')
-source=("https://github.com/pre-commit/pre-commit/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('9a9003232d2f74e0b52c190c65286b5ef5ebf32b50ab26d48fd83c55f4ebbab3d71b05a633801eee97afbc0f3d605b2b2eacc6d469a0643313ff1a2132d746cd')
-
-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
-
- 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 850336, python-pre-commit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-08 21:43:04 UTC (rev 850337)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pre-commit
+pkgver=2.10.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-re-assert' 'dotnet-sdk' 'git' 'go' 'nodejs' 'npm' 'python2' 'rubygems' 'rust')
+source=("https://github.com/pre-commit/pre-commit/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b8bc4e6f9afd1a0cc251c8b6ffb96e5fba4f02a6e253661b295e36a6e691c4a9a0a6cc5560b53b57b0200a55fc54a60c3400e780c3a6b73b9e17f7eac4c0ce78')
+
+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
+
+ 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