Skip to content

Commit

Permalink
Merge pull request msys2#19497 from lazka/python-isort-5.13.1
Browse files Browse the repository at this point in the history
python-isort: Update to 5.13.1
  • Loading branch information
lazka authored Dec 20, 2023
2 parents c47e533 + 78d645f commit 16605dc
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions mingw-w64-python-isort/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,31 @@ 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=5.12.0
pkgrel=2
pkgver=5.13.1
pkgrel=1
pkgdesc="A Python utility / library to sort Python imports (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://github.com/PyCQA/isort'
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python-toml"
"${MINGW_PACKAGE_PREFIX}-python-tomli")
license=('spdx:MIT')
msys2_references=(
'pypi: isort'
)
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-poetry-core"
"${MINGW_PACKAGE_PREFIX}-python-wheel")
"${MINGW_PACKAGE_PREFIX}-python-poetry-core")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-black"
"${MINGW_PACKAGE_PREFIX}-python-hypothesis"
"${MINGW_PACKAGE_PREFIX}-python-pytest"
"${MINGW_PACKAGE_PREFIX}-python-mock")
options=('staticlibs' 'strip' '!debug')
options=('staticlibs' '!strip' '!debug')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/PyCQA/isort/archive/${pkgver}.tar.gz")
sha512sums=('ceb861d1a077be6fecd82fde775bded1fb676c77135e2004c92a6221762e0b3ff6c1071d17957e1add4062ec26ba6c9264e4905724f2c659339cbd0601f4b45e')
sha512sums=('23a5f7579e327f109575454e5443ee039c207aa0b6f6ad35509cf514b45a7a3fcae116fd8ee40c96d717694cfd85bd7f431481b1a456b7390f914abec2460f42')

prepare() {
pushd "${_realname}-${pkgver}"
# Devendor toml
rm -r isort/_vendored
sed -i 's/from ._vendored //' isort/settings.py
popd

rm -rf python-build-${CARCH}
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"

# Set version for setuptools_scm
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
}

build() {
Expand Down

0 comments on commit 16605dc

Please sign in to comment.