Skip to content
Snippets Groups Projects
Commit 5158028a authored by Felix Yan's avatar Felix Yan
Browse files

upgpkg: 4.2.0-2

parent 24042a91
No related branches found
No related tags found
No related merge requests found
......@@ -2,32 +2,30 @@
pkgname=python-jaraco.context
pkgver=4.2.0
pkgrel=1
_commit=5bf0042ef434aa8924a771a405ae29e4c0110c1e
pkgrel=2
pkgdesc="Context managers by jaraco"
url="https://github.com/jaraco/jaraco.context"
license=('MIT')
arch=('any')
depends=('python')
makedepends=('python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
makedepends=('git' 'python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("https://github.com/jaraco/jaraco.context/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('3e4dcff86c02e4a297c3e26180c07a5c58375713f878c490f5908ef373f1126ea353ca3009befee0233269570f260476182833310f8437f37d58a58be1aaf480')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
source=("git+https://github.com/jaraco/jaraco.context.git#commit=$_commit")
sha512sums=('SKIP')
build() {
cd jaraco.context-$pkgver
cd jaraco.context
python -m build -wn
}
check() {
cd jaraco.context-$pkgver
cd jaraco.context
python -m pytest
}
package() {
cd jaraco.context-$pkgver
cd jaraco.context
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment