# POWER Maintainer: Alexander Baldeck # Maintainer: David Runge # Contributor: NicoHood # Contributor: brent s. _name=gitpython pkgdesc="A python library used to interact with Git repositories" pkgname=python-gitpython pkgver=3.1.43 pkgrel=2 url="https://github.com/gitpython-developers/gitpython" license=(BSD-3-Clause) arch=(any) depends=( git python python-gitdb ) makedepends=( python-build python-installer python-setuptools python-wheel ) checkdepends=( python-ddt python-pytest python-pytest-mock ) source=("git+$url.git?signed#tag=$pkgver") sha512sums=('2204c41158630d501fa330f02474b57fd113d82ee5da972f95ab6fe69ae6c9bc477211ee751959d545c6eac9433bf50dbf81992d851af5b9904db3ca526cd742') b2sums=('39a404bbebad9fdded6d70dd1feb6ca8576d725b16e47bd92663601362402e12f27369ad9615d31fc7c41730f286dccf3a469a080874ec6d06ce0c4d591cd2ed') validpgpkeys=('27C50E7F590947D7273A741E85194C08421980C9') # Sebastian Thiel (In Rust I trust!) build() { cd $_name python -m build --wheel --no-isolation } check() { local deselected=( --deselect git/ext/gitdb/gitdb/test/db/test_git.py::TestGitDB::test_reading --deselect git/ext/gitdb/gitdb/test/db/test_ref.py::TestReferenceDB::test_writing --deselect git/ext/gitdb/gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_correctness --deselect git/ext/gitdb/gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_loose_correctness --deselect git/ext/gitdb/gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_pack_random_access --deselect git/ext/gitdb/gitdb/test/performance/test_pack_streaming.py::TestPackStreamingPerformance::test_pack_writing --deselect git/ext/gitdb/gitdb/test/performance/test_pack_streaming.py::TestPackStreamingPerformance::test_stream_reading --deselect git/ext/gitdb/gitdb/test/test_example.py::TestExamples::test_base --deselect test/test_submodule.py::TestSubmodule::test_git_submodules_and_add_sm_with_new_commit --deselect test/test_submodule.py::TestSubmodule::test_list_only_valid_submodules # https://github.com/gitpython-developers/GitPython/issues/1797 --ignore test/test_index.py ) cd $_name export TRAVIS="VERY CONVENIENT" git config --global user.name "Test User" git config --global user.email "test@user.org" ./init-tests-after-clone.sh PYTHONDONTWRITEBYTECODE=1 pytest -vv -c /dev/null "${deselected[@]}" } package() { cd $_name python -m installer --destdir="$pkgdir" dist/*.whl install -vDm 644 {AUTHORS,CHANGES,{CONTRIBUTING,README}.md} -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" }