Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-socksio
Commits: 51af86fc by Jelle van der Waa at 2023-12-30T14:22:22+01:00 Switch to PEP517 build system - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,17 @@ +pkgbase = python-socksio + pkgdesc = Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5 + pkgver = 1.0.0 + pkgrel = 3 + url = https://github.com/sethmlarson/socksio + arch = any + license = BSD + checkdepends = python-pytest-cov + makedepends = python-flit-core + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python + source = https://pypi.python.org/packages/source/s/socksio/socksio-1.0.0.tar.gz + sha256sums = f88beb3da5b5c38b9890469de67d0cb0f9d494b78b106ca1845f96c10b91c4ac + +pkgname = python-socksio ===================================== PKGBUILD ===================================== @@ -3,19 +3,25 @@ _pkgname=socksio pkgname=python-$_pkgname pkgver=1.0.0 -pkgrel=2 +pkgrel=3 pkgdesc='Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5' arch=(any) url='https://github.com/sethmlarson/socksio' license=(BSD) depends=(python) +makedepends=(python-flit-core python-build python-installer python-wheel) checkdepends=(python-pytest-cov) source=(https://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname/-/_}/${_pkgname/-/_}-${pkgver}.tar.gz) sha256sums=('f88beb3da5b5c38b9890469de67d0cb0f9d494b78b106ca1845f96c10b91c4ac') +prepare() { + cd $_pkgname-$pkgver + sed -i 's#>=2,<3##' pyproject.toml +} + build() { cd $_pkgname-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -25,6 +31,6 @@ check() { package() { cd $_pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-socksio/-/commit/51af86fc5e894614d41305e331ca295ebb87ee47 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-socksio/-/commit/51af86fc5e894614d41305e331ca295ebb87ee47 You're receiving this email because of your account on gitlab.archlinux.org.
