Skip to content

Commit c7fe291

Browse files
committed
python-pytest-black: update to 0.6.0
1 parent a1a194b commit c7fe291

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed
Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,46 @@
11
# Maintainer: @naveen521kk on Github, Naveen M K <[email protected]>
22

3-
_pyname=pytest-black
43
_realname=pytest-black
54
pkgbase=mingw-w64-python-${_realname}
65
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
7-
pkgver=0.3.12
8-
pkgrel=7
6+
pkgver=0.6.0
7+
pkgrel=1
98
pkgdesc='A pytest plugin to enable format checking with black (mingw-w64)'
109
arch=('any')
1110
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
1211
msys2_references=(
1312
'pypi: pytest-black'
1413
)
15-
url="https://github.com/shopkeep/pytest-black"
16-
license=('MIT')
14+
url='https://github.com/coherent-oss/pytest-black'
15+
license=('spdx:MIT')
1716
depends=(
1817
"${MINGW_PACKAGE_PREFIX}-python"
1918
"${MINGW_PACKAGE_PREFIX}-python-black"
2019
"${MINGW_PACKAGE_PREFIX}-python-pytest"
2120
"${MINGW_PACKAGE_PREFIX}-python-toml"
2221
)
2322
makedepends=(
23+
"${MINGW_PACKAGE_PREFIX}-python-build"
24+
"${MINGW_PACKAGE_PREFIX}-python-installer"
2425
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
2526
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm"
2627
)
27-
source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
28-
sha256sums=('1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5')
28+
source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz")
29+
sha256sums=('ecb77455f379805cb4bd8f45a813a3754c3bbee3199adf1b3665c0dfd086b511')
2930

30-
prepare() {
31-
cd "$srcdir"
32-
rm -rf python-build-${MSYSTEM} | true
33-
cp -r "${_pyname//_/-}-$pkgver" "python-build-${MSYSTEM}"
31+
build() {
3432
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
35-
}
33+
cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
3634

37-
build() {
38-
msg "Python build for ${MSYSTEM}"
39-
cd "${srcdir}/python-build-${MSYSTEM}"
40-
${MINGW_PREFIX}/bin/python setup.py build
35+
python -m build --wheel --skip-dependency-check --no-isolation
4136
}
4237

4338
package() {
44-
cd "${srcdir}/python-build-${MSYSTEM}"
45-
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
46-
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
47-
--root="${pkgdir}" --optimize=1 --skip-build
39+
cd "python-build-${MSYSTEM}"
40+
41+
MSYS2_ARG_CONV_EXCL="--prefix=" \
42+
python -m installer --prefix=${MINGW_PREFIX} \
43+
--destdir="${pkgdir}" dist/*.whl
44+
4845
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
4946
}

0 commit comments

Comments
 (0)