vp-build/srcpkgs/python3-GitPython/template

43 lines
1.6 KiB
Bash

# Template file for 'python3-GitPython'
pkgname=python3-GitPython
version=3.1.29
revision=2
build_style=python3-module
make_check_args="--deselect test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo
--deselect test/test_git.py::TestGit::test_refresh
--deselect test/test_remote.py::TestRemote::test_base
--deselect test/test_git.py::TestGit::test_call_process_calls_execute"
hostmakedepends="python3-setuptools"
depends="python3-gitdb git"
checkdepends="${depends} python3-pytest-sugar python3-coverage python3-pytest-cov python3-toml
python3-mypy flake8 python3-ddt git python3-virtualenv"
short_desc="Library to interact with Git repositories (Python3)"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="BSD-3-Clause"
homepage="https://github.com/gitpython-developers/GitPython"
changelog="https://raw.githubusercontent.com/gitpython-developers/GitPython/main/doc/source/changes.rst"
distfiles="https://github.com/gitpython-developers/GitPython/archive/refs/tags/${version}.tar.gz"
checksum=c199677d0920a514f4ce482993fc2fb7e6e45914c365f83e016835b2bd006430
post_install() {
vlicense LICENSE
}
pre_check() {
git clone https://github.com/gitpython-developers/GitPython GitPython-test-checkout
cd GitPython-test-checkout
git checkout ${version}
yes | ./init-tests-after-clone.sh
export GIT_PYTHON_TEST_GIT_REPO_BASE="${PWD}"
git config --global user.email "void@example.com"
git config --global user.name "void"
# Required due to tests doing stuff not allowed by default anymore due to a security vulnerability
git config --global protocol.file.allow always
}
post_check() {
rm ~/.gitconfig
}