From 689fbdf76fbbd6eda4d76160769b7007efb53173 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 24 Dec 2024 07:11:08 +0100 Subject: [PATCH] Remove python-py Deprecated upstream for years; no users in MSYS2 left --- mingw-w64-python-py/PKGBUILD | 63 ------------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 mingw-w64-python-py/PKGBUILD diff --git a/mingw-w64-python-py/PKGBUILD b/mingw-w64-python-py/PKGBUILD deleted file mode 100644 index e9b588a18e329..0000000000000 --- a/mingw-w64-python-py/PKGBUILD +++ /dev/null @@ -1,63 +0,0 @@ -# Contributor: Frederic Wang - -_realname=py -pkgbase=mingw-w64-python-${_realname} -pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=1.11.0 -pkgrel=5 -provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}=${pkgver}") -conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgdesc='library with cross-python path, ini-parsing, io, code, log facilities (mingw-w64)' -arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/pytest-dev/py' -msys2_references=( - "cpe: cpe:/a:pytest:py" - "pypi: py" -) -license=('MIT') -depends=("${MINGW_PACKAGE_PREFIX}-python" - "${MINGW_PACKAGE_PREFIX}-python-iniconfig" - "${MINGW_PACKAGE_PREFIX}-python-apipkg") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" - "${MINGW_PACKAGE_PREFIX}-python-setuptools-scm") -checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -options=('staticlibs' 'strip' '!debug') -source=("${_realname}-${pkgver}.tar.gz::https://github.com/pytest-dev/py/archive/${pkgver}.tar.gz") -sha256sums=('73845c6278da21cebd41d90e363da84aa93e9dd3485d00f7ced540fedbd41054') - -prepare() { - cd "${srcdir}" - - cp ${_realname}-${pkgver}/LICENSE ${_realname}-${pkgver}/py/LICENSE - rm -r py-${pkgver}/py/_vendored_packages - - rm -rf python-build-${CARCH} | true - cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" - - export LC_CTYPE=en_US.UTF-8 - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} -} - -build() { - msg "Python build for ${CARCH}" - cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py build -} - - -check() { - msg "Python test for ${CARCH}" - cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py pytest || warning "Tests failed" -} - -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 - - install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" -}