Skip to content
Snippets Groups Projects
Commit 16140b4d authored by omni's avatar omni Committed by Natanael Copa
Browse files

testing/sshuttle: upgrade to 1.1.2 & switch to gpep517

- enable tests
- add manpage
parent 4322b6a2
No related branches found
No related tags found
1 merge request!67514testing/sshuttle: upgrade to 1.1.2 & switch to gpep517
Pipeline #240819 skipped
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sshuttle
pkgver=1.1.1
pkgrel=2
pkgver=1.1.2
pkgrel=0
pkgdesc="Transparent proxy server using ssh"
url="https://github.com/sshuttle/sshuttle"
arch="noarch"
license="GPL-2.0-only"
depends="python3 py3-psutil"
makedepends="py3-setuptools"
makedepends="py3-gpep517 py3-poetry-core py3-setuptools py3-sphinx py3-wheel"
checkdepends="py3-pytest py3-pytest-cov py3-mock py3-flake8"
options="!check" # TODO: fix testsuite
subpackages="$pkgname-pyc"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/sshuttle/sshuttle/archive/v$pkgver/sshuttle-$pkgver.tar.gz"
build() {
echo "version = '$pkgver'" > sshuttle/version.py
python3 setup.py build
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
cd docs && make man
}
check() {
python3 setup.py test
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" .dist/*.whl
install -Dm0644 -t "$pkgdir"/usr/share/man/man1/ docs/_build/man/*.1
}
sha512sums="
4f670bee34653e47cf7a0c8550b2ac734230ccf0d4fb6191ae3a0c6404847c788c3cdf033bc1571f49472729029077aa6d6970f4bce78fa4980f1f29ccbd2f7a sshuttle-1.1.1.tar.gz
c24a6490c1877b9ded8f5f4f44571953c4c204c33f0238c709ca32c7a581ddc919bfc48beb4fafd3a4d346cccd9b02dc7051b6233ff989a0ad329d55c1c5ec47 sshuttle-1.1.2.tar.gz
"
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