| Name |
python-packaging |
| Description |
Core utilities for Python packages |
| Version |
26.0-1 |
| Package Base |
python-packaging |
| Homepage |
https://github.com/pypa/packaging |
| Maintainers |
['Felix Yan <felixonmars@archlinux.org>', 'George Rawlinson <grawlinson@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/python-packaging |
| Sources |
['https://github.com/pypa/packaging/archive/26.0/python-packaging-26.0.tar.gz'] |
| Dependencies |
['python'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['python-build', 'python-flit-core', 'python-installer'] |
| Provides |
[] |
| Builddate |
20-01-2026 21:55:14 |
| Architecture |
any |
| Distro-Version |
|
| Licenses |
['Apache-2.0'] |
| Hash |
f2ce75a28532bba646074914661b3e88fb39ff7224c498f48bc46f5ebaa21820 |
# Maintainer: Felix Yan <felixonmars@archlinux.org>
_bootstrap=0
_bootstrap_version=3.14.0
pkgname=python-packaging
_name=${pkgname#python-}
pkgver=26.0
pkgrel=1
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
license=('Apache-2.0')
depends=('python')
if (( _bootstrap == 0 )); then
makedepends=(
'python-build'
'python-flit-core'
'python-installer'
)
else
makedepends=('git')
fi
checkdepends=('python-pytest' 'python-pretend' 'python-tomli-w')
if (( _bootstrap == 0 )); then
source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
else
source=(
python-bootstrap::git+https://gitlab.archlinux.org/archlinux/python-bootstrap.git#tag=$_bootstrap_version
python-build::git+https://github.com/pypa/build.git
python-flit::git+https://github.com/pypa/flit.git
python-installer::git+https://github.com/pypa/installer.git
python-wheel::git+https://github.com/pypa/wheel.git
python-packaging::git+https://github.com/pypa/packaging
python-pyproject-hooks::git+https://github.com/pypa/pyproject-hooks
python-setuptools::git+https://github.com/pypa/setuptools.git
)
fi
sha512sums=('9c96b3f70e483af3812a859de217e58e07cc48210cfb3b7e64fbc3118bd7c53c39e9f5f33d13f532a4e0ce4c208bed58c64ed5ea16390371f3480706d72a9011')
prepare() {
if (( _bootstrap == 0 )); then
cd $_name-$pkgver
else
cd python-bootstrap
git submodule init
git config submodule."external/build".url ../python-build
git config submodule."external/flit".url ../python-flit
git config submodule."external/installer".url ../python-installer
git config submodule."external/wheel".url ../python-wheel
git config submodule."external/packaging".url ../python-packaging
git config submodule."external/pyproject-hooks".url ../python-pyproject-hooks
git config submodule."external/setuptools".url ../python-setuptools
git -c protocol.file.allow=always submodule update
git submodule update --init --recursive
fi
}
build() {
if (( _bootstrap == 0 )); then
cd $_name-$pkgver
python -m build -wn --skip-dependency-check
else
cd python-bootstrap
python -m bootstrap.build
fi
}
check() {
cd packaging-$pkgver
PYTHONPATH=src pytest
}
package() {
if (( _bootstrap == 0 )); then
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
else
cd python-bootstrap
python -m bootstrap.install dist/$_name-*-py3-none-any.whl -d "$pkgdir"
fi
}