* update python-flit-core to 3.10.1-3
This commit is contained in:
parent
b38a380140
commit
96aae3efea
18
python/python-flit-core/.SRCINFO
Normal file
18
python/python-flit-core/.SRCINFO
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
pkgbase = python-flit-core
|
||||||
|
pkgdesc = A PEP 517 build backend for packages using Flit
|
||||||
|
pkgver = 3.10.1
|
||||||
|
pkgrel = 3
|
||||||
|
url = https://github.com/pypa/flit/tree/main/flit_core
|
||||||
|
arch = any
|
||||||
|
groups = python-build-backend
|
||||||
|
license = BSD-3-Clause
|
||||||
|
checkdepends = python-pytest
|
||||||
|
checkdepends = python-testpath
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
|
depends = python
|
||||||
|
source = flit-3.10.1.tar.gz::https://github.com/pypa/flit/archive/refs/tags/3.10.1.tar.gz
|
||||||
|
sha512sums = 51f797f480102fe89cd69f3fbd91c614b2390a37659c589622f2c7938cc64bc223f710e07365766159b6833d7afdafef4461a92667b6e3ae786df5137a877ee1
|
||||||
|
b2sums = c69769b27da424c361a419a69ed21587bc11b8c256450f4546dd49015894995286edb7bfd18105de15af1ce1cc8d427746bd258aa08f3b64a2192ae3a1863ee0
|
||||||
|
|
||||||
|
pkgname = python-flit-core
|
3
python/python-flit-core/.nvchecker.toml
Normal file
3
python/python-flit-core/.nvchecker.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[python-flit-core]
|
||||||
|
source = "git"
|
||||||
|
git = "https://github.com/pypa/flit.git"
|
@ -1,11 +1,13 @@
|
|||||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||||
# Maintainer: David Runge <dvzrv@archlinux.org>
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
||||||
|
|
||||||
|
_bootstrap=0
|
||||||
|
_bootstrap_version=3.13.0
|
||||||
_parent_name=flit
|
_parent_name=flit
|
||||||
_name=flit_core
|
_name=flit_core
|
||||||
pkgname=python-flit-core
|
pkgname=python-flit-core
|
||||||
pkgver=3.9.0
|
pkgver=3.10.1
|
||||||
pkgrel=4
|
pkgrel=3
|
||||||
pkgdesc="A PEP 517 build backend for packages using Flit"
|
pkgdesc="A PEP 517 build backend for packages using Flit"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="https://github.com/pypa/flit/tree/main/flit_core"
|
url="https://github.com/pypa/flit/tree/main/flit_core"
|
||||||
@ -13,21 +15,65 @@ _url="https://github.com/pypa/flit"
|
|||||||
license=(BSD-3-Clause)
|
license=(BSD-3-Clause)
|
||||||
groups=(python-build-backend)
|
groups=(python-build-backend)
|
||||||
depends=(python)
|
depends=(python)
|
||||||
makedepends=(
|
if (( _bootstrap == 0 )); then
|
||||||
python-build
|
makedepends=(
|
||||||
python-installer
|
python-build
|
||||||
)
|
python-installer
|
||||||
|
)
|
||||||
|
else
|
||||||
|
makedepends=(
|
||||||
|
git
|
||||||
|
)
|
||||||
|
fi
|
||||||
checkdepends=(
|
checkdepends=(
|
||||||
python-pytest
|
python-pytest
|
||||||
python-testpath
|
python-testpath
|
||||||
)
|
)
|
||||||
source=($_parent_name-$pkgver.tar.gz::$_url/archive/refs/tags/$pkgver.tar.gz)
|
if (( _bootstrap == 0 )); then
|
||||||
sha512sums=('1218756afcb79af1df0020548102ba29245a9fa998d332357a2a6a2b7b543dda835918f4811ba343e86e1f7c6b45a6dcafe26f8e905c1e49734141f7d4e9f4fc')
|
source=($_parent_name-$pkgver.tar.gz::$_url/archive/refs/tags/$pkgver.tar.gz)
|
||||||
b2sums=('bae3baf324016e25f8422a79c60b91c3a6f3422ca57b20c3585444c912dfaca23b73e147912d503b9b78f69bbb7db861ab926b29ff081c5c75ada155e914c4a3')
|
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=('51f797f480102fe89cd69f3fbd91c614b2390a37659c589622f2c7938cc64bc223f710e07365766159b6833d7afdafef4461a92667b6e3ae786df5137a877ee1')
|
||||||
|
b2sums=('c69769b27da424c361a419a69ed21587bc11b8c256450f4546dd49015894995286edb7bfd18105de15af1ce1cc8d427746bd258aa08f3b64a2192ae3a1863ee0')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
if (( _bootstrap == 0 )); then
|
||||||
|
cd $_parent_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() {
|
build() {
|
||||||
cd $_parent_name-$pkgver/$_name
|
if (( _bootstrap == 0 )); then
|
||||||
python -m build --wheel --skip-dependency-check --no-isolation
|
cd $_parent_name-$pkgver/$_name
|
||||||
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
|
else
|
||||||
|
cd python-bootstrap
|
||||||
|
python -m bootstrap.build
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
@ -38,9 +84,15 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
|
|
||||||
cd $_parent_name-$pkgver/$_name
|
if (( _bootstrap == 0 )); then
|
||||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
cd $_parent_name-$pkgver/$_name
|
||||||
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||||
|
else
|
||||||
|
cd python-bootstrap
|
||||||
|
python -m bootstrap.install dist/flit_core-*-py3-none-any.whl -d "$pkgdir"
|
||||||
|
install -vDm 644 external/flit/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||||
|
fi
|
||||||
|
|
||||||
# remove tests
|
# remove tests
|
||||||
rm -frv "$pkgdir/$site_packages/${_name/-/_}/tests/"
|
rm -frv "$pkgdir/$site_packages/${_name/-/_}/tests/"
|
||||||
|
19
python/python-flit-core/README.md
Normal file
19
python/python-flit-core/README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# python-flit-core
|
||||||
|
|
||||||
|
## Bootstrapping with new Python interpreter version
|
||||||
|
|
||||||
|
When a new Python interpreter version is released and the updated [python] package is moved to the staging environment, this package needs to be bootstrapped against the new interpreter version.
|
||||||
|
|
||||||
|
To do this, the following actions need to be taken:
|
||||||
|
|
||||||
|
- align the `_bootstrap_version` with the latest [release of python-bootstrap] for the Python interpreter version to bootstrap for
|
||||||
|
- set `_bootstrap` to `1`
|
||||||
|
- build the package against the new Python interpreter using `pkgctl build --rebuild --nocheck --update-pkgsums --staging`
|
||||||
|
- push the resulting package to the staging environment using `pkgctl release --db-update --staging`
|
||||||
|
- when rebuilding the package again for devendoring, set `_bootstrap` to `0`
|
||||||
|
- build the package against the new Python interpreter using `pkgctl build --rebuild --nocheck --update-pkgsums --staging`
|
||||||
|
- push the resulting package to the staging environment using `pkgctl release --db-update --staging`
|
||||||
|
|
||||||
|
[python]: https://gitlab.archlinux.org/archlinux/packaging/packages/python/
|
||||||
|
[python-bootstrap]: https://gitlab.archlinux.org/archlinux/python-bootstrap/
|
||||||
|
[release of python-bootstrap]: https://gitlab.archlinux.org/archlinux/python-bootstrap/#releases
|
Loading…
x
Reference in New Issue
Block a user