mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
community/py3-*: move from main/ and modernize
This commit is contained in:
parent
aad758e364
commit
aad2afe051
@ -17,17 +17,14 @@ replaces="py-argparse" # Backwards compatibility
|
||||
provides="py-argparse=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -16,17 +16,14 @@ replaces="py-asn1-modules" # Backwards compatibility
|
||||
provides="py-asn1-modules=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -17,12 +17,10 @@ replaces="py-dateutil" # Backwards compatibility
|
||||
provides="py-dateutil=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -23,12 +23,10 @@ prepare() {
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -16,12 +16,10 @@ source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -15,12 +15,10 @@ replaces="py-incremental" # Backwards compatibility
|
||||
provides="py-incremental=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -17,7 +17,6 @@ replaces="py-ipaddress" # Backwards compatibility
|
||||
provides="py-ipaddress=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
@ -17,12 +17,10 @@ replaces="py-itsdangerous" # Backwards compatibility
|
||||
provides="py-itsdangerous=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -21,17 +21,14 @@ replaces="py-jwt" # Backwards compatibility
|
||||
provides="py-jwt=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 -m pytest .
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -17,17 +17,14 @@ replaces="py-libvirt" # Backwards compatibility
|
||||
provides="py-libvirt=$pkgver" # Backwards compatibility
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py check
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -17,17 +17,14 @@ replaces="py-munkres" # Backwards compatibility
|
||||
provides="py-munkres=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -17,17 +17,14 @@ replaces="py-oauth2" # Bakcwards compatibility
|
||||
provides="py-oauth2=$pkgver-r$pkgrel" # Bakcwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
|
||||
# Tests don't need to be installed
|
||||
@ -7,7 +7,7 @@ pkgdesc="A client library for OAuth 2.0"
|
||||
options="!check" # Requires 'sqlalchemy' , 'fasteners' and 'flask'
|
||||
url="https://github.com/google/oauth2client"
|
||||
arch="noarch"
|
||||
license="Apache"
|
||||
license="Apache-2.0"
|
||||
depends="python3 py3-asn1 py3-httplib2 py3-asn1-modules py3-rsa py3-six"
|
||||
makedepends="py3-setuptools"
|
||||
checkdepends="py3-mock py3-openssl py3-django"
|
||||
@ -18,17 +18,14 @@ replaces="py-oauth2client" # Backwards compatibility
|
||||
provides="py-oauth2client=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -19,17 +19,14 @@ replaces="py-oauthlib" # Backwards compatibility
|
||||
provides="py-oauthlib=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -20,12 +20,10 @@ replaces="py-purl" # Backwards compatibility
|
||||
provides="py-purl=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -17,12 +17,10 @@ replaces="py-redis" # Backwards compatibility
|
||||
provides="py-redis=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
redis-server --dir "$builddir"&
|
||||
local _redispid=$!
|
||||
|
||||
@ -17,12 +17,10 @@ replaces="py-rsa" # Backwards compatibility
|
||||
provides="py-rsa=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -14,12 +14,10 @@ source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
}
|
||||
|
||||
@ -13,17 +13,14 @@ source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
|
||||
# Add version suffix to executable files.
|
||||
@ -15,17 +15,14 @@ replaces="py-vobject" # Backwards compatibility
|
||||
provides="py-vobject=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 tests.py
|
||||
}
|
||||
|
||||
@ -21,12 +21,10 @@ replaces="py-wtforms" # Backwards compatibility
|
||||
provides="py-wtforms=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user