Browse Source

[trunk] -> [community] 'python-gitpython-3.1.27-1' add

master
artoo 3 months ago
parent
commit
1d1db48f7e
  1. 41
      trunk/PKGBUILD
  2. 41
      x86_64/community/PKGBUILD

41
trunk/PKGBUILD

@ -5,44 +5,37 @@
_name=gitpython
pkgdesc="A python library used to interact with Git repositories"
pkgname=python-gitpython
pkgver=3.1.24
pkgrel=3
_commit=d438e088278f2df10b3c38bd635d7207cb7548a6 # refs/tags/3.1.27^{}
pkgver=3.1.27
pkgrel=1
url="https://github.com/gitpython-developers/gitpython"
license=('BSD')
arch=('any')
depends=('git' 'python-gitdb')
makedepends=('python-setuptools')
checkdepends=('python-ddt' 'python-nose' 'python-pytest' 'python-virtualenv')
source=("git+https://github.com/gitpython-developers/gitpython.git#tag=${pkgver}?signed")
license=(BSD)
arch=(any)
depends=(git python-gitdb)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-ddt python-nose python-pytest python-virtualenv)
source=(git+$url#commit=$_commit?signed)
sha512sums=('SKIP')
b2sums=('SKIP')
validpgpkeys=('27C50E7F590947D7273A741E85194C08421980C9') # Sebastian Thiel (In Rust I trust!) <byronimo@gmail.com>
prepare() {
# create empty dummy pytest config so that we can deselect all implicit settings
touch pytest.ini
cd "${_name}"
}
build() {
cd "${_name}"
python setup.py build
cd $_name
python -m build --wheel --no-isolation
}
check() {
cd "${_name}"
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 -v -c ../pytest.ini \
-k "not test_base and not test_reading and not test_writing"
PYTHONDONTWRITEBYTECODE=1 pytest -v -c /dev/null -k "not test_base and not test_reading and not test_writing"
}
package() {
cd "${_name}"
python setup.py install --optimize=1 --root="${pkgdir}"
install -vDm 644 {AUTHORS,CHANGES,{CONTRIBUTING,README}.md} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
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/"
}

41
x86_64/community/PKGBUILD

@ -5,44 +5,37 @@
_name=gitpython
pkgdesc="A python library used to interact with Git repositories"
pkgname=python-gitpython
pkgver=3.1.24
pkgrel=3
_commit=d438e088278f2df10b3c38bd635d7207cb7548a6 # refs/tags/3.1.27^{}
pkgver=3.1.27
pkgrel=1
url="https://github.com/gitpython-developers/gitpython"
license=('BSD')
arch=('any')
depends=('git' 'python-gitdb')
makedepends=('python-setuptools')
checkdepends=('python-ddt' 'python-nose' 'python-pytest' 'python-virtualenv')
source=("git+https://github.com/gitpython-developers/gitpython.git#tag=${pkgver}?signed")
license=(BSD)
arch=(any)
depends=(git python-gitdb)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-ddt python-nose python-pytest python-virtualenv)
source=(git+$url#commit=$_commit?signed)
sha512sums=('SKIP')
b2sums=('SKIP')
validpgpkeys=('27C50E7F590947D7273A741E85194C08421980C9') # Sebastian Thiel (In Rust I trust!) <byronimo@gmail.com>
prepare() {
# create empty dummy pytest config so that we can deselect all implicit settings
touch pytest.ini
cd "${_name}"
}
build() {
cd "${_name}"
python setup.py build
cd $_name
python -m build --wheel --no-isolation
}
check() {
cd "${_name}"
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 -v -c ../pytest.ini \
-k "not test_base and not test_reading and not test_writing"
PYTHONDONTWRITEBYTECODE=1 pytest -v -c /dev/null -k "not test_base and not test_reading and not test_writing"
}
package() {
cd "${_name}"
python setup.py install --optimize=1 --root="${pkgdir}"
install -vDm 644 {AUTHORS,CHANGES,{CONTRIBUTING,README}.md} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
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/"
}

Loading…
Cancel
Save