Skip to content

Commit

Permalink
python-tornado: update to 6.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Jul 27, 2024
1 parent ad0260c commit 7fe3b5e
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions mingw-w64-python-tornado/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
_realname=tornado
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=6.4
pkgver=6.4.1
pkgrel=1
pkgdesc="open source version of the scalable, non-blocking web server and tools (mingw-w64)"
arch=('any')
Expand All @@ -15,6 +12,7 @@ msys2_references=(
'pypi: tornado'
"cpe: cpe:/a:tornadoweb:tornado"
)
msys2_repository_url='https://github.com/tornadoweb/tornado/'
url='https://www.tornadoweb.org/'
license=('spdx:Apache-2.0')
depends=("${MINGW_PACKAGE_PREFIX}-python")
Expand All @@ -24,26 +22,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-wheel"
"${MINGW_PACKAGE_PREFIX}-cc")
source=("https://pypi.python.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('72291fa6e6bc84e626589f1c29d90a5a6d593ef5ae68052ee2ef000dfd273dee')

prepare() {
rm -rf python-build-${MSYSTEM} | true
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}"
sha256sums=('92d3ab53183d8c50f8204a51e6f91d18a15d5ef261e84d452800d4ff6fc504e9')

build() {
export TORNADO_EXTENSION=1
}

build() {
cd "${srcdir}/python-build-${MSYSTEM}"
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}

# We probably will need various prerequisits for this
#check() {
# cd "${srcdir}/python-build-${MSYSTEM}"
# ${MINGW_PREFIX}/bin/python -m pytest
#}

package() {
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=" \
Expand Down

0 comments on commit 7fe3b5e

Please sign in to comment.