Date: Wednesday, January 19, 2022 @ 00:06:07 Author: freswa Revision: 1110222
archrelease: copy trunk to community-any Added: python-pre-commit/repos/community-any/PKGBUILD (from rev 1110221, python-pre-commit/trunk/PKGBUILD) Deleted: python-pre-commit/repos/community-any/PKGBUILD ----------+ PKGBUILD | 120 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 63 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-01-19 00:06:03 UTC (rev 1110221) +++ PKGBUILD 2022-01-19 00:06:07 UTC (rev 1110222) @@ -1,57 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@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@arch" - git config user.name "Lucky Pony" - export GIT_AUTHOR_NAME="Lucky Pony" - export GIT_COMMITTER_NAME="Lucky Pony" - export GIT_AUTHOR_EMAIL="pony@arch" - export GIT_COMMITTER_EMAIL="pony@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-any/PKGBUILD (from rev 1110221, python-pre-commit/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-01-19 00:06:07 UTC (rev 1110222) @@ -0,0 +1,63 @@ +# Maintainer: Felix Yan <felixonm...@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@arch" + git config user.name "Lucky Pony" + export GIT_AUTHOR_NAME="Lucky Pony" + export GIT_COMMITTER_NAME="Lucky Pony" + export GIT_AUTHOR_EMAIL="pony@arch" + export GIT_COMMITTER_EMAIL="pony@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/ +}