python-packaging: split package
New package: python3-packaging-20.7
This commit is contained in:
parent
6002be4570
commit
fe9c2d01b5
4 changed files with 31 additions and 16 deletions
|
@ -1,29 +1,19 @@
|
||||||
# Template file for 'python-packaging'
|
# Template file for 'python-packaging'
|
||||||
pkgname=python-packaging
|
pkgname=python-packaging
|
||||||
version=20.4
|
version=20.4
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="packaging-${version}"
|
wrksrc="packaging-${version}"
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
pycompile_module="packaging"
|
hostmakedepends="python-setuptools"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
depends="python-parsing python-six"
|
||||||
depends="python-attrs python-parsing python-six"
|
|
||||||
short_desc="Core utilities for Python packages (Python2)"
|
short_desc="Core utilities for Python packages (Python2)"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
license="Apache-2.0, BSD-2-Clause"
|
license="Apache-2.0, BSD-2-Clause"
|
||||||
homepage="https://github.com/pypa/packaging"
|
homepage="https://github.com/pypa/packaging"
|
||||||
|
changelog="https://raw.githubusercontent.com/pypa/packaging/master/CHANGELOG.rst"
|
||||||
distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz"
|
||||||
checksum=4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8
|
checksum=4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-packaging_package() {
|
|
||||||
pycompile_module="packaging"
|
|
||||||
depends="python3-attrs python3-parsing python3-six"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/python3*
|
|
||||||
vlicense LICENSE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
3
srcpkgs/python-packaging/update
Normal file
3
srcpkgs/python-packaging/update
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# packaging >= 20.5 drops setuptools for flit, which is py3-only;
|
||||||
|
# prevent update hits on newer versions since they require py3 to build
|
||||||
|
pattern="packaging-\K20\.4(\.[0-9.]+)?(?=.tar.gz)"
|
|
@ -1 +0,0 @@
|
||||||
python-packaging
|
|
23
srcpkgs/python3-packaging/template
Normal file
23
srcpkgs/python3-packaging/template
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Template file for 'python3-packaging'
|
||||||
|
pkgname=python3-packaging
|
||||||
|
version=20.7
|
||||||
|
revision=1
|
||||||
|
wrksrc="packaging-${version}"
|
||||||
|
build_style=python3-pep517
|
||||||
|
hostmakedepends="python3-flit_core"
|
||||||
|
depends="python3-parsing"
|
||||||
|
checkdepends="python3-pytest"
|
||||||
|
short_desc="Core utilities for Python packages (Python3)"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="Apache-2.0, BSD-2-Clause"
|
||||||
|
homepage="https://github.com/pypa/packaging"
|
||||||
|
distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz"
|
||||||
|
checksum=05af3bb85d320377db281cf254ab050e1a7ebcbf5410685a9a407e18a1f81236
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
: provides no tests
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Reference in a new issue