Numerous packages to verify python-pbr (#4329)

* Numerous packages to verify python-pbr
Please note that this only ONE part of a long chain of packages that seem to depend upon eachother for building and validation including some stuff that is already in MINGW-W64 PKGBUILD’s such as setuptools and pbr as well as some other stuff.  The idea is build something that’s good enough to build everything else in hopefully manner including some stuff such as opencv, eigen, vtm numerous gnome packages, and who knows what else.  I may have made mistakes and numerous omissios so please bear with me.
mingw-w64-python2-subprocess32 - 0.6.0
mingw-w64-python-pyperclip - 1.6.4
mingw-w64-python-pyreadline - 2.1
mingw-w64-python2-cmd2 - 0.8.6
mingw-w64-python3-cmd2 – 0.9.4
mingw-w64-python-stevedore – 1.29.0
mingw-w64-python-unicodecsv – 0.14.1
mingw-w64-python-pytest-forked – 0.2 cliff-2.13.0-1
mingw-w64-python-pytest-xdist – 1.23.0
mingw-w64-python-execnet – 1.50
mingw-w64-python-testrepository – 0.20
mingw-w64-python-testresources – 2.0.1
mingw-w64-python-cliff - cliff-2.13.0
mingw-w64-python-voluptuous – 0.15.1

* python-hacking - 1.1.0

* More necessary packages for tests and afix for nose and sphinx.
Also tried to fix most mentioned previous except for "testrepository"  That was deliberate because it refers to the name of a package.

* Numerous modules that I built for testins stestr thare useful elesewhere.
I also updated sqlchemy and decorator to the latest versions.
Some times the testing here may not work but I'm hoping to lay more solid groundwork and quite a bit can be conibalized by others for fixing things already in git.

* Remove Python2 dependency for python3 package.

* python-jsonschemea - 2.6.0 - make sure .EXE works.  Added dependency on python2-functools32
python2-functutils32 - 3.2.3-2 - new package required for jsonshcemas Python2 version.
Verified this with PIP.

* python-matplotlib - require backports.functools_lru_cache
backports.functools_lru_cache - 1.5 - new package requried for python-maplotlib in Python2 - verified with PIP
This commit is contained in:
J. Peter Mugaas
2018-09-04 01:07:33 -04:00
committed by Алексей
parent 98ff5dbecd
commit e2a5ff5900
95 changed files with 6045 additions and 66 deletions

View File

@@ -0,0 +1,85 @@
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
# The 0.8.6 series supports Python 3 but we have an updated version.
# that only supports Python 3. This is just for Python 2 tools
# and legacy support for the old version. The devleopers will
# dicontinue support for the 0.x8 on August 31, 2018
_realname=cmd2
pkgbase=mingw-w64-python2-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-python2-${_realname}"
pkgver=0.8.6
pkgrel=1
pkgdesc="Extra features for standard library's cmd module (mingw-w64)"
arch=('any')
url='https://github.com/python-cmd2/cmd2'
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python2-pyparsing"
"${MINGW_PACKAGE_PREFIX}-python2-pyperclip"
"${MINGW_PACKAGE_PREFIX}-python2-colorama"
"${MINGW_PACKAGE_PREFIX}-python2-contextlib2"
"${MINGW_PACKAGE_PREFIX}-python2-enum34"
"${MINGW_PACKAGE_PREFIX}-python2-wcwidth"
"${MINGW_PACKAGE_PREFIX}-python2-subprocess32")
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python2-pytest-runner"
# "${MINGW_PACKAGE_PREFIX}-python2-pytest-xdist"
"${MINGW_PACKAGE_PREFIX}-python2-mock")
# 'vi')
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-$pkgver.tar.gz"::"https://github.com/python-cmd2/cmd2/archive/$pkgver.tar.gz")
sha512sums=('c28eb016fff3652b5cc1a45417e1b76b061849bd5c48afbaca8b9706d93b9b9f235fa6e2616da76741505eba96943b77e51d3fdb9fd50db620b52a6d75e4cceb')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying $_patch"
patch -Nbp1 -i "${srcdir}/$_patch"
done
}
del_file_exists() {
for _fname in "$@"
do
if [ -f $_fname ]; then
rm -rf $_fname
fi
done
}
# =========================================== #
prepare() {
cd "${srcdir}"
rm -rf python3-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
}
# Note that build() is sometimes skipped because it's done in
# the packages setup.py install for simplicity if you can do so.
# but sometimes, you want to do a check before install which would
# also trigger the build.
build() {
msg "Python 2 build for ${CARCH}"
cd "${srcdir}/python2-build-${CARCH}"
${MINGW_PREFIX}/bin/python2 setup.py build
}
check() {
msg "Python 2 test for ${CARCH}"
cd "${srcdir}/python2-build-${CARCH}"
${MINGW_PREFIX}/bin/python2 setup.py pytest || true
}
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}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE"
}