mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-11 16:51:54 +02:00
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
# Contributor: Celeste <cielesti@protonmail.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=lastversion
|
|
pkgver=3.3.2
|
|
pkgrel=0
|
|
pkgdesc="CLI tool to find the latest stable version of a project"
|
|
url="https://lastversion.getpagespeed.com/"
|
|
arch="noarch"
|
|
license="BSD-2-Clause"
|
|
depends="
|
|
py3-appdirs
|
|
py3-beautifulsoup4
|
|
py3-cachecontrol
|
|
py3-dateutil
|
|
py3-distro
|
|
py3-feedparser
|
|
py3-filelock
|
|
py3-packaging
|
|
py3-requests
|
|
py3-tqdm
|
|
py3-urllib3
|
|
py3-yaml
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
options="net" # tests require network access
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/dvershinin/lastversion/archive/v$pkgver/lastversion-$pkgver.tar.gz
|
|
fix-setuptools-deprecation.patch
|
|
remove-py3-six.patch
|
|
"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
|
|
# Running the ignored tests will exceed Github's
|
|
# API rate limit for unauthenticated requests
|
|
PATH="$builddir/.testenv/bin:$PATH" \
|
|
.testenv/bin/python3 -m pytest \
|
|
--ignore tests/test_github.py \
|
|
--ignore tests/test_lastversion.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f53d737fbe8a1aa9f660b4d145b54e016a5a0aa44ea02802f4a3f09d6b538b54c2d27274c3053b4cc14bf8fe8c0742c65d7d867836626a734d4ed7ced0819fa5 lastversion-3.3.2.tar.gz
|
|
ab26caa604fa0943014f7bf8ddb78fc08485dfafb301e80dd496457590228888364013eddcc2026cd67989db03bee76189f695aaf37469b90770ac324507bf4c fix-setuptools-deprecation.patch
|
|
bcd2c5dab959571f7a27dd8b2087ae7cb08056b933b758cbd2d72a791bd92db003fc48b3636ffa61b1213f5c47731ffd9a921c60f13b5bd6afa4e3a0a8b8704a remove-py3-six.patch
|
|
"
|