|
1 | 1 | # Maintainer: Chris Gorman <[email protected]> |
2 | | -# |
3 | 2 |
|
4 | 3 | _realname=pygccxml |
5 | 4 | pkgbase=mingw-w64-python-${_realname} |
6 | 5 | pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") |
7 | | -pkgver=2.5.0 |
8 | | -pkgrel=2 |
| 6 | +pkgver=2.6.1 |
| 7 | +pkgrel=1 |
9 | 8 | pkgdesc="Simple framework to navigate C++ declarations, using Python classes. (mingw-w64)" |
10 | 9 | arch=('any') |
11 | 10 | mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') |
12 | | -url='https://github.com/gccxml/pygccxml' |
| 11 | +url='https://github.com/CastXML/pygccxml' |
13 | 12 | msys2_references=( |
14 | 13 | 'pypi: pygccxml' |
15 | 14 | ) |
16 | | -license=(Boost) |
| 15 | +license=('spdx: BSL-1.0') |
17 | 16 | depends=("${MINGW_PACKAGE_PREFIX}-python" |
18 | | - "${MINGW_PACKAGE_PREFIX}-castxml") |
| 17 | + "${MINGW_PACKAGE_PREFIX}-castxml") |
19 | 18 | makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" |
20 | 19 | "${MINGW_PACKAGE_PREFIX}-python-installer" |
21 | 20 | "${MINGW_PACKAGE_PREFIX}-python-setuptools" |
22 | 21 | 'git') |
23 | 22 | checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") |
24 | 23 | 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') |
30 | 26 |
|
31 | 27 | 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}" |
36 | 29 | ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation |
37 | 30 | } |
38 | 31 |
|
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 | +} |
47 | 36 |
|
48 | 37 | package() { |
49 | | - msg "Python install for ${MSYSTEM}" |
50 | | - cd "${srcdir}/python-build-${MSYSTEM}" |
| 38 | + cd "python-build-${MSYSTEM}" |
51 | 39 |
|
52 | 40 | MSYS2_ARG_CONV_EXCL="--prefix=" \ |
53 | | - ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ |
| 41 | + python -m installer --prefix=${MINGW_PREFIX} \ |
54 | 42 | --destdir="${pkgdir}" dist/*.whl |
55 | 43 |
|
56 | 44 | install -Dm644 LICENSE.rst "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.rst" |
|
0 commit comments