python-cliff: update to 4.3.0
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
8d95ee28c7
commit
665eac769b
@@ -6,31 +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=4.2.0
|
||||
pkgver=4.3.0
|
||||
pkgrel=1
|
||||
pkgdesc="Command Line Interface Formulation Framewor (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
url='https://docs.openstack.org/cliff/latest/'
|
||||
license=('Apache')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python-pbr"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-autopage"
|
||||
license=('spdx:Apache-2.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python-autopage"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-cmd2"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-importlib-metadata"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-prettytable"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-pyparsing"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-stevedore"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-yaml")
|
||||
makedepends=('git'
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-pbr"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-wheel")
|
||||
#checkdepends=("${MINGW_PACKAGE_PREFIX}-python-testrepository"
|
||||
# "${MINGW_PACKAGE_PREFIX}-python-mock"
|
||||
# "${MINGW_PACKAGE_PREFIX}-python-sphinx"
|
||||
# "${MINGW_PACKAGE_PREFIX}-python-oslosphinx"
|
||||
# "${MINGW_PACKAGE_PREFIX}-python-testscenarios")
|
||||
options=('staticlibs' 'strip' '!debug')
|
||||
source=("${_realname}-${pkgver}.tar.gz::https://github.com/openstack/cliff/archive/${pkgver}.tar.gz")
|
||||
sha256sums=('17b7cd270d03bb83530e4be28559c353badcc0301f7b160a77a626c98079d414')
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz")
|
||||
sha256sums=('fc5b6ebc8fb815332770b2485ee36c09753937c37cce4f3227cdd4e10b33eacc')
|
||||
|
||||
# Helper macros to help make tasks easier #
|
||||
apply_patch_with_msg() {
|
||||
@@ -52,21 +52,16 @@ del_file_exists() {
|
||||
# =========================================== #
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/${_realname}-${pkgver}
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "Python build for ${MSYSTEM}"
|
||||
|
||||
rm -rf python-build-${MSYSTEM} | true
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}"
|
||||
|
||||
# Set version for setuptools_scm
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
|
||||
# Set version for pbr
|
||||
export PBR_VERSION=${pkgver}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
#check() {
|
||||
@@ -78,9 +73,9 @@ build() {
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
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
|
||||
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