Skip to content

Commit

Permalink
python-packaging: split package
Browse files Browse the repository at this point in the history
New package: python3-packaging-20.7
  • Loading branch information
ahesford committed Dec 6, 2020
1 parent 11c2249 commit e056782
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 16 deletions.
20 changes: 5 additions & 15 deletions srcpkgs/python-packaging/template
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
# Template file for 'python-packaging'
pkgname=python-packaging
version=20.4
revision=1
revision=2
wrksrc="packaging-${version}"
build_style=python-module
pycompile_module="packaging"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-attrs python-parsing python-six"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-parsing python-six"
short_desc="Core utilities for Python packages (Python2)"
maintainer="Alessio Sergi <[email protected]>"
license="Apache-2.0, BSD-2-Clause"
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"
checksum=4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8

post_install() {
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 changes: 3 additions & 0 deletions srcpkgs/python-packaging/update
Original file line number Diff line number Diff line change
@@ -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 change: 0 additions & 1 deletion srcpkgs/python3-packaging

This file was deleted.

23 changes: 23 additions & 0 deletions srcpkgs/python3-packaging/template
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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
}

0 comments on commit e056782

Please sign in to comment.