python-singledispatch: update to 4.0.0
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
8275cefb42
commit
c3c9ae5773
@@ -1,43 +1,44 @@
|
||||
# Maintainer: @naveen521kk on Github, Naveen M K <naveen521kk@gmail.com>
|
||||
|
||||
_pyname=singledispatch
|
||||
_realname=singledispatch
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=3.7.0
|
||||
pkgrel=2
|
||||
pkgver=4.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='Backport functools.singledispatch from Python 3.4 to Python 2.6-3.3. (mingw-w64)'
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
url="https://pypi.org/project/singledispatch/"
|
||||
url="https://github.com/jaraco/singledispatch"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
"${MINGW_PACKAGE_PREFIX}-python-six"
|
||||
"${MINGW_PACKAGE_PREFIX}-python"
|
||||
)
|
||||
makedepends=(
|
||||
"${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-wheel"
|
||||
)
|
||||
source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
|
||||
sha256sums=('c1a4d5c1da310c3fd8fccfb8d4e1cb7df076148fd5d858a819e37fffe44f3092')
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('f3c327a968651a7f4b03586eab7d90a07b05ff3ef7942d1967036eb9f75ab8fc')
|
||||
|
||||
prepare() {
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
rm -rf python-build-${CARCH} | true
|
||||
cp -r "${_pyname//_/-}-$pkgver" "python-build-${CARCH}"
|
||||
rm -rf python-build-${MSYSTEM} | true
|
||||
cp -r "${_realname}-$pkgver" "python-build-${MSYSTEM}"
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "Python build for ${CARCH}"
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
|
||||
--root="${pkgdir}" --optimize=1 --skip-build
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user