python-ldap3: Drop python2 package
This commit is contained in:
@@ -2,17 +2,15 @@
|
||||
|
||||
_realname=ldap3
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
pkgver=2.6.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="a strictly RFC 4510 conforming LDAP V3 pure Python client (mingw-w64)"
|
||||
arch=('any')
|
||||
url='https://github.com/cannatag/ldap3'
|
||||
license=('LICENSE')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python2"
|
||||
"${MINGW_PACKAGE_PREFIX}-python3"
|
||||
"${MINGW_PACKAGE_PREFIX}-python3-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python2-setuptools")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python3"
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python3-setuptools")
|
||||
options=('staticlibs' 'strip' '!debug')
|
||||
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cannatag/ldap3/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=('ea33bc43c125d503160d6bf158adb7035d9c3916dbd77a3703a5870bb8628bc0f9d0850a6e32011a6b73beea3e129a18488ffe9e610a750812c0f1637fd36a31')
|
||||
@@ -36,33 +34,26 @@ del_file_exists() {
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
for builddir in python{2,3}-build-${CARCH}; do
|
||||
rm -rf ${builddir} | true
|
||||
cp -r "${_realname}-${pkgver}" "${builddir}"
|
||||
done
|
||||
rm -rf python3-build-${CARCH} | true
|
||||
cp -r "${_realname}-${pkgver}" "python3-build-${CARCH}"
|
||||
|
||||
# Set version for setuptools_scm
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
|
||||
}
|
||||
|
||||
build() {
|
||||
for pver in {2,3}; do
|
||||
msg "Python ${pver} build for ${CARCH}"
|
||||
cd "${srcdir}/python${pver}-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python${pver} setup.py build
|
||||
done
|
||||
msg "Python 3 build for ${CARCH}"
|
||||
cd "${srcdir}/python3-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
for pver in {2,3}; do
|
||||
msg "Python ${pver} test for ${CARCH}"
|
||||
cd "${srcdir}/python${pver}-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python${pver} setup.py check
|
||||
done
|
||||
msg "Python 3 test for ${CARCH}"
|
||||
cd "${srcdir}/python3-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python3 setup.py check
|
||||
}
|
||||
|
||||
package_python3-ldap3() {
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python3")
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python3-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python3 setup.py install --prefix=${MINGW_PREFIX} \
|
||||
@@ -70,30 +61,3 @@ package_python3-ldap3() {
|
||||
|
||||
install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/COPYING"
|
||||
}
|
||||
|
||||
package_python2-ldap3() {
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python2")
|
||||
|
||||
cd "${srcdir}/python2-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python2 setup.py install --prefix=${MINGW_PREFIX} \
|
||||
--root="${pkgdir}" --optimize=1 --skip-build
|
||||
|
||||
install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/COPYING"
|
||||
}
|
||||
|
||||
package_mingw-w64-i686-python2-ldap3() {
|
||||
package_python2-ldap3
|
||||
}
|
||||
|
||||
package_mingw-w64-i686-python3-ldap3() {
|
||||
package_python3-ldap3
|
||||
}
|
||||
|
||||
package_mingw-w64-x86_64-python2-ldap3() {
|
||||
package_python2-ldap3
|
||||
}
|
||||
|
||||
package_mingw-w64-x86_64-python3-ldap3() {
|
||||
package_python3-ldap3
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user