python-pygccxml: update to 2.6.1
This commit is contained in:
@@ -1,56 +1,44 @@
|
||||
# Maintainer: Chris Gorman <chrisjohgorman@gmail.com>
|
||||
#
|
||||
|
||||
_realname=pygccxml
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=2.5.0
|
||||
pkgrel=2
|
||||
pkgver=2.6.1
|
||||
pkgrel=1
|
||||
pkgdesc="Simple framework to navigate C++ declarations, using Python classes. (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url='https://github.com/gccxml/pygccxml'
|
||||
url='https://github.com/CastXML/pygccxml'
|
||||
msys2_references=(
|
||||
'pypi: pygccxml'
|
||||
)
|
||||
license=(Boost)
|
||||
license=('spdx: BSL-1.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-castxml")
|
||||
"${MINGW_PACKAGE_PREFIX}-castxml")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
'git')
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
|
||||
options=('!strip')
|
||||
# Using git as pygccxml has a symbolic link that causes tar to fail on the tarball
|
||||
# the following is the git commit for tag pkgver
|
||||
_commit='b67b26191192e2966712f28780e694348138b593'
|
||||
source=("${_realname}"::"git+https://github.com/CastXML/${_realname}.git#commit=${_commit}")
|
||||
sha256sums=('SKIP')
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('fc1b483c91848dada921efbe0e172648e2c6aa42d78ec920a372375e4ee32841')
|
||||
|
||||
build() {
|
||||
msg "Python build for ${MSYSTEM}"
|
||||
cd "${srcdir}"
|
||||
cp -r "${_realname}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
#check() {
|
||||
# msg "Python test for ${MSYSTEM}"
|
||||
# cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
#
|
||||
## The test command will usually depend upon what is contained in the tox.ini file
|
||||
## or in the [testenv:py] section of the pyproject.toml file.
|
||||
# ${MINGW_PREFIX}/bin/python -m pytest
|
||||
#}
|
||||
check() {
|
||||
cd "python-build-${MSYSTEM}"
|
||||
python -m pytest || warning "Tests failed"
|
||||
}
|
||||
|
||||
package() {
|
||||
msg "Python install for ${MSYSTEM}"
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
cd "python-build-${MSYSTEM}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE.rst "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.rst"
|
||||
|
||||
Reference in New Issue
Block a user