Add python-hatchling and update python-iniconfig

iniconfig 2.0 uses hatchling as a build backend, so add
hatchling and all required dependencies
This commit is contained in:
Christoph Reiter 2023-02-12 19:06:00 +01:00
parent 5c7e853df2
commit c6632b74bf
5 changed files with 145 additions and 11 deletions

31
python-editables/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=editables
pkgname=python-editables
pkgver=0.3
pkgrel=1
pkgdesc='A Python library for creating editable wheels'
arch=(any)
url='https://github.com/pfmoore/editables'
license=('spdx:MIT')
depends=('python')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=(https://github.com/pfmoore/editables/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('42f7240164af1e028ccb7b60e72f54bbd8b639e9409595fbeffac5d3fb610643')
build() {
cd $_pyname-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_pyname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
}

34
python-hatch-vcs/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=hatch-vcs
pkgname=python-hatch-vcs
pkgver=0.3.0
pkgrel=2
pkgdesc="Hatch plugin for versioning with your preferred VCS"
url="https://github.com/ofek/hatch-vcs"
license=('spdx:MIT')
arch=('any')
depends=(
'python-hatchling'
'python-setuptools-scm'
)
makedepends=(
'python-build'
'python-installer'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname/-/_}-${pkgver}.tar.gz")
sha256sums=('cec5107cfce482c67f8bc96f18bbc320c9aa0d068180e14ad317bbee5a153fee')
build() {
cd "${_pyname/-/_}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pyname/-/_}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}

40
python-hatchling/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=hatchling
pkgname=python-hatchling
pkgver=1.13.0
pkgrel=1
pkgdesc="A modern project, package, and virtual env manager (backend)"
arch=('any')
url="https://github.com/pypa/hatch"
license=('spdx:MIT')
depends=(
'python'
'python-tomli'
'python-packaging'
'python-pathspec'
'python-pluggy'
'python-editables'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('f8d275a2cc720735286b7c2e2bc35da05761e6d3695c2fa416550395f10c53c7')
build() {
cd "${_pyname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pyname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}

View File

@ -1,33 +1,32 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=iniconfig
pkgname=python-iniconfig
pkgver=1.1.1
pkgrel=4
pkgver=2.0.0
pkgrel=1
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/pytest-dev/iniconfig"
license=('spdx:MIT')
arch=('any')
depends=('python')
makedepends=(
'python-setuptools'
'python-setuptools-scm'
'python-wheel'
'python-hatchling'
'python-hatch-vcs'
'python-build'
'python-installer'
)
source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
sha256sums=('a4489e91242e035cb58700d9a3c4bf49e0b106a85fefefe48025e333ea5ee49c')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
source=("$_pyname-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
sha256sums=('ee33adf27310b0fc9b41abc504ca95925083762bcd7bec28cdbaf42fb215bcb3')
build() {
cd "$srcdir"/iniconfig-$pkgver
cd "$srcdir/$_pyname-$pkgver"
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd iniconfig-$pkgver
cd "$_pyname-$pkgver"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE

30
python-pathspec/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_name=pathspec
pkgname=python-pathspec
pkgver=0.11.0
pkgrel=1
pkgdesc='Utility library for gitignore style pattern matching of file paths'
arch=('any')
url=https://github.com/cpburnz/python-pathspec
license=('spdx: MPL-2.0')
depends=('python')
makedepends=(
'python-build'
'python-flit-core'
'python-installer'
'python-wheel'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('64d338d4e0914e91c1792321e6907b5a593f1ab1851de7fc269557a21b30ebbc')
build() {
cd "$_name-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}