Compare commits
2
Commits
025abc44cd
...
e08e2ae5af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e08e2ae5af | ||
|
|
5e2763ce18 |
@@ -49,3 +49,5 @@ after `build` and `installer`:
|
||||
- `setuptools-scm` -> `pluggy`
|
||||
- `calver` -> `trove-classifiers`
|
||||
- `editables` + `pathspec` + `pluggy` + `trove-classifiers` -> `hatchling`
|
||||
- `hatchling` -> `hatch-vcs`
|
||||
- `iniconfig` + `pluggy` + `setuptools-scm` -> `pytest`
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
pkgname=iniconfig
|
||||
pkgver=2.1.0
|
||||
pkgdesc="brain-dead simple config-ini parsing"
|
||||
homepage="https://github.com/RonnyPfannschmidt/iniconfig"
|
||||
license=('MIT')
|
||||
arch=('any')
|
||||
sources=("${pkgname/-/_}-${pkgver}.tar.gz")
|
||||
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
|
||||
md5sums=("437ede5b20b0ab2e76ca08f02b5c49dd")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
# check need pytest, but iniconfig is needed by pytest
|
||||
|
||||
src_install() {
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
pkgname=pytest
|
||||
pkgver=8.4.1
|
||||
pkgdesc="Simple powerful testing with Python"
|
||||
arch=(any)
|
||||
homepage=https://docs.pytest.org
|
||||
license=(MIT)
|
||||
sources=("${pkgname/-/_}-${pkgver}.tar.gz")
|
||||
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
|
||||
md5sums=("ac7dfc1b6d681ee9ff65f94d65a6a5a1")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
#sed -i '/calver/s/^/#/;$iversion="${pkgver}"' setup.py
|
||||
}
|
||||
|
||||
src_build() {
|
||||
python -m build --wheel --no-isolation --skip-dependency-check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
||||
ln -s "$site_packages"/"$pkgname"-$pkgver.dist-info/licenses/LICENSE \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
||||
Reference in New Issue
Block a user