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:
@@ -4,13 +4,14 @@ _realname=jsonschema
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
pkgver=2.6.0
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="An implementation of JSON Schema validation for Python (mingw-w64)"
|
||||
arch=('any')
|
||||
url="https://pypi.python.org/pypi/jsonschema"
|
||||
license=('MIT')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python3-setuptools")
|
||||
"${MINGW_PACKAGE_PREFIX}-python3-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python2-functools32")
|
||||
_dtoken="58/b9/171dbb07e18c6346090a37f03c7e74410a1a56123f847efed59af260a298"
|
||||
source=("https://pypi.python.org/packages/${_dtoken}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02')
|
||||
@@ -29,6 +30,7 @@ all_build() {
|
||||
package_python3-jsonschema() {
|
||||
local interpreter=python3
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python3")
|
||||
install=${_realname}3-${CARCH}.install
|
||||
|
||||
all_build ${interpreter}
|
||||
|
||||
@@ -42,21 +44,37 @@ package_python3-jsonschema() {
|
||||
|
||||
package_python2-jsonschema() {
|
||||
local interpreter=python2
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python2")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python2"
|
||||
"${MINGW_PACKAGE_PREFIX}-python2-functools32")
|
||||
install=${_realname}2-${CARCH}.install
|
||||
|
||||
all_build ${interpreter}
|
||||
|
||||
install -D -m644 json/LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE
|
||||
|
||||
cd "${pkgdir}${MINGW_PREFIX}"/bin
|
||||
for _f in *; do
|
||||
mv ${_f} ${_f/%.*/}2${_f/${_f/%.*/}/}
|
||||
# This entire section should be removed if the package does NOT install
|
||||
# anything in the /mingw*/bin directory.
|
||||
### begin section ###
|
||||
local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX})
|
||||
# fix python command in files
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.py; do
|
||||
sed -e "s|/usr/bin/env |${MINGW_PREFIX}|g" \
|
||||
-e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_f}
|
||||
done
|
||||
|
||||
local _mingw_prefix=$(cygpath -am ${MINGW_PREFIX})
|
||||
for _ff in ${pkgdir}${MINGW_PREFIX}/bin/*.py; do
|
||||
sed -e "s|${_mingw_prefix}|${MINGW_PREFIX}|g" -i ${_ff}
|
||||
|
||||
# for Python2 packages, you want to rename some stuff from the bin directory
|
||||
# with the 2 suffix like in the mingw-w64-python-pygments package to avoid
|
||||
# conflicts when installing both the Python2 and Python3 packages
|
||||
for f in jsonschema; do
|
||||
mv "${pkgdir}${MINGW_PREFIX}"/bin/${f}{,2}.exe
|
||||
if [ -f "${pkgdir}${MINGW_PREFIX}"/bin/${f}.exe.manifest ]; then
|
||||
mv "${pkgdir}${MINGW_PREFIX}"/bin/${f}{,2}.exe.manifest
|
||||
sed -e "s|${f}|${f}2|g" -i "${pkgdir}${MINGW_PREFIX}"/bin/${f}2.exe.manifest
|
||||
fi
|
||||
mv "${pkgdir}${MINGW_PREFIX}"/bin/${f}{,2}-script.py
|
||||
done
|
||||
#### end section ####
|
||||
|
||||
}
|
||||
|
||||
package_mingw-w64-i686-python2-jsonschema() {
|
||||
|
||||
14
mingw-w64-python-jsonschema/jsonschema2-i686.install
Normal file
14
mingw-w64-python-jsonschema/jsonschema2-i686.install
Normal file
@@ -0,0 +1,14 @@
|
||||
post_install() {
|
||||
cd mingw32
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in jsonschema2; do
|
||||
sed -e "s|/mingw32|${_prefix}|g" \
|
||||
-i mingw32/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
14
mingw-w64-python-jsonschema/jsonschema2-x86_64.install
Normal file
14
mingw-w64-python-jsonschema/jsonschema2-x86_64.install
Normal file
@@ -0,0 +1,14 @@
|
||||
post_install() {
|
||||
cd mingw64
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in jsonschema2; do
|
||||
sed -e "s|/mingw64|${_prefix}|g" \
|
||||
-i mingw64/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
17
mingw-w64-python-jsonschema/jsonschema3-i686.install
Normal file
17
mingw-w64-python-jsonschema/jsonschema3-i686.install
Normal file
@@ -0,0 +1,17 @@
|
||||
post_install() {
|
||||
cd mingw32
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
# "somepackage" should be replaced with the name of your .EXE w/o 2 and .exe ext
|
||||
# Like this:
|
||||
# For "myexe.exe", it would be "myexe" .
|
||||
for _it in jsonschema; do
|
||||
sed -e "s|/mingw32|${_prefix}|g" \
|
||||
-i mingw32/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
14
mingw-w64-python-jsonschema/jsonschema3-x86_64.install
Normal file
14
mingw-w64-python-jsonschema/jsonschema3-x86_64.install
Normal file
@@ -0,0 +1,14 @@
|
||||
post_install() {
|
||||
cd mingw64
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in jsonschema; do
|
||||
sed -e "s|/mingw64|${_prefix}|g" \
|
||||
-i mingw64/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
Reference in New Issue
Block a user