Date: Tuesday, February 2, 2021 @ 16:58:26 Author: felixonmars Revision: 841238
archrelease: copy trunk to community-any Added: python-pre-commit/repos/community-any/PKGBUILD (from rev 841237, python-pre-commit/trunk/PKGBUILD) Deleted: python-pre-commit/repos/community-any/PKGBUILD ----------+ PKGBUILD | 114 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 57 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-02-02 16:58:14 UTC (rev 841237) +++ PKGBUILD 2021-02-02 16:58:26 UTC (rev 841238) @@ -1,57 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-pre-commit -pkgver=2.8.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-runner' '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" - pre-commit-pythonpath-fix.patch::https://github.com/pre-commit/pre-commit/pull/1369.patch) -sha512sums=('0f8a5bb0254b8caa9921d1bd93eca5cbc5d2b750712c8f4d4f4b56744515c4e0c47d6fbe20aa84fbcb60cab3c5ff568cbdcc3fb1829074438088e009474a1429' - '9bafce326138c5e7a5b73a2fd10ac8b3dec2fae4eed93224210cb6f466effa2074dc3dbadeb16d997319b4e2f58f6fef47e05877fbfd06296f6868a4265b0fa7') - -prepare() { - cd pre-commit-$pkgver - patch -p1 -i ../pre-commit-pythonpath-fix.patch -} - -build() { - cd pre-commit-$pkgver - python setup.py build -} - -check() { - cd pre-commit-$pkgver - git config --global user.email "pony@arch" - git config --global user.name "Lucky Pony" - git init - 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 - - # Deselect conda because we don't have it! - # test_run_a_ruby_hook: https://github.com/pre-commit/pre-commit/issues/1368 - # test_local_golang_additional_dependencies: https://github.com/pre-commit/pre-commit/pull/1769 - python setup.py pytest --addopts "--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/repository_test.py::test_switch_language_versions_doesnt_clobber \ - --deselect tests/repository_test.py::test_local_golang_additional_dependencies" -} - -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 841237, python-pre-commit/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-02-02 16:58:26 UTC (rev 841238) @@ -0,0 +1,57 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-pre-commit +pkgver=2.8.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-runner' '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" + pre-commit-pythonpath-fix.patch::https://github.com/pre-commit/pre-commit/pull/1369.patch) +sha512sums=('ac9ab201f9b83478a49daf7bfdb3b51a49b4046b5ae1b0e324e909834d8e42d85bbeb1871189abe22c500786e4a91d5b3ddf6aa01bd51d7e3cb1f02a4c667bf8' + '9bafce326138c5e7a5b73a2fd10ac8b3dec2fae4eed93224210cb6f466effa2074dc3dbadeb16d997319b4e2f58f6fef47e05877fbfd06296f6868a4265b0fa7') + +prepare() { + cd pre-commit-$pkgver + patch -p1 -i ../pre-commit-pythonpath-fix.patch +} + +build() { + cd pre-commit-$pkgver + python setup.py build +} + +check() { + cd pre-commit-$pkgver + git config --global user.email "pony@arch" + git config --global user.name "Lucky Pony" + git init + 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 + + # Deselect conda because we don't have it! + # test_run_a_ruby_hook: https://github.com/pre-commit/pre-commit/issues/1368 + # test_local_golang_additional_dependencies: https://github.com/pre-commit/pre-commit/pull/1769 + python setup.py pytest --addopts "--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/repository_test.py::test_switch_language_versions_doesnt_clobber \ + --deselect tests/repository_test.py::test_local_golang_additional_dependencies" +} + +package() { + cd pre-commit-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}