A bundle of python packages I was working on. These are checked in together since they depend upon eachother. (#4129)

contextlib2
linecache2
traceback2
unittest2
python-extras
fixtures
pyrsistent
subunit
testscenerios
testtools
This commit is contained in:
J. Peter Mugaas
2018-07-31 04:29:12 -04:00
committed by Алексей
parent f0d09968b6
commit 4d9ec2ac59
23 changed files with 1948 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
#
_realname=contextlib2
pkgbase=mingw-w64-python-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-python2-${_realname}"
pkgver=0.5.5
pkgrel=1
pkgdesc="contextlib2 is a backport of the standard librarys contextlib module to earlier Python versions (mingw-w64)"
arch=('any')
url="http://pypi.python.org/pypi/${_pypiname}"
license=('PSF')
depends=("${MINGW_PACKAGE_PREFIX}-python2")
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools")
source=("https://pypi.io/packages/source/${_realname:0:1}/${_realname}/${_realname}-$pkgver.tar.gz")
sha512sums=('d5c97ff8eef7d8b14da0bfdc3515f8019bcc05e24cb922ce08ca2366d5182b029d873bbf172e9e6791297df05e24f6faf40868550063dcdb54f451b14c9e505d')
prepare() {
cd "${srcdir}"
rm -rf python2-build-${CARCH} | true
cp -r "${_realname}-${pkgver}" "python2-build-${CARCH}"
# Set version for setuptools_scm
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
export PBR_VERSION=$pkgver
}
build() {
msg "Python 2 build for ${CARCH}"
cd "${srcdir}/python2-build-${CARCH}"
${MINGW_PREFIX}/bin/python2 setup.py build
}
package() {
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}"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}