Skip to content

Commit faec2c9

Browse files
committed
python-pygccxml: update to 2.6.1
1 parent db48444 commit faec2c9

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

mingw-w64-python-pygccxml/PKGBUILD

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,44 @@
11
# Maintainer: Chris Gorman <[email protected]>
2-
#
32

43
_realname=pygccxml
54
pkgbase=mingw-w64-python-${_realname}
65
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
7-
pkgver=2.5.0
8-
pkgrel=2
6+
pkgver=2.6.1
7+
pkgrel=1
98
pkgdesc="Simple framework to navigate C++ declarations, using Python classes. (mingw-w64)"
109
arch=('any')
1110
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
12-
url='https://github.com/gccxml/pygccxml'
11+
url='https://github.com/CastXML/pygccxml'
1312
msys2_references=(
1413
'pypi: pygccxml'
1514
)
16-
license=(Boost)
15+
license=('spdx: BSL-1.0')
1716
depends=("${MINGW_PACKAGE_PREFIX}-python"
18-
"${MINGW_PACKAGE_PREFIX}-castxml")
17+
"${MINGW_PACKAGE_PREFIX}-castxml")
1918
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
2019
"${MINGW_PACKAGE_PREFIX}-python-installer"
2120
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
2221
'git')
2322
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
2423
options=('!strip')
25-
# Using git as pygccxml has a symbolic link that causes tar to fail on the tarball
26-
# the following is the git commit for tag pkgver
27-
_commit='b67b26191192e2966712f28780e694348138b593'
28-
source=("${_realname}"::"git+https://github.com/CastXML/${_realname}.git#commit=${_commit}")
29-
sha256sums=('SKIP')
24+
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
25+
sha256sums=('fc1b483c91848dada921efbe0e172648e2c6aa42d78ec920a372375e4ee32841')
3026

3127
build() {
32-
msg "Python build for ${MSYSTEM}"
33-
cd "${srcdir}"
34-
cp -r "${_realname}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
35-
28+
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
3629
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
3730
}
3831

39-
#check() {
40-
# msg "Python test for ${MSYSTEM}"
41-
# cd "${srcdir}/python-build-${MSYSTEM}"
42-
#
43-
## The test command will usually depend upon what is contained in the tox.ini file
44-
## or in the [testenv:py] section of the pyproject.toml file.
45-
# ${MINGW_PREFIX}/bin/python -m pytest
46-
#}
32+
check() {
33+
cd "python-build-${MSYSTEM}"
34+
python -m pytest || warning "Tests failed"
35+
}
4736

4837
package() {
49-
msg "Python install for ${MSYSTEM}"
50-
cd "${srcdir}/python-build-${MSYSTEM}"
38+
cd "python-build-${MSYSTEM}"
5139

5240
MSYS2_ARG_CONV_EXCL="--prefix=" \
53-
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
41+
python -m installer --prefix=${MINGW_PREFIX} \
5442
--destdir="${pkgdir}" dist/*.whl
5543

5644
install -Dm644 LICENSE.rst "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.rst"

0 commit comments

Comments
 (0)