diff options
Diffstat (limited to 'abs/core/python_modules')
199 files changed, 4088 insertions, 1679 deletions
diff --git a/abs/core/python_modules/cython/PKGBUILD b/abs/core/python_modules/cython/PKGBUILD new file mode 100644 index 0000000..6826749 --- /dev/null +++ b/abs/core/python_modules/cython/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Antonio Rojas <arojas@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Igor Scabini <furester @ gmail.com> + +pkgname=(cython cython2) +pkgbase=cython +pkgver=0.27.3 +pkgrel=3 +pkgdesc="C-Extensions for Python" +arch=(x86_64) +url="http://cython.org" +license=(APACHE) +makedepends=(python-setuptools python2-setuptools) +source=($pkgbase-$pkgver.tar.gz::"https://github.com/cython/cython/archive/$pkgver.tar.gz") +sha256sums=('648feb8a257574a3e4ef854475e7d767732ef26e870d2f9fcc1ca5b244b3ac89') + +prepare() { + cp -r cython-$pkgver cython2-$pkgver + find cython2-$pkgver -name '*.py' | xargs sed -e 's|/usr/bin/env python|/usr/bin/env python2|' -e 's|/usr/bin/python|/usr/bin/python2|' -i +} + +build() { + cd cython-$pkgver + python setup.py build + + cd ../cython2-$pkgver + python2 setup.py build +} + +package_cython() { + depends=(python python-setuptools) + + cd cython-$pkgver + python setup.py install --root="$pkgdir" --skip-build + + for f in cygdb cython cythonize; do + mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3 + ln -s ${f}3 "$pkgdir"/usr/bin/$f + done +} + +package_cython2() { + depends=(python2 python2-setuptools) + + cd cython2-$pkgver + python2 setup.py install --root="$pkgdir" --skip-build + + for f in cygdb cython cythonize; do + mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}2 + done +} diff --git a/abs/core/python_modules/python-docutils/PKGBUILD b/abs/core/python_modules/docutils/PKGBUILD index c0b5341..1b7cbe6 100644 --- a/abs/core/python_modules/python-docutils/PKGBUILD +++ b/abs/core/python_modules/docutils/PKGBUILD @@ -4,26 +4,24 @@ # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgbase=docutils -pkgname=('python2-docutils') -pkgver=0.11 -pkgrel=2 +pkgname=('python-docutils' 'python2-docutils') +pkgver=0.14 +pkgrel=1 pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX' arch=('any') url='http://docutils.sourceforge.net' license=('custom') -makedepends=('python2') +makedepends=('python' 'python2') source=("http://downloads.sourceforge.net/$pkgbase/$pkgbase-$pkgver.tar.gz") -md5sums=('20ac380a18b369824276864d98ec0ad6') +md5sums=('c53768d63db3873b7d452833553469de') build() { cd $pkgbase-$pkgver -# for _p in "$srcdir"/*.patch; do -# msg2 "${_p##*/}" -# patch -p2 -i "$_p" -# done -# python3 setup.py build --build-lib=build/python -# find build/python -type f -exec \ -# sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python3,' {} \; + msg2 python3 + python3 setup.py build --build-lib=build/python + find build/python -type f -exec \ + sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python3,' {} \; + msg2 python2 python2 setup.py build --build-lib=build/python2 find build/python2 -type f -exec \ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \; @@ -40,20 +38,20 @@ check() { PYTHONPATH="$PWD/build/python2/" python2 test/alltests.py } -#package_python-docutils() { -# depends=('python') -# -# cd $pkgbase-$pkgver -# python setup.py build --build-lib=build/python \ +package_python-docutils() { + depends=('python') + + cd $pkgbase-$pkgver + python setup.py build --build-lib=build/python \ install --root="$pkgdir" --optimize=1 # symlink without .py -# for f in "$pkgdir"/usr/bin/*.py; do -# ln -s "$(basename $f)" "$pkgdir/usr/bin/$(basename $f .py)" -# done + for f in "$pkgdir"/usr/bin/*.py; do + ln -s "$(basename $f)" "$pkgdir/usr/bin/$(basename $f .py)" + done # setup license -# install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt" -# install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/" -#} + install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt" + install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/" +} package_python2-docutils() { depends=('python2') diff --git a/abs/core/python_modules/python-docutils/python2-docutils.install b/abs/core/python_modules/docutils/python2-docutils.install index 3e414af..3e414af 100644 --- a/abs/core/python_modules/python-docutils/python2-docutils.install +++ b/abs/core/python_modules/docutils/python2-docutils.install diff --git a/abs/core/python_modules/gitpython/PKGBUILD b/abs/core/python_modules/gitpython/PKGBUILD deleted file mode 100644 index 9c72ac0..0000000 --- a/abs/core/python_modules/gitpython/PKGBUILD +++ /dev/null @@ -1,20 +0,0 @@ -# Contributor: Jon Bergli Heier <snakebite@jvnv.net> -pkgname=gitpython -pkgver=0.3.2 -pkgrel=1 -pkgdesc="A python library used to interact with Git repositories" -arch=('any') -url="http://gitorious.org/git-python" -license=('BSD') -depends=('python2' 'git' 'python-gitdb') -conflicts=('gitpython-git') -source=("http://pypi.python.org/packages/source/G/GitPython/GitPython-${pkgver}.RC1.tar.gz") - -build() { - cd "$srcdir/GitPython-$pkgver.RC1" - python2 setup.py install --root="$pkgdir/" --optimize=1 || return 1 - install -D -m 644 LICENSE "$pkgdir"/usr/share/licenses/gitpython/LICENSE -} -# vim:set ts=2 sw=2 et: -md5sums=('849082fe29adc653a3621465213cab96') - diff --git a/abs/core/python_modules/m2r/PKGBUILD b/abs/core/python_modules/m2r/PKGBUILD new file mode 100644 index 0000000..da5739a --- /dev/null +++ b/abs/core/python_modules/m2r/PKGBUILD @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=m2r +pkgname=(m2r python2-m2r) +pkgver=0.1.14 +pkgrel=1 +pkgdesc="Markdown to reStructuredText converter" +arch=('any') +url="https://github.com/miyakogi/m2r" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'python-mistune' 'python2-mistune' + 'python-docutils' 'python2-docutils') +checkdepends=('python2-mock' 'python-pygments' 'python2-pygments' 'python-pytest-runner' + 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/miyakogi/m2r/archive/v$pkgver.tar.gz") +sha512sums=('ad6c8c8df199c193af92b1fc7e144f4a5653f8a077d5d29a5ad378d96c7a94c5c9d933042bdbc0e0ddd6128c83211066efaac7d0b6a6c68b62b3552d2bfd886e') + +prepare() { + cp -a m2r-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/m2r-$pkgver + python setup.py build + + cd "$srcdir"/m2r-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/m2r-$pkgver + python setup.py pytest + + cd "$srcdir"/m2r-$pkgver-py2 + python2 setup.py pytest +} + +package_m2r() { + depends=('python-mistune' 'python-docutils' 'python-setuptools') + + cd "$srcdir"/m2r-$pkgver + python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-m2r() { + depends=('python2-mistune' 'python2-docutils' 'python2-setuptools') + + cd "$srcdir"/m2r-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1 + mv "$pkgdir"/usr/bin/m2r{,-python2} + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/pygobject/PKGBUILD b/abs/core/python_modules/pygobject/PKGBUILD index fc8f1c7..ba196da 100644 --- a/abs/core/python_modules/pygobject/PKGBUILD +++ b/abs/core/python_modules/pygobject/PKGBUILD @@ -1,56 +1,68 @@ # $Id$ -# Maintainer: Ionut Biru <ibiru@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> pkgbase=pygobject -pkgname=(python2-gobject pygobject-devel) -pkgver=3.18.2 +pkgname=(python-gobject python2-gobject pygobject-devel) +pkgver=3.26.1 pkgrel=1 -arch=(i686 x86_64) -url="https://live.gnome.org/PyGObject" +pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+" +url="https://wiki.gnome.org/Projects/PyGObject" +arch=(x86_64) license=(LGPL) -makedepends=(python2 python2-cairo gobject-introspection gnome-common) -source=(https://download.gnome.org/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz) -sha256sums=('2a3cad1517916b74e131e6002c3824361aee0671ffb0d55ded119477fc1c2c5f') +depends=(gobject-introspection-runtime) +makedepends=(python{,2}-cairo gobject-introspection git autoconf-archive) +optdepends=('cairo: Cairo bindings') +_commit=55cb08b71cd23f56b97d912af22ca24e787fd5d7 # tags/3.26.1^0 +source=("git+https://git.gnome.org/browse/pygobject#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $pkgbase + git describe --tags | sed 's/-/+/g' +} prepare() { - mkdir build-py2 build-py3 devel - cd ${pkgbase}-${pkgver} + mkdir build-py{2,3} devel + cd $pkgbase + NOCONFIGURE=1 ./autogen.sh } -build() { - cd build-py2 - ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python2 +_build() ( + cd build-py$1 + ../$pkgbase/configure --prefix=/usr --with-python=/usr/bin/python$1 + sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make +) -# cd ../build-py3 -# ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python -# make +build() { + _build 2 + _build 3 } -#package_python-gobject() { -# pkgdesc="Python 3 bindings for GObject" -# depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python' 'cairo') +package_python-gobject() { + depends=("pygobject-devel=$pkgver" python) -# cd build-py3 -# make DESTDIR="$pkgdir" install -# rm -r "$pkgdir"/usr/{include,lib/pkgconfig} -#} + cd build-py3 + make DESTDIR="$pkgdir" install + mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel" +} package_python2-gobject() { - pkgdesc="Python 2 bindings for GObject" - depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python2' 'cairo') + pkgdesc="${pkgdesc/Python/Python2}" + depends=("pygobject-devel=$pkgver" python2) cd build-py2 make DESTDIR="$pkgdir" install - mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel" - python2 -m compileall "$pkgdir"//usr/lib/python2.7/site-packages/gi + python2 -m compileall "$pkgdir"/usr/lib/python2.7/site-packages/gi + rm -r "$pkgdir"/usr/{include,lib/pkgconfig} } package_pygobject-devel() { - pkgdesc="Development files for the pygobject bindings" + pkgdesc="Common development files for pygobject" + optdepends=() - cd "devel" - mkdir -p "$pkgdir"/usr/{include,lib} + cd devel + mkdir -p "$pkgdir/usr/lib" mv include "$pkgdir/usr/" mv pkgconfig "$pkgdir/usr/lib/" } diff --git a/abs/core/python_modules/pygobject/__changelog b/abs/core/python_modules/pygobject/__changelog deleted file mode 100644 index 9715c21..0000000 --- a/abs/core/python_modules/pygobject/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD - comment out all python 3 stuff and only build for py 2 diff --git a/abs/core/python_modules/pygobject2/PKGBUILD b/abs/core/python_modules/pygobject2/PKGBUILD index ba3d035..bca11a0 100644 --- a/abs/core/python_modules/pygobject2/PKGBUILD +++ b/abs/core/python_modules/pygobject2/PKGBUILD @@ -2,73 +2,69 @@ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgbase=pygobject2 -pkgname=(python2-gobject2 pygobject2-devel) -pkgver=2.28.6 -pkgrel=12 -arch=(i686 x86_64) +pkgname=(python-gobject2 python2-gobject2 pygobject2-devel) +pkgver=2.28.7 +pkgrel=1 +pkgdesc="Python bindings for GObject (legacy)" url="http://www.pygtk.org/" +arch=(x86_64) license=(LGPL) -makedepends=(python2 git) - -# pygobject-2-28 branch: https://git.gnome.org/browse/pygobject/log/?h=pygobject-2-28 -source=('git://git.gnome.org/pygobject#commit=9456ba7') +depends=(glib2) +makedepends=(python python2 git) +options=(!emptydirs) +_commit=c9594b6a91e6ca2086fedec2ed8249e0a9c029fc # tags/PYGOBJECT_2_28_7^0 +source=("git+https://git.gnome.org/browse/pygobject#commit=$_commit") sha256sums=('SKIP') -prepare() { +pkgver() { cd pygobject - autoreconf -fi - - cp -a . ../python2-build + git describe --tags | sed 's/^PYGOBJECT_//;s/_/./g;s/-/+/g' +} - find -O3 ../python2-build \ - \( -name '*.py' -o -name '*.py.in' \) \ - -exec sed -i '1s|python$|&2|' {} + +prepare() { + mkdir build-py{2,3} devel + cd pygobject + find . \( -name '*.py' -o -name '*.py.in' \) -exec sed -i '1s|python$|&2|' {} + + autoreconf -fvi } -build() { - cd python2-build - ./configure --prefix=/usr --disable-introspection \ - PYTHON=/usr/bin/python2 +_build() ( + cd build-py$1 + ../pygobject/configure --prefix=/usr --disable-introspection PYTHON=/usr/bin/python$1 + sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make +) - cd ../pygobject -# ./configure --prefix=/usr --disable-introspection -# make +build() { + _build 2 + _build 3 } -#package_python-gobject2() { -# pkgdesc="Python 3 bindings for GObject2" -# depends=(glib2 pygobject2-devel python) -# replaces=(py3gobject) -# provides=("py3gobject=$pkgver") +package_python-gobject2() { + depends=("pygobject2-devel=$pkgver" python) -# cd pygobject -# make DESTDIR="$pkgdir" install - - # Delete devel stuff -# rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}} -#} + cd build-py3 + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/pygobject/xsl} + rm -r "$pkgdir"/usr/share/gtk-doc +} package_python2-gobject2() { - pkgdesc="Python 2 bindings for GObject2" - depends=(glib2 pygobject2-devel python2) - replaces=(pygobject) - provides=("pygobject=$pkgver") + pkgdesc="${pkgdesc/Python/Python2}" + depends=("pygobject2-devel=$pkgver" python2) - cd python2-build + cd build-py2 make DESTDIR="$pkgdir" install - + mv "$pkgdir"/usr/{include,lib/pkgconfig,share/pygobject/xsl} "$srcdir/devel" rm -r "$pkgdir"/usr/share/gtk-doc - - # Split devel stuff - cd .. - mkdir -p devel/usr/{lib,share/pygobject} - mv {"$pkgdir",devel}/usr/include - mv {"$pkgdir",devel}/usr/lib/pkgconfig - mv {"$pkgdir",devel}/usr/share/pygobject/xsl } package_pygobject2-devel() { - pkgdesc="Development files for the pygobject bindings" - mv devel/* "$pkgdir" + pkgdesc="Common development files for pygobject2" + + cd devel + mkdir -p "$pkgdir"/usr/{lib,share/pygobject} + mv include "$pkgdir/usr/" + mv pkgconfig "$pkgdir/usr/lib/" + mv xsl "$pkgdir/usr/share/pygobject/" } diff --git a/abs/core/python_modules/pygobject2/__changelog b/abs/core/python_modules/pygobject2/__changelog deleted file mode 100644 index 92b1ef7..0000000 --- a/abs/core/python_modules/pygobject2/__changelog +++ /dev/null @@ -1 +0,0 @@ -remove python3 diff --git a/abs/core/python_modules/pygtk/PKGBUILD b/abs/core/python_modules/pygtk/PKGBUILD index 9e9f145..661d7d8 100644 --- a/abs/core/python_modules/pygtk/PKGBUILD +++ b/abs/core/python_modules/pygtk/PKGBUILD @@ -4,32 +4,42 @@ pkgname=pygtk pkgver=2.24.0 -pkgrel=5 +pkgrel=8 pkgdesc="Python bindings for the GTK widget set" -arch=('i686' 'x86_64') +url="http://www.pygtk.org/" +arch=('x86_64') license=('LGPL') -depends=('libglade' 'python2-cairo' 'pygobject') +depends=('libglade' 'python2-cairo' 'python2-gobject2') makedepends=('python2-numpy' 'pygobject2-devel') optdepends=('python2-numpy') -url="http://www.pygtk.org/" -source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 - python27.patch) +source=(https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 + python27.patch + fix-leaks-of-pango-objects.patch) sha256sums=('cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912' - '39a30456cba055a452bb55c74ef1ff2f5f7bfaad22855b4dd569ab009b56b682') + '39a30456cba055a452bb55c74ef1ff2f5f7bfaad22855b4dd569ab009b56b682' + '0ca9e910e9bb88897089dd19752a419aa78de15463df766cb19a1d0c2dd45bcb') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" - #https://bugzilla.gnome.org/show_bug.cgi?id=623965 + # https://bugzilla.gnome.org/show_bug.cgi?id=623965 patch -Np1 -i "${srcdir}/python27.patch" + # https://bugzilla.gnome.org/show_bug.cgi?id=660216 + patch -Np1 -i "${srcdir}/fix-leaks-of-pango-objects.patch" + + # Python 2 sed -i -e 's#env python$#env python2#' examples/pygtk-demo/{,demos/}*.py + + # No docs + sed -i '/^SUBDIRS =/s/docs//' Makefile.in } build() { cd "${srcdir}/${pkgname}-${pkgver}" - PYTHON=/usr/bin/python2 ./configure --prefix=/usr + PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-docs + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } diff --git a/abs/core/python_modules/pygtk/fix-leaks-of-pango-objects.patch b/abs/core/python_modules/pygtk/fix-leaks-of-pango-objects.patch new file mode 100644 index 0000000..c935dd6 --- /dev/null +++ b/abs/core/python_modules/pygtk/fix-leaks-of-pango-objects.patch @@ -0,0 +1,59 @@ +From eca72baa5616fbe4dbebea43c7e5940847dc5ab8 Mon Sep 17 00:00:00 2001 +From: "Owen W. Taylor" <otaylor@fishsoup.net> +Date: Tue, 27 Sep 2011 00:17:52 -0400 +Subject: Fix leaks of Pango objects + +Gtk.PrintContext.create_pango_context() +Gtk.PrintContext.create_pango_layout() +pangocairo.CairoContext.create_layout() + +were leaking the objects they returned. + +https://bugzilla.gnome.org/show_bug.cgi?id=660216 + +diff --git a/gtk/gtk-2.10.defs b/gtk/gtk-2.10.defs +index 69c7e0c..faa45e1 100644 +--- a/gtk/gtk-2.10.defs ++++ b/gtk/gtk-2.10.defs +@@ -1388,12 +1388,14 @@ + (define-method create_pango_context + (of-object "GtkPrintContext") + (c-name "gtk_print_context_create_pango_context") ++ (caller-owns-return #t) + (return-type "PangoContext*") + ) + + (define-method create_pango_layout + (of-object "GtkPrintContext") + (c-name "gtk_print_context_create_pango_layout") ++ (caller-owns-return #t) + (return-type "PangoLayout*") + ) + +diff --git a/pangocairo.override b/pangocairo.override +index bb923e6..5101107 100644 +--- a/pangocairo.override ++++ b/pangocairo.override +@@ -118,11 +118,16 @@ _wrap_pango_cairo_update_context(PyGObject *self, PyObject *args, PyObject *kwar + static PyObject * + _wrap_pango_cairo_create_layout(PyGObject *self) + { +- PangoLayout *ret; ++ PangoLayout *layout; ++ PyObject *ret; + +- ret = pango_cairo_create_layout(PycairoContext_GET(self)); ++ layout = pango_cairo_create_layout(PycairoContext_GET(self)); + /* pygobject_new handles NULL checking */ +- return pygobject_new((GObject *)ret); ++ ret = pygobject_new((GObject *)layout); ++ if (layout) ++ g_object_unref(layout); ++ ++ return ret; + } + + static PyObject * +-- +cgit v0.10.2 + diff --git a/abs/core/python_modules/python-opengl/LICENSE b/abs/core/python_modules/pyopengl/LICENSE index 11d88fb..11d88fb 100644 --- a/abs/core/python_modules/python-opengl/LICENSE +++ b/abs/core/python_modules/pyopengl/LICENSE diff --git a/abs/core/python_modules/pyopengl/PKGBUILD b/abs/core/python_modules/pyopengl/PKGBUILD new file mode 100644 index 0000000..dbb05c9 --- /dev/null +++ b/abs/core/python_modules/pyopengl/PKGBUILD @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Josh Taylor <joshtaylor.mail@gmail.com> +# Contributor: simo <simo@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgbase=pyopengl +pkgname=('python2-opengl' 'python-opengl') +pkgver=3.1.0 +pkgrel=3 +pkgdesc="The cross platform Python binding to OpenGL and related APIs" +url="http://pyopengl.sourceforge.net/" +license=('BSD') +arch=('any') +makedepends=('freeglut' 'python2-setuptools' 'python-setuptools') +source=("https://pypi.python.org/packages/source/P/PyOpenGL/PyOpenGL-${pkgver}.tar.gz" + 'LICENSE') +md5sums=('0de021941018d46d91e5a8c11c071693' + '0b53c508a63e5dbaf44cdfb0fa103b3a')\ + +prepare() { + cp -a PyOpenGL-${pkgver} python-PyOpenGL-${pkgver} + + # Fix the shebang + sed -i 's|#!/usr/bin/env python|#!/usr/bin/python2|' \ + PyOpenGL-${pkgver}/OpenGL/Tk/__init__.py + sed -i 's|#! /usr/bin/env python|#!/usr/bin/python2|' \ + PyOpenGL-${pkgver}/OpenGL/arrays/{_,}buffers.py +} + +package_python2-opengl() { + depends=('python2' 'freeglut') + conflicts=('python-pyopengl' 'python-opengl<=3.0.1-4') + replaces=('python-pyopengl' 'python-opengl<=3.0.1-4') + + cd PyOpenGL-${pkgver} + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -Dm644 "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python-opengl() { + depends=('python' 'freeglut') + + cd python-PyOpenGL-${pkgver} + python setup.py install --root="${pkgdir}" --optimize=1 + install -Dm644 "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + diff --git a/abs/core/python_modules/pyopenssl/PKGBUILD b/abs/core/python_modules/pyopenssl/PKGBUILD index d99cafa..2753f8f 100644 --- a/abs/core/python_modules/pyopenssl/PKGBUILD +++ b/abs/core/python_modules/pyopenssl/PKGBUILD @@ -4,16 +4,18 @@ # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgbase=pyopenssl -pkgname=('python2-pyopenssl') -pkgver=16.0.0 +pkgname=('python-pyopenssl' 'python2-pyopenssl') +pkgver=17.5.0 pkgrel=1 arch=('any') url="http://pypi.python.org/pypi/pyOpenSSL" license=('LGPL2.1') -makedepends=('openssl' 'python2-setuptools' 'python2-cryptography') -checkdepends=('python2-pytest-runner') -source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$pkgver.tar.gz) -md5sums=('9587d813dcf656e9f2760e41a3682dc3') +makedepends=('openssl' 'python-setuptools' 'python2-setuptools' 'python-cryptography' + 'python2-cryptography') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend' + 'python-flaky' 'python2-flaky') +source=("https://pypi.io/packages/source/p/pyOpenSSL/pyOpenSSL-$pkgver.tar.gz") +sha512sums=('f194662b5842f1e3a4fcb910b9f2e6482d1dcdf834f306acc3dd6d9723f65038f7bff550248fa6268d90c839c9d9e8248bb6c7d399495fe6aed25291b93ece86') prepare() { cp -a pyOpenSSL-$pkgver{,-py2} @@ -23,7 +25,7 @@ prepare() { build () { cd "$srcdir"/pyOpenSSL-$pkgver -# python setup.py build + python setup.py build cd "$srcdir"/pyOpenSSL-$pkgver-py2 python2 setup.py build @@ -32,16 +34,19 @@ build () { check () { ( cd "$srcdir"/pyOpenSSL-$pkgver - python setup.py ptr + python setup.py pytest cd "$srcdir"/pyOpenSSL-$pkgver-py2 - python2 setup.py ptr + python2 setup.py pytest ) || warning "Tests failed due to missing SSLv3_METHOD" } package_python-pyopenssl(){ pkgdesc="Python3 wrapper module around the OpenSSL library" depends=('openssl' 'python-six' 'python-cryptography') + replaces=('pyopenssl') + provides=('pyopenssl') + conflicts=('pyopenssl') cd "$srcdir"/pyOpenSSL-$pkgver python setup.py install --root="$pkgdir" --optimize=1 @@ -50,9 +55,6 @@ package_python-pyopenssl(){ package_python2-pyopenssl(){ pkgdesc="Python2 wrapper module around the OpenSSL library" depends=('openssl' 'python2-six' 'python2-cryptography') - replaces=('pyopenssl') - provides=('pyopenssl') - conflicts=('pyopenssl') cd "$srcdir"/pyOpenSSL-$pkgver-py2 python2 setup.py install --root="$pkgdir" --optimize=1 diff --git a/abs/core/python_modules/pyopenssl/__changelog b/abs/core/python_modules/pyopenssl/__changelog deleted file mode 100644 index 3de0e7a..0000000 --- a/abs/core/python_modules/pyopenssl/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: rm py 3 stuff -PKGBUILD: move provides/replaces/conflicts to python2-pyopenssl diff --git a/abs/core/python_modules/pyqt/PKGBUILD b/abs/core/python_modules/pyqt/PKGBUILD deleted file mode 100644 index 669bc4c..0000000 --- a/abs/core/python_modules/pyqt/PKGBUILD +++ /dev/null @@ -1,99 +0,0 @@ -# $Id: PKGBUILD 163679 2012-07-17 18:11:04Z andrea $ -# Maintainer: Andrea Scarpino <andrea@archlinux.org> -# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> -# Contributor: riai <riai@bigfoot.com> Ben <ben@benmazer.net> - -pkgbase=pyqt -pkgname=('pyqt-common' 'python2-pyqt') -pkgver=4.9.4 -pkgrel=2 -arch=('i686' 'x86_64') -url="http://riverbankcomputing.co.uk/software/pyqt/intro" -license=('GPL') -makedepends=('qt' 'python2-sip' - 'python-opengl' 'qt-assistant-compat' 'qtwebkit' 'python2-dbus') -source=("http://riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-${pkgver}.tar.gz" - 'fix-pyuic4.patch') -md5sums=('a0b6a820633366365af5124ddbd059c7' - '097651aea0bafded5abdfd6d62afd2ad') - -build() { - # FS#30728 - cd "${srcdir}"/PyQt-x11-gpl-${pkgver} - patch -p1 -i "${srcdir}"/fix-pyuic4.patch - cd .. - - cp -r PyQt-x11-gpl-${pkgver} Py2Qt-x11-gpl-${pkgver} - - #cd "${srcdir}/PyQt-x11-gpl-${pkgver}" - #python configure.py \ - # --confirm-license \ - # --qsci-api - - # Thanks Gerardo for the rpath fix - #find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' - - #make - - ### Python2 version ### - cd "${srcdir}/Py2Qt-x11-gpl-${pkgver}" - python2 configure.py \ - --confirm-license \ - -v /usr/share/sip \ - --qsci-api - - # Thanks Gerardo for the rpath fix - find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' - - make -} - -package_pyqt-common(){ - pkgdesc="Common PyQt files shared between pyqt and python2-pyqt" - - cd "${srcdir}/Py2Qt-x11-gpl-${pkgver}" - make -C pyrcc DESTDIR="${pkgdir}" install - make -C pylupdate DESTDIR="${pkgdir}" install - make -C designer INSTALL_ROOT="${pkgdir}" install - - install -Dm644 PyQt4.api "${pkgdir}"/usr/share/qt/qsci/api/python/PyQt4.api -} - -package_pyqt(){ - pkgdesc="A set of Python 3.x bindings for the Qt toolkit" - depends=('qtwebkit' 'python-sip' 'python-dbus' 'pyqt-common') - optdepends=('phonon: enable audio and video in PyQt applications' - 'qscintilla: QScintilla API' - 'qt-assistant-compat: add PyQt online help in Qt Assistant') - - cd "${srcdir}/PyQt-x11-gpl-${pkgver}" - # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR - make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install - - # Provided by pyqt-common - rm "${pkgdir}"/usr/bin/{pylupdate4,pyrcc4} - rm "${pkgdir}"/usr/lib/qt/plugins/designer/libpythonplugin.so - rm "${pkgdir}"/usr/share/qt/qsci/api/python/PyQt4.api -} - -package_python2-pyqt(){ - pkgdesc="A set of Python 2.x bindings for the Qt toolkit" - depends=('qtwebkit' 'python2-sip' 'python2-dbus' 'pyqt-common') - optdepends=('phonon: enable audio and video in PyQt applications' - 'python-opengl: enable OpenGL 3D graphics in PyQt applications' - 'qscintilla: QScintilla API' - 'qt-assistant-compat: add PyQt online help in Qt Assistant') - provides=('python2-qt') - - cd "${srcdir}/Py2Qt-x11-gpl-${pkgver}" - # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR - make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install - - # Fix conflicts with pyqt - mv "${pkgdir}"/usr/bin/{,python2-}pyuic4 - - # Provided by pyqt-common - rm "${pkgdir}"/usr/bin/{pylupdate4,pyrcc4} - rm "${pkgdir}"/usr/lib/qt/plugins/designer/libpythonplugin.so - rm "${pkgdir}"/usr/share/qt/qsci/api/python/PyQt4.api -} diff --git a/abs/core/python_modules/pyqt/__changelog b/abs/core/python_modules/pyqt/__changelog deleted file mode 100644 index 9731eb3..0000000 --- a/abs/core/python_modules/pyqt/__changelog +++ /dev/null @@ -1 +0,0 @@ -removed python3 diff --git a/abs/core/python_modules/pyqt/fix-pyuic4.patch b/abs/core/python_modules/pyqt/fix-pyuic4.patch deleted file mode 100644 index 2173443..0000000 --- a/abs/core/python_modules/pyqt/fix-pyuic4.patch +++ /dev/null @@ -1,91 +0,0 @@ -# HG changeset patch -# User Phil Thompson <phil at riverbankcomputing.com> -# Date 2012-07-13 13:39:28 +0100 -# Node ID 29b668ada14c1428a3bbfe8f0324c6626bd5ac9a -# Parent fd0f3da9d79ca9858d10a20c15fb85456cb832d7 -Fixed a regression in pyuic's handling of custom widgets. - -diff --git a/pyuic/uic/Compiler/qobjectcreator.py b/pyuic/uic/Compiler/qobjectcreator.py ---- a/pyuic/uic/Compiler/qobjectcreator.py -+++ b/pyuic/uic/Compiler/qobjectcreator.py -@@ -1,6 +1,6 @@ - ############################################################################# - ## --## Copyright (C) 2011 Riverbank Computing Limited. -+## Copyright (C) 2012 Riverbank Computing Limited. - ## Copyright (C) 2006 Thorsten Marek. - ## All right reserved. - ## -@@ -100,7 +100,6 @@ - assert widgetClass not in self._widgets - self._widgets[widgetClass] = (baseClass, module) - -- - def _resolveBaseclass(self, baseClass): - try: - for x in range(0, 10): -@@ -114,19 +113,17 @@ - except KeyError: - raise ValueError("unknown baseclass %s" % baseClass) - -- - def search(self, cls): - try: -- self._usedWidgets.add(cls) - baseClass = self._resolveBaseclass(self._widgets[cls][0]) - DEBUG("resolved baseclass of %s: %s" % (cls, baseClass)) -- -- return type(cls, (baseClass,), -- {"module" : ""}) -- - except KeyError: - return None - -+ self._usedWidgets.add(cls) -+ -+ return type(cls, (baseClass, ), {"module" : ""}) -+ - def _writeImportCode(self): - imports = {} - for widget in self._usedWidgets: -diff --git a/pyuic/uic/objcreator.py b/pyuic/uic/objcreator.py ---- a/pyuic/uic/objcreator.py -+++ b/pyuic/uic/objcreator.py -@@ -102,19 +102,26 @@ - self._modules.append(self._customWidgets) - - def createQObject(self, classname, *args, **kwargs): -- # Handle scoped names, typically static factory methods. -- parts = classname.split('.') -- factory = self.findQObjectType(parts[0]) -+ # Handle regular and custom widgets. -+ factory = self.findQObjectType(classname) - -- if factory is not None: -- for part in parts[1:]: -- factory = getattr(factory, part, None) -- if factory is None: -- break -- else: -- return self._cpolicy.instantiate(factory, *args, **kwargs) -+ if factory is None: -+ # Handle scoped names, typically static factory methods. -+ parts = classname.split('.') - -- raise NoSuchWidgetError(classname) -+ if len(parts) > 1: -+ factory = self.findQObjectType(parts[0]) -+ -+ if factory is not None: -+ for part in parts[1:]: -+ factory = getattr(factory, part, None) -+ if factory is None: -+ break -+ -+ if factory is None: -+ raise NoSuchWidgetError(classname) -+ -+ return self._cpolicy.instantiate(factory, *args, **kwargs) - - def invoke(self, rname, method, args=()): - return self._cpolicy.invoke(rname, method, args) diff --git a/abs/core/python_modules/pyqt5/PKGBUILD b/abs/core/python_modules/pyqt5/PKGBUILD new file mode 100644 index 0000000..faad5db --- /dev/null +++ b/abs/core/python_modules/pyqt5/PKGBUILD @@ -0,0 +1,128 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Yichao Yu <yyc1992@gmail.com> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> +# Contributor: riai <riai@bigfoot.com> Ben <ben@benmazer.net> + +pkgbase=pyqt5 +pkgname=('pyqt5-common' 'python-pyqt5' 'python2-pyqt5') +pkgver=5.10.1 +pkgrel=1 +arch=('x86_64') +url="http://riverbankcomputing.co.uk/software/pyqt/intro" +license=('GPL') +makedepends=('python-sip' 'python2-sip' 'python-opengl' 'python2-opengl' + 'python2-dbus' 'python-dbus' 'qt5-connectivity' + 'qt5-multimedia' 'qt5-tools' 'qt5-serialport' 'qt5-svg' + 'qt5-webengine' 'qt5-webkit' 'qt5-websockets' 'qt5-x11extras' 'qt5-networkauth') +source=("http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt5_gpl-$pkgver.tar.gz" pyqt-support-new-qt.patch) +sha512sums=('04cd0292f7a088f9c0d088d7c73ec96cfc40253f771dfdf194eb92be7635e6fcaf04863fa24215e9c34a096658549bb2feeb8d8fdca1e39ed87f0256ef0f790b' + '9e4184291c0ece0bf375da3e0cf6e3f22df33eea1ee2b981fe9e2a0ba7d625583dd513c029c49562189986c0145262ac2aa8e5aa85701a981b3ed4061f4acf36') + +prepare() { + # Support new versions of Qt - don't remove, needs to be reapplied after every new Qt release + pushd PyQt5_gpl-$pkgver + # patch -p1 -i ../pyqt-support-new-qt.patch + popd + + # The additional include path was removed due to this line, I don't really know why they are doing this... + sed -i '/target_config.dbus_inc_dirs = \[\]/d' PyQt5_gpl-$pkgver/configure.py + + cp -a PyQt5_gpl-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/PyQt5_gpl-$pkgver + python configure.py \ + --confirm-license \ + --no-sip-files \ + --qsci-api \ + -q /usr/bin/qmake-qt5 + + # Thanks Gerardo for the rpath fix + find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' + + make + + cd "$srcdir"/PyQt5_gpl-$pkgver-py2 + python2 configure.py \ + --confirm-license \ + --no-sip-files \ + --qsci-api \ + -q /usr/bin/qmake-qt5 + + # Thanks Gerardo for the rpath fix + find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' + + make +} + +package_pyqt5-common(){ + pkgdesc="Common PyQt files shared between python-pyqt5 and python2-pyqt5" + depends=('qt5-base') + + cd PyQt5_gpl-$pkgver + install -Dm644 PyQt5.api "$pkgdir"/usr/share/qt/qsci/api/python/PyQt5.api + + install -d "$pkgdir"/usr/share/sip/PyQt5 + cp -a sip/* "$pkgdir"/usr/share/sip/PyQt5 +} + +package_python-pyqt5(){ + pkgdesc="A set of Python 3.x bindings for the Qt5 toolkit" + depends=('python-sip' 'pyqt5-common') + optdepends=('python-opengl: enable OpenGL 3D graphics in PyQt applications' + 'python-dbus: for python-dbus mainloop support' + 'qt5-multimedia: QtMultimedia, QtMultimediaWidgets' + 'qt5-tools: QtHelp, QtDesigner' + 'qt5-svg: QtSvg' + 'qt5-webkit: QtWebKit, QtWebKitWidgets' + 'qt5-xmlpatterns: QtXmlPatterns' + 'qt5-declarative: QtQml, qmlplugin' + 'qt5-serialport: QtSerialPort' + 'qt5-websockets: QtWebSockets' + 'qt5-connectivity: QtNfc, QtBluetooth' + 'qt5-webengine: QtWebEngine, QtWebEngineCore, QtWebEngineWidgets' + 'qt5-x11extras: QtX11Extras' + 'qt5-networkauth: QtNetworkAuth') + + cd PyQt5_gpl-$pkgver + # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR + make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install + + # Provided by pyqt-common + rm "$pkgdir"/usr/share/qt/qsci/api/python/PyQt5.api +} + +package_python2-pyqt5(){ + pkgdesc="A set of Python 2.x bindings for the Qt5 toolkit" + depends=('python2-sip' 'pyqt5-common' 'python2-enum34') + optdepends=('python2-opengl: enable OpenGL 3D graphics in PyQt applications' + 'python-dbus: for python-dbus mainloop support' + 'qt5-multimedia: QtMultimedia, QtMultimediaWidgets' + 'qt5-tools: QtHelp, QtDesigner' + 'qt5-svg: QtSvg' + 'qt5-webkit: QtWebKit, QtWebKitWidgets' + 'qt5-xmlpatterns: QtXmlPatterns' + 'qt5-declarative: QtQml, qmlplugin' + 'qt5-serialport: QtSerialPort' + 'qt5-websockets: QtWebSockets' + 'qt5-connectivity: QtNfc, QtBluetooth' + 'qt5-webengine: QtWebEngine, QtWebEngineCore, QtWebEngineWidgets' + 'qt5-x11extras: QtX11Extras' + 'qt5-networkauth: QtNetworkAuth') + + cd PyQt5_gpl-$pkgver-py2 + # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR + make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install + + # Fix conflicts with python-pyqt5 + mv "$pkgdir"/usr/bin/{,python2-}pyuic5 + mv "$pkgdir"/usr/bin/{,python2-}pylupdate5 + mv "$pkgdir"/usr/bin/{,python2-}pyrcc5 + + rm "$pkgdir"/usr/lib/qt/plugins/designer/libpyqt5.so + rm "$pkgdir"/usr/lib/qt/plugins/PyQt5/libpyqt5qmlplugin.so + rm "$pkgdir"/usr/share/qt/qsci/api/python/PyQt5.api +} diff --git a/abs/core/python_modules/pyqt5/pyqt-support-new-qt.patch b/abs/core/python_modules/pyqt5/pyqt-support-new-qt.patch new file mode 100644 index 0000000..3dd100a --- /dev/null +++ b/abs/core/python_modules/pyqt5/pyqt-support-new-qt.patch @@ -0,0 +1,12 @@ +diff -ru a/sip/QtCore/QtCoremod.sip b/sip/QtCore/QtCoremod.sip +--- a/sip/QtCore/QtCoremod.sip 2016-12-25 18:56:11.000000000 +0100 ++++ b/sip/QtCore/QtCoremod.sip 2017-01-24 12:03:50.707514377 +0100 +@@ -22,7 +22,7 @@ + + %Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", use_limited_api=True) + +-%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_6_2 Qt_5_6_3 Qt_5_6_4 Qt_5_6_5 Qt_5_6_6 Qt_5_6_7 Qt_5_6_8 Qt_5_6_9 Qt_5_7_0 Qt_5_7_1 Qt_5_8_0 Qt_5_8_1 Qt_5_9_0 Qt_5_9_1 Qt_5_9_2 Qt_5_9_3 Qt_5_10_0} ++%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_6_2 Qt_5_6_3 Qt_5_6_4 Qt_5_6_5 Qt_5_6_6 Qt_5_6_7 Qt_5_6_8 Qt_5_6_9 Qt_5_7_0 Qt_5_7_1 Qt_5_8_0 Qt_5_8_1 Qt_5_9_0 Qt_5_9_1 Qt_5_9_2 Qt_5_9_3 Qt_5_10_0 Qt_5_10_1} + + %Platforms {WS_X11 WS_WIN WS_MACX} + diff --git a/abs/core/python_modules/python-apipkg/PKGBUILD b/abs/core/python_modules/python-apipkg/PKGBUILD new file mode 100644 index 0000000..7e085a7 --- /dev/null +++ b/abs/core/python_modules/python-apipkg/PKGBUILD @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-apipkg +pkgname=('python-apipkg' 'python2-apipkg') +pkgver=1.4 +pkgrel=3 +pkgdesc="Namespace control and lazy-import mechanism" +arch=('any') +license=('MIT') +url="https://bitbucket.org/hpk42/apipkg" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest' 'python2-pytest') +source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz") +sha512sums=('118f806706944513f50d3cdef596b32f8ce585cfaf94d2531a6d260f90a0e2147177161aaa6f5d6823150e6182d0f73be3dc01259b8a2f8d710733a22ea54789') + +prepare() { + cp -a apipkg-${pkgver}{,-py2} +} + +build() { + cd "$srcdir/apipkg-${pkgver}" + python setup.py build + + cd "$srcdir/apipkg-${pkgver}-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/apipkg-${pkgver}" + py.test + + cd "$srcdir/apipkg-${pkgver}-py2" + py.test2 +} + +package_python-apipkg() { + depends=('python') + + cd apipkg-${pkgver} + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-apipkg() { + depends=('python2') + + cd apipkg-${pkgver}-py2 + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/abs/core/python_modules/python-appdirs/PKGBUILD b/abs/core/python_modules/python-appdirs/PKGBUILD index 95552c7..2b6a71c 100644 --- a/abs/core/python_modules/python-appdirs/PKGBUILD +++ b/abs/core/python_modules/python-appdirs/PKGBUILD @@ -3,14 +3,14 @@ # Contributor: Tobias Roettger <toroettg@gmail.com> pkgbase=python-appdirs -pkgname=(python2-appdirs) +pkgname=(python-appdirs python2-appdirs) pkgver=1.4.3 -pkgrel=1 +pkgrel=2 pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".' arch=('any') url="https://github.com/ActiveState/appdirs" license=('MIT') -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') source=("https://pypi.io/packages/source/a/appdirs/appdirs-$pkgver.tar.gz") md5sums=('44c679904082a2133f5566c8a0d3ab42') @@ -19,16 +19,16 @@ prepare() { } build() { -# cd "$srcdir"/appdirs-$pkgver -# python setup.py build + cd "$srcdir"/appdirs-$pkgver + python setup.py build cd "$srcdir"/appdirs-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir"/appdirs-$pkgver -# python setup.py test + cd "$srcdir"/appdirs-$pkgver + python setup.py test cd "$srcdir"/appdirs-$pkgver-py2 python2 setup.py test diff --git a/abs/core/python_modules/python-appdirs/__changelog b/abs/core/python_modules/python-appdirs/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-appdirs/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-asn1crypto/PKGBUILD b/abs/core/python_modules/python-asn1crypto/PKGBUILD new file mode 100644 index 0000000..2caede9 --- /dev/null +++ b/abs/core/python_modules/python-asn1crypto/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com > + +pkgbase=python-asn1crypto +pkgname=('python-asn1crypto' 'python2-asn1crypto') +pkgver=0.24.0 +pkgrel=1 +arch=('any') +license=('MIT') +pkgdesc="Python ASN.1 library with a focus on performance and a pythonic API" +url="https://github.com/wbond/asn1crypto" +makedepends=('python-setuptools' 'python2-setuptools') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz") +sha512sums=('426cc380903b4dd7aadd7b831e3a11ee3442c961a33b856d4aa8d9060e829f2e0ad905a60c4d6504569718fe2cee01d9be31628c89ef030bc34281e381c898e8') + +prepare() { + cp -a asn1crypto-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/asn1crypto-$pkgver + python setup.py build + + cd "$srcdir"/asn1crypto-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/asn1crypto-$pkgver + python run.py tests + + cd "$srcdir"/asn1crypto-$pkgver-py2 + python2 run.py tests +} + +package_python-asn1crypto() { + depends=('python') + + cd asn1crypto-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-asn1crypto/LICENSE +} + +package_python2-asn1crypto() { + depends=('python2') + + cd asn1crypto-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-asn1crypto/LICENSE +} diff --git a/abs/core/python_modules/python-attrs/PKGBUILD b/abs/core/python_modules/python-attrs/PKGBUILD new file mode 100644 index 0000000..ba6f128 --- /dev/null +++ b/abs/core/python_modules/python-attrs/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-attrs +pkgname=('python-attrs' 'python2-attrs') +pkgver=17.4.0 +pkgrel=1 +pkgdesc="Attributes without boilerplate." +arch=('any') +license=('MIT') +url="https://attrs.readthedocs.org/" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-zope-interface' + 'python2-zope-interface' 'python-hypothesis' 'python2-hypothesis') +source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz") +sha512sums=('b631cd5af1be7c78175230363a3cf9d37cb0237d87b24f994812b5734985d114708d5bf7ee5d92b8b13c6b8daa313efde4a9f60f0630df0b62bbcf4928a016ff') + +prepare() { + cp -a attrs-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/attrs-$pkgver + python setup.py build + + cd "$srcdir"/attrs-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/attrs-$pkgver + python setup.py pytest + + cd "$srcdir"/attrs-$pkgver-py2 + python2 setup.py pytest +} + +package_python-attrs() { + depends=('python') + + cd attrs-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-attrs() { + depends=('python2') + + cd attrs-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/python-automat/PKGBUILD b/abs/core/python_modules/python-automat/PKGBUILD new file mode 100644 index 0000000..cde0c88 --- /dev/null +++ b/abs/core/python_modules/python-automat/PKGBUILD @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-automat +pkgname=('python-automat' 'python2-automat') +pkgver=0.6.0 +pkgrel=1 +arch=('any') +license=('MIT') +pkgdesc="Self-service finite-state machines for the programmer on the go." +url="https://github.com/glyph/automat" +makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'm2r' 'python2-m2r' 'python-attrs' + 'python2-attrs') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/glyph/automat/archive/v$pkgver.tar.gz") +sha512sums=('18488b7815ee6f1c19db17fef7b63b7c8b46639a7a2cd5060dd611c880d9c7828bf2ebf978c2eef560140b66333a94060d9f77c9e8f89342425229065a0a6f7f') + +prepare() { + cp -a automat-$pkgver{,-py2} + + # Set version for setuptools_scm + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd "$srcdir"/automat-$pkgver + python setup.py build + + cd "$srcdir"/automat-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/automat-$pkgver + python setup.py pytest + + cd "$srcdir"/automat-$pkgver-py2 + python2 setup.py pytest +} + +package_python-automat() { + depends=('python-attrs' 'python-setuptools') + + cd automat-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-automat/LICENSE +} + +package_python2-automat() { + depends=('python2-attrs' 'python2-setuptools') + + cd automat-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-automat/LICENSE + + mv "$pkgdir"/usr/bin/automat-visualize{,2} +} diff --git a/abs/core/python_modules/python-babel/PKGBUILD b/abs/core/python_modules/python-babel/PKGBUILD new file mode 100644 index 0000000..fcbdc4b --- /dev/null +++ b/abs/core/python_modules/python-babel/PKGBUILD @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Morten Linderud <foxboron@archlinux.no> +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor : Giedrius Slavinskas <giedrius25@gmail.com> + +pkgbase=python-babel +pkgname=(python-babel python2-babel) +pkgver=2.5.3 +pkgrel=4 +pkgdesc="A collection of tools for internationalizing Python applications" +url="http://babel.pocoo.org/" +license=("BSD") +arch=('any') +makedepends=('python' 'python2' + 'python-setuptools' 'python2-setuptools' + 'python-pytz' 'python2-pytz') +noextract=("core-28.zip") +source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz" + "core-29.zip::http://unicode.org/Public/cldr/29/core.zip") +sha256sums=('4c231f28875552abe18c6c10829cec0884d7eeb27423b562357250dc32090cb9' + 'b3308f8d3b4a80045ce4262b2784ac8d99775e80aaacafbf1277833f6b28ffda') + +prepare() { + cp -a babel-$pkgver{,-py2} + cp "$srcdir"/core-29.zip babel-$pkgver-py2/cldr/ + cp "$srcdir"/core-29.zip babel-$pkgver/cldr/ +} + +build(){ + cd "$srcdir/babel-$pkgver" + python setup.py import_cldr + python setup.py build + + cd "$srcdir/babel-$pkgver-py2" + python2 setup.py import_cldr + python2 setup.py build +} + +package_python-babel() { + depends=('python' 'python-pytz') + + cd "$srcdir"/babel-${pkgver} + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-babel() { + depends=('python2' 'python2-pytz') + + cd "$srcdir"/babel-${pkgver}-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + mv "$pkgdir"/usr/bin/pybabel "$pkgdir"/usr/bin/pybabel2 + install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/abs/core/python_modules/python-beaker/PKGBUILD b/abs/core/python_modules/python-beaker/PKGBUILD index fbc3bae..8947e3f 100644 --- a/abs/core/python_modules/python-beaker/PKGBUILD +++ b/abs/core/python_modules/python-beaker/PKGBUILD @@ -1,42 +1,60 @@ # $Id$ -# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com > -pkgname=('python2-beaker') -pkgver=1.6.4 +pkgbase=python-beaker +pkgname=('python-beaker' 'python2-beaker') +pkgver=1.8.1 pkgrel=2 arch=('any') license=('custom') pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications" url="http://beaker.groovie.org/" -makedepends=('python2-setuptools') -source=("http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-${pkgver}.tar.gz") -md5sums=('c2e102870ed4c53104dec48ceadf8e9d') +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-sqlalchemy' 'python2-sqlalchemy' + 'python-crypto' 'python2-crypto' 'python-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest' + 'python-beautifulsoup4' 'python2-beautifulsoup4') +source=("git+https://github.com/bbangert/beaker.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a beaker{,-py2} + + sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/beaker/crypto/pbkdf2.py + sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker-py2/beaker/crypto/pbkdf2.py +} build() { - cp -r Beaker-${pkgver} python2-Beaker-${pkgver} - - cd "${srcdir}/Beaker-${pkgver}" - sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/crypto/pbkdf2.py -# python3 setup.py build + cd "$srcdir"/beaker + python3 setup.py build - cd "${srcdir}/python2-Beaker-${pkgver}" - sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker/crypto/pbkdf2.py + cd "$srcdir"/beaker-py2 python2 setup.py build } -#package_python-beaker() { -# depends=('python') +check() { + cd "$srcdir"/beaker + mkdir tests_py3 + 2to3 -w -n -o tests_py3 tests/*.py + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3 --py3where=tests_py3 + + cd "$srcdir"/beaker-py2 + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2 +} + +package_python-beaker() { + depends=('python') -# cd "${srcdir}/Beaker-${pkgver}" -# python3 setup.py install --root="${pkgdir}" --optimize=1 -# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE" -#} + cd beaker + python3 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-beaker/LICENSE +} package_python2-beaker() { depends=('python2') - cd "${srcdir}/python2-Beaker-${pkgver}" - python2 setup.py install --root="${pkgdir}" --optimize=1 - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-beaker/LICENSE" + cd beaker-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-beaker/LICENSE } diff --git a/abs/core/python_modules/python-beaker/__changelog b/abs/core/python_modules/python-beaker/__changelog deleted file mode 100644 index 9715c21..0000000 --- a/abs/core/python_modules/python-beaker/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD - comment out all python 3 stuff and only build for py 2 diff --git a/abs/core/python_modules/python-beautifulsoup4/PKGBUILD b/abs/core/python_modules/python-beautifulsoup4/PKGBUILD index 9af6084..5ed3781 100644 --- a/abs/core/python_modules/python-beautifulsoup4/PKGBUILD +++ b/abs/core/python_modules/python-beautifulsoup4/PKGBUILD @@ -4,15 +4,15 @@ # Contributor: Giovanni Scafora <giovanni@archlinux.org> pkgbase=python-beautifulsoup4 -pkgname=('python2-beautifulsoup4') +pkgname=('python-beautifulsoup4' 'python2-beautifulsoup4') pkgver=4.6.0 -pkgrel=1 +pkgrel=2 pkgdesc="A Python HTML/XML parser designed for quick turnaround projects like screen-scraping" arch=('any') url="http://www.crummy.com/software/BeautifulSoup/index.html" license=('PSF') -makedepends=('python2-setuptools') -checkdepends=('python2-pytest') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest' 'python2-pytest') source=("http://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver%.*}/${pkgbase#*-}-$pkgver.tar.gz") sha512sums=('1a7eee4218e58cc3852e71fe4f0892f673bb46a851941264766a38eff8ef05d612d88b4641fcb478ce8f66ac50dc987ca039923c4bbb11867c74813289f7e578') @@ -21,16 +21,16 @@ prepare() { } build() { -# cd "$srcdir"/beautifulsoup4-$pkgver -# python setup.py build + cd "$srcdir"/beautifulsoup4-$pkgver + python setup.py build cd "$srcdir"/beautifulsoup4-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir"/beautifulsoup4-$pkgver/build -# py.test + cd "$srcdir"/beautifulsoup4-$pkgver/build + py.test cd "$srcdir"/beautifulsoup4-$pkgver-py2/build py.test2 diff --git a/abs/core/python_modules/python-beautifulsoup4/__changelog b/abs/core/python_modules/python-beautifulsoup4/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-beautifulsoup4/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-cairo/PKGBUILD b/abs/core/python_modules/python-cairo/PKGBUILD new file mode 100644 index 0000000..9f91cbb --- /dev/null +++ b/abs/core/python_modules/python-cairo/PKGBUILD @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Angel Velasquez <angvp@archlinux.org> +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgbase=python-cairo +pkgname=(python-cairo python2-cairo) +pkgver=1.16.2 +pkgrel=1 +pkgdesc="Python bindings for the cairo graphics library" +arch=('x86_64') +url="https://pycairo.readthedocs.io/en/latest/" +license=('LGPL2.1' 'MPL') +makedepends=(python python2 cairo git) +_commit=c74dc1e3589bd8a197582836c7db2ab400a988bb # tags/v1.16.2 +source=("git+https://github.com/pygobject/pycairo/#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd pycairo + git describe --tags | sed 's/^v//;s/-/+/g' +} + + +build() { + cd pycairo + python2 setup.py build + python setup.py build +} + +package_python2-cairo() { + depends=('cairo' 'python2') + pkgdesc="Python2 bindings for the cairo graphics library" + + cd pycairo + python2 setup.py install --skip-build --root="${pkgdir}" --optimize='1' +} + +package_python-cairo() { + depends=('cairo' 'python') + + cd pycairo + python setup.py install --skip-build --root="${pkgdir}" --optimize='1' +} diff --git a/abs/core/python_modules/python-cffi/PKGBUILD b/abs/core/python_modules/python-cffi/PKGBUILD index 5a4ef04..fdf8f2f 100644 --- a/abs/core/python_modules/python-cffi/PKGBUILD +++ b/abs/core/python_modules/python-cffi/PKGBUILD @@ -3,51 +3,51 @@ # Contributor: lilydjwg <lilydjwg@gmail.com> pkgbase=python-cffi -pkgname=(python2-cffi) -pkgver=1.5.2 -_revision=4640c7bfb3166763943b428bc7ae9d3585e45c34 +pkgname=(python-cffi python2-cffi) +pkgver=1.11.5 pkgrel=1 pkgdesc="Foreign Function Interface for Python calling C code" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://cffi.readthedocs.org/" license=('MIT') -makedepends=('python2-setuptools' 'python2-pycparser' 'mercurial') -checkdepends=('python2-pytest-runner') -source=("hg+https://felixonmars@bitbucket.org/cffi/cffi#revision=$_revision") -sha512sums=('SKIP') +makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/cffi/cffi/get/v$pkgver.tar.gz") +sha512sums=('f2f485aa8c541f82a0caef41ef48f7c0b3432208588e4748463fd7ceffb762c645751d66e910b7d56b22cc51a2e99305a626de4abc2f2fae13c6a58009d41651') prepare() { - cp -a cffi{,-py2} + mv cffi-cffi-* cffi-$pkgver + cp -a cffi-$pkgver{,-py2} } build() { -# cd "$srcdir/cffi" -# python3 setup.py build + cd "$srcdir"/cffi-$pkgver + python setup.py build - cd "$srcdir/cffi-py2" + cd "$srcdir"/cffi-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir/cffi" - python3 setup.py ptr + cd "$srcdir"/cffi-$pkgver + python setup.py pytest - cd "$srcdir/cffi-py2" - python2 setup.py ptr + cd "$srcdir"/cffi-$pkgver-py2 + python2 setup.py pytest } package_python-cffi() { depends=('python-pycparser') - cd "$srcdir/cffi" - python3 setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd cffi-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python2-cffi() { depends=('python2-pycparser') - cd "$srcdir/cffi-py2" - python2 setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd cffi-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/abs/core/python_modules/python-cffi/__changelog b/abs/core/python_modules/python-cffi/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-cffi/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-chardet/PKGBUILD b/abs/core/python_modules/python-chardet/PKGBUILD index 13bc9fa..6b6332d 100644 --- a/abs/core/python_modules/python-chardet/PKGBUILD +++ b/abs/core/python_modules/python-chardet/PKGBUILD @@ -4,13 +4,13 @@ # Contributor: William Rea <sillywilly@gmail.com> pkgbase=python-chardet -pkgname=('python2-chardet') +pkgname=('python-chardet' 'python2-chardet') pkgver=3.0.4 -pkgrel=1 +pkgrel=2 arch=('any') url="https://github.com/chardet/chardet" license=('LGPL') -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') source=("https://pypi.io/packages/source/c/chardet/chardet-${pkgver}.tar.gz") sha512sums=('61a03b23447a2bfe52ceed4dd1b9afdb5784da1933a623776883ee9f297e341f633e27f0ce0230bd5fdc5fdb5382105ab42736a74a417ddeb9f83af57455dba5') diff --git a/abs/core/python_modules/python-chardet/__changelog b/abs/core/python_modules/python-chardet/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-chardet/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-cherrypy/PKGBUILD b/abs/core/python_modules/python-cherrypy/PKGBUILD index 5fd491b..19f1a4e 100644 --- a/abs/core/python_modules/python-cherrypy/PKGBUILD +++ b/abs/core/python_modules/python-cherrypy/PKGBUILD @@ -4,14 +4,14 @@ # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org> # Contributor: Armando M. Baratti <amblistas@ajato.com.br> # Contributor: Florian Richter <Florian_Richter@gmx.de> -pkgname=('python2-cherrypy') +pkgname=('python-cherrypy' 'python2-cherrypy') pkgver=8.9.1 -pkgrel=1 +pkgrel=2 pkgdesc="A pythonic, object-oriented web development framework" arch=('any') url="http://www.cherrypy.org" license=('BSD') -makedepends=('python2' 'python2-setuptools') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') checkdepends=('python2-mock') source=("https://pypi.python.org/packages/56/aa/91005730bdc5c0da8291a2f411aacbc5c3729166c382e2193e33f28044a3/CherryPy-8.9.1.tar.gz") md5sums=('7abe5198e48f14cfee57a07d23875a4b') @@ -19,8 +19,8 @@ md5sums=('7abe5198e48f14cfee57a07d23875a4b') build() { cp -r CherryPy-${pkgver} CherryPy-${pkgver}-py2 -# cd CherryPy-${pkgver} -# python ./setup.py build + cd CherryPy-${pkgver} + python ./setup.py build cd "${srcdir}/CherryPy-${pkgver}-py2" python2 ./setup.py build diff --git a/abs/core/python_modules/python-cherrypy/__changelog b/abs/core/python_modules/python-cherrypy/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-cherrypy/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-click/PKGBUILD b/abs/core/python_modules/python-click/PKGBUILD index 06d9ce5..c5334bd 100644 --- a/abs/core/python_modules/python-click/PKGBUILD +++ b/abs/core/python_modules/python-click/PKGBUILD @@ -2,15 +2,15 @@ # Contributor: Carl George < arch at cgtx dot us > pkgbase=python-click -pkgname=("python2-click") +pkgname=("python-click" "python2-click") _realname=click pkgver=6.7 -pkgrel=1 +pkgrel=2 pkgdesc="A simple wrapper around optparse for powerful command line utilities" arch=("any") url="http://click.pocoo.org/" license=("BSD") -makedepends=("python2-setuptools") +makedepends=("python-setuptools" "python2-setuptools") source=("https://github.com/pallets/click/archive/${pkgver}.tar.gz") sha256sums=('40b20383dcbfbe73ab0917374f3dbe866fcf0d88c2a348618bf4419ea136f0dd') @@ -19,8 +19,8 @@ prepare() { } build() { -# cd "${srcdir}/${_realname}-${pkgver}" -# python setup.py build + cd "${srcdir}/${_realname}-${pkgver}" + python setup.py build cd "${srcdir}/${_realname}-${pkgver}-python2" python2 setup.py build diff --git a/abs/core/python_modules/python-constantly/PKGBUILD b/abs/core/python_modules/python-constantly/PKGBUILD new file mode 100644 index 0000000..dd9445f --- /dev/null +++ b/abs/core/python_modules/python-constantly/PKGBUILD @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-constantly +pkgname=('python-constantly' 'python2-constantly') +pkgver=15.1.0 +pkgrel=2 +pkgdesc='Symbolic constants in Python' +arch=('any') +license=('MIT') +url='https://github.com/twisted/constantly' +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-twisted' 'python2-twisted') +source=("git+https://github.com/twisted/constantly.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a constantly{,-py2} +} + +build() { + cd "$srcdir"/constantly + python setup.py build + + cd "$srcdir"/constantly-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/constantly + python setup.py ptr + + cd "$srcdir"/constantly-py2 + python2 setup.py ptr +} + +package_python-constantly() { + depends=('python') + + cd constantly + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-constantly() { + depends=('python2') + + cd constantly-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-coverage/PKGBUILD b/abs/core/python_modules/python-coverage/PKGBUILD new file mode 100644 index 0000000..b1d2326 --- /dev/null +++ b/abs/core/python_modules/python-coverage/PKGBUILD @@ -0,0 +1,72 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Clément Démoulins <clement@archivel.fr> +# Contributor: Fazlul Shahriar <fshahriar@gmail.com> + +pkgbase=python-coverage +pkgname=(python-coverage python2-coverage) +pkgver=4.5.1 +pkgrel=1 +pkgdesc="A tool for measuring code coverage of Python programs" +arch=('x86_64') +url="http://nedbatchelder.com/code/coverage/" +license=('Apache') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-mock' 'python2-mock' 'python-pytest-xdist' 'python2-pytest-xdist' + 'python-pycontracts' 'python2-pycontracts' 'python-greenlet' 'python2-greenlet' + 'python-virtualenv' 'python2-virtualenv' 'python-pyenchant' 'python2-pyenchant' + 'python-pylint' 'python2-pylint' 'python-unittest-mixins' 'python2-unittest-mixins' + 'python-flaky' 'python2-flaky') +source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/ned/coveragepy/get/coverage-$pkgver.tar.gz") +sha512sums=('72e03b35140596d7b6cd2976d35ecfd931b8c5518ae09dddeb2e204e73cee5e4f87341458dabbf5fdc6774a89342383ccd01d98ec7a8291f9cf8d9c1e5e9d0e9') + +prepare() { + mv ned-coveragepy-* coveragepy-$pkgver + cp -a coveragepy-$pkgver{,-py2} +} + +check() { + # Hack entry points by installing it + + export LC_CTYPE=en_US.UTF-8 + + ( + cd "$srcdir/coveragepy-$pkgver" + virtualenv "$srcdir/pyvenv" --system-site-packages + . "$srcdir/pyvenv/bin/activate" + export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.6/site-packages" + python setup.py --quiet develop + python igor.py zip_mods install_egg remove_extension + python igor.py test_with_tracer py + python setup.py --quiet build_ext --inplace + python igor.py test_with_tracer c + ) || warning "Python 3 tests failed" + + ( + cd "$srcdir/coveragepy-$pkgver-py2" + virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages + . "$srcdir/pyvenv-py2/bin/activate" + export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/site-packages" + python setup.py --quiet develop + python igor.py zip_mods install_egg remove_extension + python igor.py test_with_tracer py + python setup.py --quiet build_ext --inplace + python igor.py test_with_tracer c + ) || warning "Python 2 tests failed" +} + +package_python-coverage() { + depends=('python') + + cd coveragepy-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-coverage() { + depends=('python2') + + cd coveragepy-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + + mv "$pkgdir/usr/bin/coverage" "$pkgdir/usr/bin/coverage2" +} diff --git a/abs/core/python_modules/python-cryptography/PKGBUILD b/abs/core/python_modules/python-cryptography/PKGBUILD index d336c94..e578a2e 100644 --- a/abs/core/python_modules/python-cryptography/PKGBUILD +++ b/abs/core/python_modules/python-cryptography/PKGBUILD @@ -2,51 +2,54 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-cryptography -pkgname=('python2-cryptography') -pkgver=1.3.1 +pkgname=('python-cryptography' 'python2-cryptography') +pkgver=2.1.4 pkgrel=1 pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers" -arch=('i686' 'x86_64') +arch=('x86_64') license=('Apache') url="http://pypi.python.org/pypi/cryptography" -makedepends=('python2-setuptools' 'python2-six' 'python2-cffi' 'python2-enum34' - 'python2-pyasn1' 'python2-idna' 'python2-ipaddress') -checkdepends=('python2-pytest-runner' "python2-cryptography-vectors=$pkgver" - 'python2-iso8601' 'python2-pretend' 'python2-pyasn1-modules' - 'python2-hypothesis') -source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-$pkgver.tar.gz") -md5sums=('bc8148d2ff2d80fef8ef2d2e856b3a7f') +makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi' + 'python2-cffi' 'python2-enum34' 'python-pyasn1' 'python2-pyasn1' 'python-idna' + 'python2-idna' 'python2-ipaddress' 'python-asn1crypto' 'python2-asn1crypto') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' "python-cryptography-vectors=$pkgver" + "python2-cryptography-vectors=$pkgver" 'python-iso8601' 'python2-iso8601' + 'python-pretend' 'python2-pretend' 'python-hypothesis' 'python2-hypothesis' + 'python-pytz' 'python2-pytz') +source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz") +sha512sums=('f749cb4384badc174a842514e5a4fee2ed01ab9c716799d8d9d5301f6d2d97b6c41deb9e425f48928b639fa34bef8c05529ed7e5b777ef5ca75c244f8fda8fd4') prepare() { cp -a cryptography-${pkgver}{,-python2} } build() { - cd "$srcdir"/cryptography-$pkgver -# python setup.py build - - cd "$srcdir"/cryptography-$pkgver-python2 - python2 setup.py build + cd "$srcdir"/cryptography-$pkgver + python setup.py build + + cd "$srcdir"/cryptography-$pkgver-python2 + python2 setup.py build } check() { - cd "$srcdir"/cryptography-$pkgver - PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" python setup.py ptr + cd "$srcdir"/cryptography-$pkgver + python setup.py pytest - cd "$srcdir"/cryptography-$pkgver-python2 - PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 setup.py ptr + cd "$srcdir"/cryptography-$pkgver-python2 + python2 setup.py pytest } - + package_python-cryptography() { - depends=('python-pyasn1' 'python-six' 'python-cffi' 'python-idna') - - cd cryptography-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + depends=('python-six' 'python-cffi' 'python-idna' 'python-setuptools' 'python-asn1crypto') + + cd cryptography-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build } - + package_python2-cryptography() { - depends=('python2-pyasn1' 'python2-six' 'python2-cffi' 'python2-enum34' 'python2-idna' 'python2-ipaddress') - - cd cryptography-$pkgver-python2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + depends=('python2-six' 'python2-cffi' 'python2-enum34' 'python2-idna' 'python2-ipaddress' + 'python2-setuptools' 'python2-asn1crypto') + + cd cryptography-$pkgver-python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build } diff --git a/abs/core/python_modules/python-cryptography/__changelog b/abs/core/python_modules/python-cryptography/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-cryptography/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-dateutil/PKGBUILD b/abs/core/python_modules/python-dateutil/PKGBUILD index 5ce709f..7088ced 100644 --- a/abs/core/python_modules/python-dateutil/PKGBUILD +++ b/abs/core/python_modules/python-dateutil/PKGBUILD @@ -2,16 +2,16 @@ #Contributor: lilydjwg <lilydjwg@gmail.com> pkgbase=python-dateutil -pkgname=('python2-dateutil') -pkgver=2.6.0 -pkgrel=2 +pkgname=('python-dateutil' 'python2-dateutil') +pkgver=2.6.1 +pkgrel=1 pkgdesc="Provides powerful extensions to the standard datetime module" arch=('any') license=('custom') url="https://github.com/dateutil/dateutil" -makedepends=('python2-setuptools' 'python2-six') +makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six') source=("$pkgbase-$pkgver.tar.gz"::"https://github.com/dateutil/dateutil/archive/$pkgver.tar.gz") -md5sums=('7ac719938274be8da1ab870c3b35941c') +md5sums=('8d1081ed9d4eaef11d47a7bbd62ca903') build() { cd $srcdir diff --git a/abs/core/python_modules/python-dateutil/__changelog b/abs/core/python_modules/python-dateutil/__changelog deleted file mode 100644 index 3dd9c2c..0000000 --- a/abs/core/python_modules/python-dateutil/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 python-dateutils diff --git a/abs/core/python_modules/python-decorator/PKGBUILD b/abs/core/python_modules/python-decorator/PKGBUILD index 5b9d85f..eb51ec6 100644 --- a/abs/core/python_modules/python-decorator/PKGBUILD +++ b/abs/core/python_modules/python-decorator/PKGBUILD @@ -1,30 +1,59 @@ +# $Id$ # Maintainer: Thomas Dziedzic < gostrc at gmail > # Contributor: Pierre Chapuis <catwell at archlinux dot us> -pkgname=python-decorator -pkgver=3.3.2 +pkgname=('python-decorator' 'python2-decorator') +pkgver=4.2.1 pkgrel=1 pkgdesc='Python Decorator module' arch=('any') url='http://pypi.python.org/pypi/decorator' license=('BSD') -depends=('python2') -source=("http://pypi.python.org/packages/source/d/decorator/decorator-${pkgver}.tar.gz" +makedepends=('python2' 'python' 'python-setuptools' 'python2-setuptools') +source=('https://pypi.python.org/packages/70/f1/cb9373195639db13063f55eb06116310ad691e1fd125e6af057734dc44ea/decorator-4.2.1.tar.gz' 'LICENSE.txt') +md5sums=('e886337e9f70e70d45d67266b8e66044' + '0ca76d2c707f09dbb04acc425ea1a08b') build() { - cd decorator-${pkgver} + # Make python and python2 builds possible + cp -r decorator-$pkgver decorator2-$pkgver + + cd "$srcdir/decorator-$pkgver" + + python3 setup.py build + + cd "$srcdir/decorator2-$pkgver" python2 setup.py build } -package() { - cd decorator-${pkgver} +package_python2-decorator() { +depends=('python2') +replaces=('python-decorator<=3.3.2-1') + cd "${srcdir}/decorator2-${pkgver}" - python2 setup.py install --root=${pkgdir} --optimize=1 + python2 setup.py install --root="${pkgdir}" --optimize=1 - install -D -m644 ${srcdir}/LICENSE.txt \ - ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + install -D -m644 "${srcdir}/LICENSE.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} +package_python-decorator() { +depends=('python') + cd "${srcdir}/decorator-${pkgver}" + + python3 setup.py install --root="${pkgdir}" --optimize=1 + + install -D -m644 "${srcdir}/LICENSE.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +check() { + cd "$srcdir/decorator-$pkgver" + + python3 setup.py test + + cd "$srcdir/decorator2-$pkgver" + + python2 setup.py test } -md5sums=('446f5165af67eb0fcd8fd28abd259e86' - '0ca76d2c707f09dbb04acc425ea1a08b') diff --git a/abs/core/python_modules/python-decorator/__changelog b/abs/core/python_modules/python-decorator/__changelog deleted file mode 100644 index e69de29..0000000 --- a/abs/core/python_modules/python-decorator/__changelog +++ /dev/null diff --git a/abs/core/python_modules/python-docutils/01-python33-relative-import.patch b/abs/core/python_modules/python-docutils/01-python33-relative-import.patch deleted file mode 100644 index f2c4247..0000000 --- a/abs/core/python_modules/python-docutils/01-python33-relative-import.patch +++ /dev/null @@ -1,196 +0,0 @@ -From 12e5aa7b94e0a0ec37e754527e06707005d28d1c Mon Sep 17 00:00:00 2001 -From: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> -Date: Wed, 11 Jul 2012 12:25:14 +0000 -Subject: [PATCH] Fix [3541369] Relative __import__ also with Python 3.3. - -git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk@7486 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 ---- - docutils/HISTORY.txt | 1 + - docutils/docutils/_compat.py | 11 +++++++++++ - docutils/docutils/languages/__init__.py | 8 ++++++-- - docutils/docutils/parsers/__init__.py | 5 ++++- - .../docutils/parsers/rst/directives/__init__.py | 6 +++++- - .../docutils/parsers/rst/languages/__init__.py | 6 +++++- - docutils/docutils/readers/__init__.py | 5 ++++- - docutils/docutils/writers/__init__.py | 7 +++++-- - 8 files changed, 41 insertions(+), 8 deletions(-) - -diff --git a/docutils/docutils/_compat.py b/docutils/docutils/_compat.py -index 1450534..19654a6 100644 ---- a/docutils/docutils/_compat.py -+++ b/docutils/docutils/_compat.py -@@ -35,3 +35,14 @@ else: - # using this hack since 2to3 "fixes" the relative import - # when using ``from io import BytesIO`` - BytesIO = __import__('io').BytesIO -+ -+if sys.version_info < (2,5): -+ import __builtin__ -+ -+ def __import__(name, globals={}, locals={}, fromlist=[], level=-1): -+ """Compatibility definition for Python 2.4. -+ -+ Silently ignore the `level` argument missing in Python < 2.5. -+ """ -+ # we need the level arg because the default changed in Python 3.3 -+ return __builtin__.__import__(name, globals, locals, fromlist) -diff --git a/docutils/docutils/languages/__init__.py b/docutils/docutils/languages/__init__.py -index 675bb0e..57d3ec2 100644 ---- a/docutils/docutils/languages/__init__.py -+++ b/docutils/docutils/languages/__init__.py -@@ -11,7 +11,11 @@ This package contains modules for language-dependent features of Docutils. - - __docformat__ = 'reStructuredText' - -+import sys -+ - from docutils.utils import normalize_language_tag -+if sys.version_info < (2,5): -+ from docutils._compat import __import__ - - _languages = {} - -@@ -26,7 +30,7 @@ def get_language(language_code, reporter=None): - if tag in _languages: - return _languages[tag] - try: -- module = __import__(tag, globals(), locals()) -+ module = __import__(tag, globals(), locals(), level=1) - except ImportError: - continue - _languages[tag] = module -@@ -35,6 +39,6 @@ def get_language(language_code, reporter=None): - reporter.warning( - 'language "%s" not supported: ' % language_code + - 'Docutils-generated text will be in English.') -- module = __import__('en', globals(), locals()) -+ module = __import__('en', globals(), locals(), level=1) - _languages[tag] = module # warn only one time! - return module -diff --git a/docutils/docutils/parsers/__init__.py b/docutils/docutils/parsers/__init__.py -index 2683376..341e358 100644 ---- a/docutils/docutils/parsers/__init__.py -+++ b/docutils/docutils/parsers/__init__.py -@@ -8,7 +8,10 @@ This package contains Docutils parser modules. - - __docformat__ = 'reStructuredText' - -+import sys - from docutils import Component -+if sys.version_info < (2,5): -+ from docutils._compat import __import__ - - - class Parser(Component): -@@ -43,5 +46,5 @@ def get_parser_class(parser_name): - parser_name = parser_name.lower() - if parser_name in _parser_aliases: - parser_name = _parser_aliases[parser_name] -- module = __import__(parser_name, globals(), locals()) -+ module = __import__(parser_name, globals(), locals(), level=1) - return module.Parser -diff --git a/docutils/docutils/parsers/rst/directives/__init__.py b/docutils/docutils/parsers/rst/directives/__init__.py -index b00a676..fdc70d7 100644 ---- a/docutils/docutils/parsers/rst/directives/__init__.py -+++ b/docutils/docutils/parsers/rst/directives/__init__.py -@@ -10,8 +10,12 @@ __docformat__ = 'reStructuredText' - - import re - import codecs -+import sys -+ - from docutils import nodes - from docutils.parsers.rst.languages import en as _fallback_language_module -+if sys.version_info < (2,5): -+ from docutils._compat import __import__ - - - _directive_registry = { -@@ -109,7 +113,7 @@ def directive(directive_name, language_module, document): - # Error handling done by caller. - return None, messages - try: -- module = __import__(modulename, globals(), locals()) -+ module = __import__(modulename, globals(), locals(), level=1) - except ImportError, detail: - messages.append(document.reporter.error( - 'Error importing directive module "%s" (directive "%s"):\n%s' -diff --git a/docutils/docutils/parsers/rst/languages/__init__.py b/docutils/docutils/parsers/rst/languages/__init__.py -index 53017d7..5a151e4 100644 ---- a/docutils/docutils/parsers/rst/languages/__init__.py -+++ b/docutils/docutils/parsers/rst/languages/__init__.py -@@ -12,7 +12,11 @@ reStructuredText. - - __docformat__ = 'reStructuredText' - -+import sys -+ - from docutils.utils import normalize_language_tag -+if sys.version_info < (2,5): -+ from docutils._compat import __import__ - - _languages = {} - -@@ -21,7 +25,7 @@ def get_language(language_code): - if tag in _languages: - return _languages[tag] - try: -- module = __import__(tag, globals(), locals()) -+ module = __import__(tag, globals(), locals(), level=1) - except ImportError: - continue - _languages[tag] = module -diff --git a/docutils/docutils/readers/__init__.py b/docutils/docutils/readers/__init__.py -index a28248f..e3e6fb5 100644 ---- a/docutils/docutils/readers/__init__.py -+++ b/docutils/docutils/readers/__init__.py -@@ -8,9 +8,12 @@ This package contains Docutils Reader modules. - - __docformat__ = 'reStructuredText' - -+import sys - - from docutils import utils, parsers, Component - from docutils.transforms import universal -+if sys.version_info < (2,5): -+ from docutils._compat import __import__ - - - class Reader(Component): -@@ -103,5 +106,5 @@ def get_reader_class(reader_name): - reader_name = reader_name.lower() - if reader_name in _reader_aliases: - reader_name = _reader_aliases[reader_name] -- module = __import__(reader_name, globals(), locals()) -+ module = __import__(reader_name, globals(), locals(), level=1) - return module.Reader -diff --git a/docutils/docutils/writers/__init__.py b/docutils/docutils/writers/__init__.py -index e30dbf6..8fcee0c 100644 ---- a/docutils/docutils/writers/__init__.py -+++ b/docutils/docutils/writers/__init__.py -@@ -8,11 +8,14 @@ This package contains Docutils Writer modules. - - __docformat__ = 'reStructuredText' - -- - import os.path -+import sys -+ - import docutils - from docutils import languages, Component - from docutils.transforms import universal -+if sys.version_info < (2,5): -+ from docutils._compat import __import__ - - - class Writer(Component): -@@ -130,5 +133,5 @@ def get_writer_class(writer_name): - writer_name = writer_name.lower() - if writer_name in _writer_aliases: - writer_name = _writer_aliases[writer_name] -- module = __import__(writer_name, globals(), locals()) -+ module = __import__(writer_name, globals(), locals(), level=1) - return module.Writer --- -1.6.5.GIT - diff --git a/abs/core/python_modules/python-docutils/__changelog b/abs/core/python_modules/python-docutils/__changelog deleted file mode 100644 index 3439597..0000000 --- a/abs/core/python_modules/python-docutils/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm python 3 stuff diff --git a/abs/core/python_modules/python-execnet/PKGBUILD b/abs/core/python_modules/python-execnet/PKGBUILD new file mode 100644 index 0000000..e0940a2 --- /dev/null +++ b/abs/core/python_modules/python-execnet/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-execnet +pkgname=('python-execnet' 'python2-execnet') +pkgver=1.5.0 +pkgrel=1 +pkgdesc="Rapid multi-Python deployment" +arch=('any') +license=('MIT') +url="http://codespeak.net/execnet" +makedepends=('python-setuptools' 'python2-setuptools' 'python-apipkg' 'python2-apipkg') +checkdepends=('python-pytest-timeout' 'python2-pytest-timeout' 'procps-ng' 'openssh' 'pypy') +source=("https://pypi.io/packages/source/e/execnet/execnet-$pkgver.tar.gz") +sha512sums=('ca2b571fafdf8f68b3cc7a04ee326e3255828d4cde28ead65d0cef325569c3a6dee09359e525152248038de65326ffc6b75c8362f53aa5c0b3f736eb596cb2d9') + +prepare() { + cp -a execnet-${pkgver}{,-py2} +} + +build() { + cd "$srcdir/execnet-${pkgver}" + python setup.py build + + cd "$srcdir/execnet-${pkgver}-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/execnet-${pkgver}" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test testing + + cd "$srcdir/execnet-${pkgver}-py2" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 testing +} + +package_python-execnet() { + depends=('python-apipkg') + + cd execnet-${pkgver} + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-execnet() { + depends=('python2-apipkg') + + cd execnet-${pkgver}-py2 + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + diff --git a/abs/core/python_modules/python-feedparser/PKGBUILD b/abs/core/python_modules/python-feedparser/PKGBUILD index 6e21842..ab2cb73 100644 --- a/abs/core/python_modules/python-feedparser/PKGBUILD +++ b/abs/core/python_modules/python-feedparser/PKGBUILD @@ -2,15 +2,14 @@ # Maintainer: Eric Bélanger <eric@archlinux.org> pkgbase=python-feedparser -#pkgname=('python2-feedparser' 'python-feedparser' 'python-sgmllib') -pkgname=('python2-feedparser') +pkgname=('python2-feedparser' 'python-feedparser' 'python-sgmllib') pkgver=5.2.1 -pkgrel=2 +pkgrel=3 pkgdesc="Parse RSS and Atom feeds in Python" arch=('any') url="https://github.com/kurtmckee/feedparser/" license=('custom') -makedepends=('python2' 'libxml2' 'python2-setuptools') +makedepends=('python' 'python2' 'libxml2' 'python2-setuptools' 'python-setuptools') source=(feedparser-${pkgver}.tar.gz::https://github.com/kurtmckee/feedparser/archive/${pkgver}.tar.gz) sha1sums=('13c9a17f821e46ba9a34d8777e0ae47a6eb86de4') @@ -20,13 +19,13 @@ prepare() { cp -r feedparser-${pkgver} feedparser-${pkgver}-sgmllib (cd feedparser-${pkgver}-python2; sed -i 's#env python$#env python2#' feedparser/feedparsertest.py) -# (cd feedparser-${pkgver}-python; 2to3 -w feedparser/feedparser.py feedparser/feedparsertest.py) + (cd feedparser-${pkgver}-python; 2to3 -w feedparser/feedparser.py feedparser/feedparsertest.py) } -#build() { -# cd feedparser-${pkgver}-sgmllib -# python /usr/lib/python3.6/compileall.py feedparser/sgmllib3.py -#} +build() { + cd feedparser-${pkgver}-sgmllib + python /usr/lib/python3.6/compileall.py feedparser/sgmllib3.py +} package_python2-feedparser() { depends=('python2' 'libxml2' ) diff --git a/abs/core/python_modules/python-feedparser/__changelog b/abs/core/python_modules/python-feedparser/__changelog deleted file mode 100644 index c6e1e55..0000000 --- a/abs/core/python_modules/python-feedparser/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: don't build py 3 stuff diff --git a/abs/core/python_modules/python-flask-login/PKGBUILD b/abs/core/python_modules/python-flask-login/PKGBUILD index 06d268f..23e4d9c 100644 --- a/abs/core/python_modules/python-flask-login/PKGBUILD +++ b/abs/core/python_modules/python-flask-login/PKGBUILD @@ -2,27 +2,28 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-flask-login -pkgname=('python2-flask-login') -pkgver=0.4.0 -pkgrel=2 +pkgname=('python2-flask-login' 'python-flask-login') +pkgver=0.4.1 +pkgrel=1 pkgdesc="User session management for Flask." arch=('any') url="https://pythonhosted.org/Flask-Login/" license=('MIT') -makedepends=('python2-setuptools' 'python2-flask' 'git') -checkdepends=('python2-nose' 'python2-mock' 'python2-blinker') -source=("git+https://github.com/maxcountryman/flask-login.git#tag=$pkgver") -md5sums=('SKIP') +makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask') +checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-blinker' + 'python2-blinker' 'python-semantic-version' 'python2-semantic-version') +source=("$pkgname-$pkgver.tar.gz::https://github.com/maxcountryman/flask-login/archive/$pkgver.tar.gz") +sha512sums=('c87a2948ac37439ddd76f3f11584bdd5910cb00e96a7400343cf4dadc5a0f9bc84d40bdc068d2e8c05bd5a510046e18473e9ad71502c5039a5f05b371ce9bb4c') prepare() { - cp -a flask-login{,-py2} + cp -a flask-login-$pkgver{,-py2} } check() { -# cd "$srcdir"/flask-login -# nosetests3 + cd "$srcdir"/flask-login-$pkgver + nosetests3 - cd "$srcdir"/flask-login-py2 + cd "$srcdir"/flask-login-$pkgver-py2 # https://github.com/maxcountryman/flask-login/issues/232 nosetests2 || warning "Tests failed" } @@ -30,7 +31,7 @@ check() { package_python-flask-login() { depends=('python-flask') - cd flask-login + cd flask-login-$pkgver python setup.py install --root="$pkgdir" --optimize=1 mkdir -p "$pkgdir"/usr/share/licenses/$pkgname @@ -40,7 +41,7 @@ package_python-flask-login() { package_python2-flask-login() { depends=('python2-flask') - cd flask-login-py2 + cd flask-login-$pkgver-py2 python2 setup.py install --root="$pkgdir" --optimize=1 mkdir -p "$pkgdir"/usr/share/licenses/$pkgname diff --git a/abs/core/python_modules/python-flask-login/__changelog b/abs/core/python_modules/python-flask-login/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-flask-login/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-flask/PKGBUILD b/abs/core/python_modules/python-flask/PKGBUILD index dc2cb23..8dc26b8 100644 --- a/abs/core/python_modules/python-flask/PKGBUILD +++ b/abs/core/python_modules/python-flask/PKGBUILD @@ -4,45 +4,42 @@ # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Tarmo Heiskanen <turskii@gmail.com> -pkgname=('python2-flask') +pkgbase=python-flask +pkgname=('python-flask' 'python2-flask') pkgver=0.12.2 -pkgrel=2 +pkgrel=4 pkgdesc='Micro webdevelopment framework for Python' url='http://flask.pocoo.org/' arch=('any') license=('custom:BSD') -makedepends=('python2-setuptools') -source=("https://github.com/pallets/flask/archive/${pkgver}.tar.gz") +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/pallets/flask/archive/0.12.2.tar.gz") sha512sums=('5007129eed63902a39c6652f0868348629f3f6e09d38a764a6ed0e77f6e87f0a28068cfeee6ecb2dee92ccee771d57f42ba816f856e49f08b8c1dfe6bde9873c') prepare() { -# cp -r "flask-$pkgver" "python-flask-$pkgver" + cp -r "flask-$pkgver" "python-flask-$pkgver" cp -r "flask-$pkgver" "python2-flask-$pkgver" } -build_python-flask() { - cd "$pkgname-$pkgver" - +buildk() { + cd "$srcdir/python-flask-$pkgver" python setup.py build -} - -build_python2-flask() { - cd "$pkgname-$pkgver" + cd "$srcdir/python2-flask-$pkgver" python setup.py build } -check_python-flask() { - cd "$pkgname-$pkgver" +check() { + cd "$srcdir/python-flask-$pkgver" python setup.py test - cd "$pkgname-$pkgver" + cd "$srcdir/python2-flask-$pkgver" python2 setup.py test } package_python-flask() { depends=('python-werkzeug' 'python-jinja' 'python-itsdangerous' 'python-click') - cd "$pkgname-$pkgver" + cd "$srcdir/python-flask-$pkgver" python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -50,7 +47,7 @@ package_python-flask() { package_python2-flask() { depends=('python2-werkzeug' 'python2-jinja' 'python2-itsdangerous' 'python2-click') - cd "$pkgname-$pkgver" + cd "$srcdir/python2-flask-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 mv "$pkgdir"/usr/bin/flask "$pkgdir"/usr/bin/flask2 diff --git a/abs/core/python_modules/python-flask/__changelog b/abs/core/python_modules/python-flask/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-flask/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-future/PKGBUILD b/abs/core/python_modules/python-future/PKGBUILD index 1b96edc..3cc7fa5 100644 --- a/abs/core/python_modules/python-future/PKGBUILD +++ b/abs/core/python_modules/python-future/PKGBUILD @@ -5,15 +5,15 @@ # Contributor: Melissa Padilla <mpadilla2 at hotmail dot com> pkgbase=python-future -pkgname=(python2-future) +pkgname=(python-future python2-future) pkgver=0.16.0 -pkgrel=2 +pkgrel=3 pkgdesc="Clean single-source support for Python 3 and 2" url="http://python-future.org/" arch=('any') license=('MIT') -makedepends=('python2-setuptools') -checkdepends=('python2-requests') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-requests' 'python2-requests') options=('!emptydirs') source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz") sha256sums=('e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb') @@ -23,16 +23,16 @@ prepare() { } build() { -# cd "$srcdir"/future-$pkgver -# python setup.py build + cd "$srcdir"/future-$pkgver + python setup.py build cd "$srcdir"/future-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir"/future-$pkgver -# PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed" + cd "$srcdir"/future-$pkgver + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed" cd "$srcdir"/future-$pkgver-py2 PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 setup.py test diff --git a/abs/core/python_modules/python-future/__changelog b/abs/core/python_modules/python-future/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-future/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-gitdb/PKGBUILD b/abs/core/python_modules/python-gitdb/PKGBUILD index 258d97e..7403f17 100644 --- a/abs/core/python_modules/python-gitdb/PKGBUILD +++ b/abs/core/python_modules/python-gitdb/PKGBUILD @@ -1,19 +1,49 @@ -# Contributor: Jon Bergli Heier <snakebite@jvnv.net> -pkgname=python-gitdb -pkgver=0.5.2 +# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> +# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161 +# Contributor: Carl George < arch at cgtx dot us > + +_pkgname=python-gitdb +_pypiname=gitdb2 +pkgbase=python-gitdb +pkgdesc="A pure-Python git object database" +pkgname=('python-gitdb' 'python2-gitdb') +pkgver=2.0.3 pkgrel=1 -pkgdesc="IO of git-style object databases" -arch=('i686' 'x86_64') -url="http://pypi.python.org/pypi/gitdb" +url="https://github.com/gitpython-developers/gitdb" license=('BSD') -depends=('python2' 'python-async') -source=("http://pypi.python.org/packages/source/g/gitdb/gitdb-${pkgver}.tar.gz") +arch=("any") +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/g/${_pypiname}/${_pypiname}-${pkgver}.tar.gz") +# "${_pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/g/${_pypiname}/${_pypiname}-${pkgver}.tar.gz.asc") +#sha512sums=('4be643b933b47f5511702aa9df5c3210847f059dff9a4794779040660cd60c5af7de5072eb18bc17971edba9a5551e9ba51dbe360194b7d454ee4f23348c8063' +# 'SKIP') +#validpgpkeys=('4477ADC5977D7C60D2A7E3789FEE1C6A3B07188F') # Sebastian Thiel (In Rust I trust!) <byronimo@gmail.com> +prepare() { + cp -a "${srcdir}/${_pypiname}-${pkgver}"{,-py2} +} build() { - cd "$srcdir/gitdb-$pkgver" - python2 setup.py install --root="$pkgdir/" || return 1 + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py build + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py build +} + +package_python-gitdb() { + depends=('python' 'python-smmap>=2.0.0') + + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } -# vim:set ts=2 sw=2 et: -md5sums=('98655385607aed62101318051f7c9364') +package_python2-gitdb() { + depends=('python2' 'python2-smmap>=2.0.0') + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} +md5sums=('d5217eb94ebd36fcec62b929d1f72b00') diff --git a/abs/core/python_modules/python-gitpython/PKGBUILD b/abs/core/python_modules/python-gitpython/PKGBUILD new file mode 100644 index 0000000..3c6807e --- /dev/null +++ b/abs/core/python_modules/python-gitpython/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> +# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161 +# Contributor: brent s. <bts[at]square-r00t[dot]net> + +_pkgname=python-gitpython +_pypiname=GitPython +pkgbase=python-gitpython +pkgdesc="A python library used to interact with Git repositories" +pkgname=('python-gitpython' 'python2-gitpython') +pkgver=2.1.8 +pkgrel=1 +url="https://github.com/gitpython-developers/gitpython" +license=('BSD') +arch=("any") +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/G/${_pypiname}/${_pypiname}-${pkgver}.tar.gz" + "${_pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/G/${_pypiname}/${_pypiname}-${pkgver}.tar.gz.asc") +sha512sums=('9ddef0c9c1b99b3c554257c913efa1e0928fd8bdedae3c9fbbc261d337ed73a62472f3d47c9f55812f5e4c7abb9ea04fb03a6818984060b7847948d75dc2b98a' + 'SKIP') +validpgpkeys=('2CF6E0B51AAF73F09B1C21174D1DA68C88710E60') # Sebastian Thiel (In Rust I trust!) <byronimo@gmail.com> + +prepare() { + cp -a "${srcdir}/${_pypiname}-${pkgver}"{,-py2} +} + +build() { + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py build + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py build +} + +package_python-gitpython() { + depends=('python' 'python-gitdb>=2.0.0') + + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-gitpython() { + depends=('python2' 'python2-gitdb>=2.0.0') + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/abs/core/python_modules/python-html5lib/PKGBUILD b/abs/core/python_modules/python-html5lib/PKGBUILD index 0ef62da..4991390 100644 --- a/abs/core/python_modules/python-html5lib/PKGBUILD +++ b/abs/core/python_modules/python-html5lib/PKGBUILD @@ -1,42 +1,63 @@ +# Maintainer: Eli Schwartz <eschwartz@archlinux.org> +# Maintainer: Jelle van der Waa <jelle@archlinux.org> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> # Contributor: Erol V. Aktay <e.aktay@gmail.com> -# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> pkgbase=python-html5lib -pkgname=('python2-html5lib') -pkgver=0.999999999 +pkgname=('python2-html5lib' 'python-html5lib') +pkgver=1.0.1 pkgrel=2 arch=('any') url="https://github.com/html5lib" license=('MIT') -makedepends=('python2' 'unzip' 'python2-webencodings') -checkdepends=('python2-six' 'python2-pytest' 'python2-lxml' 'python2-mock') -source=($pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz - LICENSE) -md5sums=('a81446ef3ce3ef18f5e8e242b7072b83' - '838c366f69b72c5df05c96dff79b35f2') +makedepends=('python-setuptools' 'python2-setuptools' 'python-webencodings' 'python2-webencodings') +checkdepends=('python-six' 'python2-six' 'python-pytest-expect' 'python2-pytest-expect' + 'python-lxml' 'python2-lxml' 'python-mock' 'python2-mock') +_test_commit=c305da74fae50fb018870de7a042da36c1a93b65 +source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz" + "https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz") +sha256sums=('fabbebd6a55d07842087f13849076eeed350aa8bb6c9ec840f6a6aba9388db06' + 'cb261423c644b3469ac66926e290060b481371d0952995d270492fc761d0209a') -package_python-html5lib() { -pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec" -depends=('python' 'python-six' 'python-webencodings') - cd ${srcdir}/html5lib-python-${pkgver} +prepare() { + cd "${srcdir}"/html5lib-python-${pkgver} - python3 setup.py install --root=${pkgdir} - install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rmdir html5lib/tests/testdata + ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata } -package_python2-html5lib() { -depends=('python2' 'python2-six' 'python2-webencodings') -pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec" - cd ${srcdir}/html5lib-python-${pkgver} +build() { + cd "${srcdir}"/html5lib-python-${pkgver} - python2 setup.py install --root=${pkgdir} - install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + python setup.py build + python2 setup.py build } check() { - cd ${srcdir}/html5lib-python-${pkgver}/html5lib/tests + cd "${srcdir}"/html5lib-python-${pkgver} + + py.test + py.test2 +} + +package_python-html5lib() { + pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec" + depends=('python' 'python-six' 'python-webencodings') + optdepends=('python-lxml: lxml treebuilder' + 'python-genshi: genshi treewalker') + cd "${srcdir}"/html5lib-python-${pkgver} + + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm755 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} + +package_python2-html5lib() { + pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec" + depends=('python2' 'python2-six' 'python2-webencodings') + optdepends=('python2-lxml: lxml treebuilder' + 'python2-genshi: genshi treewalker') + cd "${srcdir}"/html5lib-python-${pkgver} -# nosetests2 - -# nosetests + python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm755 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } diff --git a/abs/core/python_modules/python-html5lib/__changelog b/abs/core/python_modules/python-html5lib/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-html5lib/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-hyperlink/PKGBUILD b/abs/core/python_modules/python-hyperlink/PKGBUILD new file mode 100644 index 0000000..cfe2472 --- /dev/null +++ b/abs/core/python_modules/python-hyperlink/PKGBUILD @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-hyperlink +pkgname=('python-hyperlink' 'python2-hyperlink') +pkgver=18.0.0 +pkgrel=1 +pkgdesc='A featureful, correct URL for Python' +arch=('any') +license=('BSD') +url='https://github.com/python-hyper/hyperlink' +makedepends=('python-idna' 'python2-idna' 'python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyperlink/archive/v$pkgver.tar.gz") +sha512sums=('b50bdd7a635804da449a6f2902e833f39d408e72a2b8e46a8b2bb773e2c310e0d4dced3f683951f8777e6104fe8d4faa4390f1a677bfb257c0e88dff860f1523') + +prepare() { + cp -a hyperlink-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/hyperlink-$pkgver + python setup.py build + + cd "$srcdir"/hyperlink-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/hyperlink-$pkgver + python setup.py pytest + + cd "$srcdir"/hyperlink-$pkgver-py2 + python2 setup.py pytest +} + +package_python-hyperlink() { + depends=('python-idna') + + cd hyperlink-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-hyperlink() { + depends=('python2-idna') + + cd hyperlink-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-hypothesis/PKGBUILD b/abs/core/python_modules/python-hypothesis/PKGBUILD new file mode 100644 index 0000000..cca4fcc --- /dev/null +++ b/abs/core/python_modules/python-hypothesis/PKGBUILD @@ -0,0 +1,78 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-hypothesis +pkgname=('python-hypothesis' 'python2-hypothesis') +pkgver=3.50.2 +pkgrel=1 +pkgdesc="Advanced Quickcheck style testing library for Python" +arch=('any') +license=('MPL') +url="https://hypothesis.readthedocs.org" +makedepends=('python-setuptools' 'python2-setuptools' 'python-attrs' 'python2-attrs' + 'python-coverage' 'python2-coverage' 'python2-enum34') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'flake8' 'python2-flake8' 'python-pytz' + 'python2-pytz' 'python-numpy' 'python2-numpy' 'python-faker' 'python2-faker' + 'python-flaky' 'python2-flaky' 'python-pytest-benchmark' 'python2-pytest-benchmark' + 'python-django' 'python2-django' 'python-pytest-xdist' 'python2-pytest-xdist' + 'python-mock' 'python2-mock' 'python-pandas' 'python2-pandas') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis-python/archive/$pkgver.tar.gz") +sha512sums=('9f62646a9095f108cc3c82190f0aabcdd4b0aa4044a0daf84f4bc3cc4f3de9cd2d6a01dafdf42b8cd3a6c14d433dc3f3fea24a80ef853637670ca00179d823b8') + +prepare() { + # Make tests faster + sed -i 's/ -n 2$/ -n 16/' hypothesis-python-$pkgver/tox.ini + + cp -a hypothesis-python-$pkgver{,-py2} + + rm -r hypothesis-python-$pkgver/tests/py2 + rm -r hypothesis-python-$pkgver-py2/tests/py3 + + export LC_CTYPE=en_US.UTF-8 +} + +build() { + cd "$srcdir"/hypothesis-python-$pkgver + python setup.py build + + cd "$srcdir"/hypothesis-python-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/hypothesis-python-$pkgver + mv tests/django ../ + python setup.py pytest + mv ../django tests/ + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m tests.django.manage test tests.django + + cd "$srcdir"/hypothesis-python-$pkgver-py2 + mv tests/django ../ + python2 setup.py pytest + mv ../django tests/ + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m tests.django.manage test tests.django +} + +package_python-hypothesis() { + depends=('python-attrs' 'python-coverage') + optdepends=('python-pytz: for datetime and django module' + 'python-faker: for fakefactory and django module' + 'python-django: for django module' + 'python-numpy: for numpy module' + 'python-pytest: for pytest module') + + cd hypothesis-python-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-hypothesis() { + depends=('python2-attrs' 'python2-coverage' 'python2-enum34') + optdepends=('python2-pytz: for datetime and django module' + 'python2-faker: for fakefactory and django module' + 'python2-django: for django module' + 'python2-numpy: for numpy module' + 'python2-pytest: for pytest module') + + cd hypothesis-python-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} diff --git a/abs/core/python_modules/python-idna/PKGBUILD b/abs/core/python_modules/python-idna/PKGBUILD index dd2fb8f..00a64bf 100644 --- a/abs/core/python_modules/python-idna/PKGBUILD +++ b/abs/core/python_modules/python-idna/PKGBUILD @@ -2,32 +2,32 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-idna -pkgname=('python2-idna') -pkgver=2.5 +pkgname=('python-idna' 'python2-idna') +pkgver=2.6 pkgrel=1 pkgdesc="Internationalized Domain Names in Applications (IDNA)" arch=('any') license=('BSD') url="https://github.com/kjd/idna" -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz") -md5sums=('fc1d992bef73e8824db411bb5d21f012') +sha512sums=('cb5dbfab44c4d11521c67f9d29391f184d1267a3da6dc89f4ed12c60a7a909d5c7474c3ea2bddd0af7063f4f620e87a8dd586bb07e8b961b30b1dd7c969704c2') prepare() { cp -a idna-$pkgver{,-py2} } build() { -# cd "$srcdir"/idna-$pkgver -# python setup.py build + cd "$srcdir"/idna-$pkgver + python setup.py build cd "$srcdir"/idna-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir"/idna-$pkgver -# python setup.py test + cd "$srcdir"/idna-$pkgver + python setup.py test cd "$srcdir"/idna-$pkgver-py2 python2 setup.py test diff --git a/abs/core/python_modules/python-idna/__changelog b/abs/core/python_modules/python-idna/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-idna/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-imagesize/PKGBUILD b/abs/core/python_modules/python-imagesize/PKGBUILD new file mode 100644 index 0000000..c8ee2da --- /dev/null +++ b/abs/core/python_modules/python-imagesize/PKGBUILD @@ -0,0 +1,39 @@ +pkgbase=python-imagesize +pkgname=('python-imagesize' 'python2-imagesize') +pkgver=1.0.0 +pkgrel=1 + +pkgdesc='Getting image size from png/jpeg/jpeg2000/gif file' +url='https://github.com/shibukawa/imagesize_py' +arch=('any') +license=('MIT') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz") + +md5sums=('9aa76df782f1df5b917794638b6bb6c2') + +build() { + cp -r imagesize-$pkgver imagesize-$pkgver-py2 + + cd "$srcdir"/imagesize-$pkgver + python setup.py build + + cd "$srcdir"/imagesize-$pkgver-py2 + python2 setup.py build +} + +package_python-imagesize() { + depends=('python') + + cd imagesize-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-imagesize() { + depends=('python2') + + cd imagesize-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} diff --git a/abs/core/python_modules/python-incremental/PKGBUILD b/abs/core/python_modules/python-incremental/PKGBUILD new file mode 100644 index 0000000..22c9f73 --- /dev/null +++ b/abs/core/python_modules/python-incremental/PKGBUILD @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-incremental +pkgname=('python-incremental' 'python2-incremental') +pkgver=17.5.0 +pkgrel=1 +pkgdesc='A small library that versions your Python projects' +arch=('any') +license=('MIT') +url='https://github.com/hawkowl/incremental' +makedepends=('python-setuptools' 'python2-setuptools' 'python-click' 'python2-click' + 'python-twisted' 'python2-twisted') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/hawkowl/incremental/archive/incremental-$pkgver.tar.gz") +sha512sums=('42490edf99355d6c1da0015273e92549bd72ecb2674dd4ce5d0b4a7d34ae9d425ebd1708a2420f67963b4baef5b2a12b76a23d67abb7d306e6208e08d79175d7') + +prepare() { + cp -a incremental-incremental-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/incremental-incremental-$pkgver + python setup.py build + + cd "$srcdir"/incremental-incremental-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/incremental-incremental-$pkgver + LC_CTYPE=en_US.UTF-8 python setup.py ptr + + cd "$srcdir"/incremental-incremental-$pkgver-py2 + python2 setup.py ptr +} + +package_python-incremental() { + depends=('python-click' 'python-twisted') + + cd incremental-incremental-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-incremental() { + depends=('python2-click' 'python2-twisted') + + cd incremental-incremental-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-itsdangerous/PKGBUILD b/abs/core/python_modules/python-itsdangerous/PKGBUILD index 4b643d8..4e575b0 100644 --- a/abs/core/python_modules/python-itsdangerous/PKGBUILD +++ b/abs/core/python_modules/python-itsdangerous/PKGBUILD @@ -2,14 +2,14 @@ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Alexander Rødseth <rodseth@gmail.com> -pkgname=('python2-itsdangerous') +pkgname=('python-itsdangerous' 'python2-itsdangerous') pkgver=0.24 -pkgrel=3 +pkgrel=4 pkgdesc='Various helpers to pass trusted data to untrusted environments' arch=('any') url="http://pypi.python.org/pypi/itsdangerous" license=('BSD') -makedepends=('python2') +makedepends=('python' 'python2') source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz") sha256sums=('b035b2da1d493b00a5ee7a5b750f96929de87b610643939fbe382902774626fc') diff --git a/abs/core/python_modules/python-itsdangerous/__changelog b/abs/core/python_modules/python-itsdangerous/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-itsdangerous/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch b/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch deleted file mode 100644 index 8100449..0000000 --- a/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 478983594423dcdb85e26ea7a02b8d1d72215db6 Mon Sep 17 00:00:00 2001 -From: Morris Jobke <morris.jobke@gmail.com> -Date: Mon, 27 May 2013 00:54:52 +0300 -Subject: [PATCH] Fix "PrefixLoader does not pass globals to load" - -Fix mitsuhiko/jinja2#225 ---- - jinja2/loaders.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/jinja2/loaders.py b/jinja2/loaders.py -index a9a2625..cc9c683 100644 ---- a/jinja2/loaders.py -+++ b/jinja2/loaders.py -@@ -349,7 +349,7 @@ def get_source(self, environment, template): - def load(self, environment, name, globals=None): - loader, local_name = self.get_loader(name) - try: -- return loader.load(environment, local_name) -+ return loader.load(environment, local_name, globals) - except TemplateNotFound: - # re-raise the exception with the correct fileame here. - # (the one that includes the prefix) --- -1.8.1.6 - diff --git a/abs/core/python_modules/python-jinja/PKGBUILD b/abs/core/python_modules/python-jinja/PKGBUILD index a7e3b6d..1bcd44e 100644 --- a/abs/core/python_modules/python-jinja/PKGBUILD +++ b/abs/core/python_modules/python-jinja/PKGBUILD @@ -2,23 +2,23 @@ # Maintainer: Evangelos Foutras <evangelos@foutrelis.com> # Contributor: Peter Baldwin <bald_pete@hotmail.com> -pkgname=('python2-jinja') -pkgver=2.7.2 -pkgrel=2 +pkgname=('python-jinja' 'python2-jinja') +pkgver=2.10 +pkgrel=1 pkgdesc="A simple pythonic template language written in Python" arch=('any') url="http://jinja.pocoo.org/" license=('BSD') -makedepends=('python2-setuptools' +makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe') -source=(http://pypi.python.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz) -sha256sums=('310a35fbccac3af13ebf927297f871ac656b9da1d248b1fe6765affa71b53235') +source=(https://pypi.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz) +sha256sums=('f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4') build() { cd "$srcdir" rm -rf python{2,3}-build - for builddir in python2-build; do + for builddir in python{2,3}-build; do cp -r Jinja2-$pkgver $builddir pushd $builddir ${builddir%-build} setup.py build @@ -26,15 +26,15 @@ build() { done } -#package_python-jinja() { -# depends=('python-setuptools' 'python-markupsafe') +package_python-jinja() { + depends=('python-setuptools' 'python-markupsafe') -# cd "$srcdir/python3-build" + cd "$srcdir/python3-build" -# python3 setup.py install --root="$pkgdir" -O1 + python3 setup.py install --root="$pkgdir" -O1 -# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} package_python2-jinja() { depends=('python2-setuptools' 'python2-markupsafe') diff --git a/abs/core/python_modules/python-jinja/__changelog b/abs/core/python_modules/python-jinja/__changelog deleted file mode 100644 index 3439597..0000000 --- a/abs/core/python_modules/python-jinja/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm python 3 stuff diff --git a/abs/core/python_modules/python-jsonschema/PKGBUILD b/abs/core/python_modules/python-jsonschema/PKGBUILD index 45de390..4d13b81 100644 --- a/abs/core/python_modules/python-jsonschema/PKGBUILD +++ b/abs/core/python_modules/python-jsonschema/PKGBUILD @@ -1,38 +1,66 @@ # $Id$ -# Maintainer: Daniel Wallace <danielwallace at gtmanfred.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred.com> # Contributor: Bogdan Szczurek <thebodzio@gmail.com> # Contributor: Ismo Toijala <ismo.toijala@gmail.com> pkgbase=python-jsonschema -_pkgname=jsonschema -pkgname=(python2-jsonschema) +pkgname=('python-jsonschema' 'python2-jsonschema') pkgver=2.6.0 -pkgrel=1 +pkgrel=2 pkgdesc="An implementation of JSON Schema validation for Python" -arch=(any) +arch=('any') url="http://pypi.python.org/pypi/jsonschema" license=('MIT') -makedepends=(python2-setuptools) -source=("https://pypi.io/packages/source/j/jsonschema/${pkgname:8}-$pkgver.tar.gz") +makedepends=('python-setuptools' 'python2-setuptools' 'python2-functools32' 'python-vcversioner' + 'python2-vcversioner') +checkdepends=('python-twisted' 'python2-twisted' 'python-mock' 'python2-mock' + 'python-strict-rfc3339' 'python2-strict-rfc3339' 'python-rfc3987' 'python2-rfc3987' + 'python-webcolors' 'python2-webcolors') +source=("$pkgbase-$pkgver.tar.bz2::https://github.com/Julian/jsonschema/archive/v$pkgver.tar.gz") +sha512sums=('863888fa70d7ae000530dcb405455d370a42c75b1e72970724d56397a1364da9198adb655ddebb6e8570b4bcf6ee17d26b712db86ddad15f65132dc9774e7255') -prepare(){ - cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2 - find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} + +prepare() { + echo -n "$pkgver-0-UNKNOWN" > jsonschema-$pkgver/version.txt + cp -a jsonschema-$pkgver{,-py2} + find jsonschema-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + +} + +build() { + cd "$srcdir"/jsonschema-$pkgver + python setup.py build + + cd "$srcdir"/jsonschema-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/jsonschema-$pkgver + PYTHONPATH="$PWD/build/lib" JSON_SCHEMA_TEST_SUITE=json trial3 jsonschema + python -m doctest README.rst + + cd "$srcdir"/jsonschema-$pkgver-py2 + PYTHONPATH="$PWD/build/lib" JSON_SCHEMA_TEST_SUITE=json trial jsonschema + # TODO: figure out why + rm -r build/lib/jsonschema/__pycache__ + python2 -m doctest README.rst } package_python-jsonschema() { - cd "$srcdir/$_pkgname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 - depends=(python) - install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + depends=('python-setuptools') + + cd jsonschema-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 json/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python2-jsonschema() { - cd "$srcdir/$_pkgname-$pkgver-2" - python2 setup.py install --root="$pkgdir/" --optimize=1 - depends=(python2-functools32) - install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE - mv $pkgdir/usr/bin/jsonschema{,2} + depends=('python2-setuptools' 'python2-functools32') + + cd jsonschema-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 json/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + mv "$pkgdir"/usr/bin/jsonschema{,2} } -md5sums=('50c6b69a373a8b55ff1e0ec6e78f13f4') diff --git a/abs/core/python_modules/python-jsonschema/__changelog b/abs/core/python_modules/python-jsonschema/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-jsonschema/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-lxml/PKGBUILD b/abs/core/python_modules/python-lxml/PKGBUILD index e12b716..bfb65bf 100644 --- a/abs/core/python_modules/python-lxml/PKGBUILD +++ b/abs/core/python_modules/python-lxml/PKGBUILD @@ -1,49 +1,98 @@ -# $Id: PKGBUILD 162858 2012-07-02 13:06:22Z giovanni $ -# Maintainer: - -pkgname=('python2-lxml') -pkgver=2.3.4 -pkgrel=2 -pkgdesc="Python binding for the libxml2 and libxslt libraries" -arch=('i686' 'x86_64') +# $Id$ +# Maintainer: Angel Velasquez <angvp@archlinux.org> +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-lxml +pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs') +pkgver=4.1.1 +pkgrel=1 +arch=('x86_64') license=('BSD' 'custom') url="http://lxml.de/" -makedepends=('python2' 'libxslt') -source=(http://pypi.python.org/packages/source/l/lxml/lxml-${pkgver}.tar.gz{,.asc}) -sha1sums=('90a226d8a2ee38de47fc3351445dab6df0e33a20' - '7962be7794d7f4c87d2fce0104c27990f48f1ce1') +makedepends=('libxslt' 'python-setuptools' 'python2-setuptools' 'epydoc' 'python2-pygments' + 'python2-docutils' 'cython' 'cython2') +checkdepends=('python-cssselect' 'python2-cssselect' 'python-html5lib' 'python2-html5lib' + 'python-beautifulsoup4' 'python2-beautifulsoup4') +source=("https://github.com/lxml/lxml/archive/lxml-$pkgver.tar.gz") +sha512sums=('69c64fc9f34bd8250dffcc32b6dcc93490731cd32778d7257a232fc5a126e74433ce6d4351683b71872cbeccd2c4d5a970e8fc2e631bbc273125be2b7f61ef31') + +prepare() { + mv lxml-lxml-$pkgver lxml-$pkgver + cp -a lxml-$pkgver{,-py2} + + # Setting LC_CTYPE to workaround encoding issue + export LC_CTYPE=en_US.UTF-8 +} + +build() { + cd "$srcdir"/lxml-$pkgver + python setup.py build + + cd "$srcdir"/lxml-$pkgver-py2 + python2 setup.py build + make PYTHON=python2 html +} check() { - cd "${srcdir}"/lxml-$pkgver + # TODO: Find a sane way to skip inplace build + + cd "$srcdir"/lxml-$pkgver + make PYTHON=python test + + cd "$srcdir"/lxml-$pkgver-py2 make PYTHON=python2 test - #make PYTHON=python test +} + +package_python-lxml() { + pkgdesc="Python3 binding for the libxml2 and libxslt libraries" + depends=('python' 'libxslt') + optdepends=('python-beautifulsoup4: support for beautifulsoup parser to parse not well formed HTML' + 'python-cssselect: support for cssselect' + 'python-html5lib: support for html5lib parser' + 'python-lxml-docs: offline docs') + + cd lxml-$pkgver + python setup.py install --root="$pkgdir" --skip-build --optimize=1 + + install -Dm644 LICENSES.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm644 doc/licenses/BSD.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt + install -Dm644 doc/licenses/elementtree.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt } package_python2-lxml() { + pkgdesc="Python2 binding for the libxml2 and libxslt libraries" depends=('python2' 'libxslt') - optdepends=('python2-beautifulsoup3: support for parsing not well formed HTML') + optdepends=('python2-beautifulsoup4: support for beautifulsoup parser to parse not well formed HTML' + 'python2-cssselect: support for cssselect' + 'python2-html5lib: support for html5lib parser' + 'python-lxml-docs: offline docs') - cd "${srcdir}"/lxml-$pkgver - python2 setup.py install --root="${pkgdir}" --optimize=1 + cd lxml-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --skip-build --optimize=1 install -Dm644 LICENSES.txt \ - "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 doc/licenses/BSD.txt \ - "${pkgdir}"/usr/share/licenses/$pkgname/BSD.txt + "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt install -Dm644 doc/licenses/elementtree.txt \ - "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt + "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt } -package_python-lxml() { - depends=('python' 'libxslt') +package_python-lxml-docs() { + pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)" + options=('docs') - cd "${srcdir}"/lxml-$pkgver - python setup.py install --root="${pkgdir}" --optimize=1 + cd lxml-$pkgver-py2 + install -d "$pkgdir"/usr/share/doc/$pkgbase + cp -r doc/html "$pkgdir"/usr/share/doc/$pkgbase install -Dm644 LICENSES.txt \ - "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 doc/licenses/BSD.txt \ - "${pkgdir}"/usr/share/licenses/$pkgname/BSD.txt + "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt install -Dm644 doc/licenses/elementtree.txt \ - "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt + "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt } diff --git a/abs/core/python_modules/python-lxml/__changelog b/abs/core/python_modules/python-lxml/__changelog deleted file mode 100644 index 9731eb3..0000000 --- a/abs/core/python_modules/python-lxml/__changelog +++ /dev/null @@ -1 +0,0 @@ -removed python3 diff --git a/abs/core/python_modules/python-mako/PKGBUILD b/abs/core/python_modules/python-mako/PKGBUILD index 71440e4..b662825 100644 --- a/abs/core/python_modules/python-mako/PKGBUILD +++ b/abs/core/python_modules/python-mako/PKGBUILD @@ -1,54 +1,58 @@ # $Id$ -# Maintainer : +# Maintainer: Felix Yan <felixonmars@archlinux.org> -pkgname=('python2-mako') -pkgver=0.9.1 -pkgrel=2 -pkgdesc="Hyperfast and lightweight templating for the Python2 platform" +pkgbase=python-mako +pkgname=('python-mako' 'python2-mako') +pkgver=1.0.7 +pkgrel=1 +pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages" arch=('any') url="http://www.makotemplates.org/" license=('MIT') -makedepends=('python2-setuptools') -checkdepends=('python2-nose') -source=(https://pypi.python.org/packages/source/M/Mako/Mako-$pkgver.tar.gz{,.asc}) -sha1sums=('aa01bafca5a835eb92a9048be92414fa83da102b' - 'SKIP') +makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe' + 'python-beaker' 'python2-beaker') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock' + 'python-babel' 'python2-babel' 'python-pygments' 'python2-pygments' + 'python-dogpile.cache' 'python2-dogpile.cache') +source=("https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz"{,.asc}) +sha512sums=('d67af6788bf8603010361ce8b6d0355b0191657c07f3b5845f9d5e91653c3e349a7b35d5b36aa9c7f291973c83911ce94075e1cad78e6935d0ed4ee9c6e2a571' + 'SKIP') +validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer prepare() { - cp -r Mako-$pkgver python2-Mako-$pkgver - mv Mako-$pkgver/scripts/mako-render Mako-$pkgver/scripts/python3-mako-render -# 2to3 -nw Mako-$pkgver/scripts/python3-mako-render - sed -i 's/mako-render/python3-mako-render/' Mako-$pkgver/setup.py + cp -a Mako-$pkgver{,-py2} } build() { - cd Mako-$pkgver -# python3 setup.py build + cd "$srcdir"/Mako-$pkgver + python setup.py build - cd ../python2-Mako-$pkgver - python2 setup.py build + cd "$srcdir"/Mako-$pkgver-py2 + python2 setup.py build } check() { - cd Mako-$pkgver -# python3 setup.py test + cd "$srcdir"/Mako-$pkgver + python setup.py ptr - cd ../python2-Mako-$pkgver - python2 setup.py test + cd "$srcdir"/Mako-$pkgver-py2 + python2 setup.py ptr } -#package_python-mako() { -# depends=('python-markupsafe' 'python-beaker') +package_python-mako() { + depends=('python-markupsafe' 'python-beaker' 'python-setuptools') -# cd Mako-$pkgver -# python3 setup.py install --root="$pkgdir" --optimize=1 -# install -D LICENSE "$pkgdir/usr/share/licenses/python-mako/COPYING" -#} + cd Mako-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} package_python2-mako() { - depends=('python2-markupsafe' 'python2-beaker') + depends=('python2-markupsafe' 'python2-beaker' 'python2-setuptools') + + cd Mako-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING - cd python2-Mako-$pkgver - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D LICENSE "$pkgdir/usr/share/licenses/python2-mako/COPYING" + mv "$pkgdir"/usr/bin/mako-render{,2} } diff --git a/abs/core/python_modules/python-mako/__changelog b/abs/core/python_modules/python-mako/__changelog deleted file mode 100644 index 9715c21..0000000 --- a/abs/core/python_modules/python-mako/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD - comment out all python 3 stuff and only build for py 2 diff --git a/abs/core/python_modules/python-markupsafe/PKGBUILD b/abs/core/python_modules/python-markupsafe/PKGBUILD index 17725d0..ec6d6f9 100644 --- a/abs/core/python_modules/python-markupsafe/PKGBUILD +++ b/abs/core/python_modules/python-markupsafe/PKGBUILD @@ -1,50 +1,53 @@ # $Id$ -# Maintainer : Felix Yan <felixonmars@gmail.com> +# Maintainer : Felix Yan <felixonmars@archlinux.org> # Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Alex Anthony <alex.anthony28991@gmail.com> -pkgname=('python2-markupsafe') -pkgver=0.21 +pkgname=('python-markupsafe' 'python2-markupsafe') +pkgver=1.0 pkgrel=1 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://pypi.python.org/pypi/MarkupSafe" license=('custom') -makedepends=('python2-setuptools') -source=("http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz") -sha512sums=('ecedf56be7ad1723c4d7bf799e1aefb8ceb0a28840a1b8ffdc2dee0f734149430cf5dfd5d335591e9934cf223255475e9c04da5ab34ed69e7845298f599d81bc') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz") +sha512sums=('7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8') + +prepare() { + cp -a MarkupSafe-$pkgver{,-py2} +} build() { - cp -r MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver} -# cd "${srcdir}/MarkupSafe-${pkgver}" -# python setup.py build + cd "$srcdir"/MarkupSafe-$pkgver + python setup.py build - cd "${srcdir}/python2-MarkupSafe-${pkgver}" + cd "$srcdir"/MarkupSafe-$pkgver-py2 python2 setup.py build } check() { -# cd "${srcdir}/MarkupSafe-${pkgver}" -# python setup.py test + cd "$srcdir"/MarkupSafe-$pkgver + python setup.py test - cd "${srcdir}/python2-MarkupSafe-${pkgver}" + cd "$srcdir"/MarkupSafe-$pkgver-py2 python2 setup.py test } -#package_python-markupsafe() { -# depends=('python') +package_python-markupsafe() { + depends=('python') -# cd MarkupSafe-${pkgver} -# python setup.py install --root="${pkgdir}" --optimize=1 + cd MarkupSafe-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 -# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-markupsafe/LICENSE" -#} + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE +} package_python2-markupsafe() { depends=('python2') - cd python2-MarkupSafe-${pkgver} - python2 setup.py install --root="${pkgdir}" --optimize=1 + cd MarkupSafe-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-markupsafe/LICENSE" + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-markupsafe/LICENSE } diff --git a/abs/core/python_modules/python-markupsafe/__changelog b/abs/core/python_modules/python-markupsafe/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-markupsafe/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-mistune/PKGBUILD b/abs/core/python_modules/python-mistune/PKGBUILD new file mode 100644 index 0000000..dc1f2cc --- /dev/null +++ b/abs/core/python_modules/python-mistune/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: shmilee + +pkgbase=python-mistune +_pkgname=mistune +pkgname=('python-mistune' 'python2-mistune') +pkgver=0.8.1 +pkgrel=1 +pkgdesc="The fastest markdown parser in pure Python with renderer feature." +arch=('any') +url="https://github.com/lepture/mistune" +license=('BSD') +depends=('python') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/lepture/mistune/archive/v${pkgver}.tar.gz") +md5sums=('48de519df46992d12b45d562ee5bfedb') + +prepare() { + cd "$srcdir" + cp -r "$srcdir/$_pkgname-$pkgver" "$srcdir/${_pkgname}2-$pkgver" +} + +package_python-mistune() { + cd "$srcdir/${_pkgname}-$pkgver" + python setup.py install --root="$pkgdir/" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-mistune/LICENSE" +} + +package_python2-mistune() { + depends=('python2') + cd "$srcdir/${_pkgname}2-$pkgver" + python2 setup.py install --root="$pkgdir/" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-mistune/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-mock/PKGBUILD b/abs/core/python_modules/python-mock/PKGBUILD index 63fd848..c2ec77d 100644 --- a/abs/core/python_modules/python-mock/PKGBUILD +++ b/abs/core/python_modules/python-mock/PKGBUILD @@ -3,38 +3,51 @@ # Contributor: Felix Kaiser <felix.kaiser@fxkr.net> pkgbase=python-mock -pkgname=(python2-mock) -pkgver=1.0.1 -pkgrel=3 +pkgname=(python2-mock python-mock) +pkgver=2.0.0 +pkgrel=2 pkgdesc='Mocking and Patching Library for Testing' url='http://www.voidspace.org.uk/python/mock/' -makedepends=('python2') +makedepends=('python2' 'python' 'python-setuptools' 'python2-setuptools') +checkdepends=('python-nose' 'python2-nose' 'python-pbr' 'python2-pbr' 'python-six' 'python2-six' 'git') license=('BSD') arch=('any') -source=("http://pypi.python.org/packages/source/m/mock/mock-$pkgver.tar.gz") -md5sums=('c3971991738caa55ec7c356bbc154ee2') +source=("https://files.pythonhosted.org/packages/source/m/mock/mock-$pkgver.tar.gz") +md5sums=('0febfafd14330c9dcaa40de2d82d40ad') build() { cd "$srcdir" cp -rf "mock-$pkgver" "mock2-$pkgver" -# cd "$srcdir/mock-$pkgver" -# python3 setup.py build + cd "$srcdir/mock-$pkgver" + python3 setup.py build cd "$srcdir/mock2-$pkgver" python2 setup.py build } -#package_python-mock() { -#depends=('python') -# cd "$srcdir/mock-$pkgver" -# python3 setup.py install --optimize=1 --root="$pkgdir" -# install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE -#} +package_python-mock() { +depends=('python' 'python-six' 'python-pbr') + cd "$srcdir/mock-$pkgver" + python3 setup.py install --optimize=1 --root="$pkgdir" + install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} package_python2-mock() { -depends=('python2') +depends=('python2' 'python2-six' 'python2-pbr' 'python2-funcsigs') # Backported Py > 3.3 functionality cd "$srcdir/mock2-$pkgver" python2 setup.py install --optimize=1 --root="$pkgdir" install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } + +check() { + cd "$srcdir/mock2-$pkgver/" + sed -i 's/unittest2/unittest/g' mock/tests/*.py + + echo 'python tests' + python -m unittest discover + + # Does not run because of self.assertRaisesRegex() usage in unitests, which is self.assertRaisesRegexp() in Python 2.7 + echo 'python2 tests' + #python2 -m unittest discover +} diff --git a/abs/core/python_modules/python-mock/__changelog b/abs/core/python_modules/python-mock/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-mock/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-more-itertools/PKGBUILD b/abs/core/python_modules/python-more-itertools/PKGBUILD new file mode 100644 index 0000000..3a07dda --- /dev/null +++ b/abs/core/python_modules/python-more-itertools/PKGBUILD @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Germán Osella Massa <gosella@gmail.com> + +pkgbase=python-more-itertools +pkgname=('python-more-itertools' 'python2-more-itertools') +pkgver=3.1.0 +pkgrel=1 +pkgdesc='More routines for operating on iterables, beyond itertools' +arch=('any') +url='https://github.com/erikrose/more-itertools' +#url='https://pypi.python.org/pypi/more-itertools' +license=('MIT') +depends=('python') +makedepends=('python-setuptools' 'python2-setuptools' 'python2-six') +source=("https://files.pythonhosted.org/packages/source/m/more-itertools/more-itertools-$pkgver.tar.gz") +md5sums=('e3dad64e30d0220039d0cb036ae7532c') + +prepare() { + cp -R "more-itertools-$pkgver" "py2-more-itertools-$pkgver" +} + +package_python-more-itertools() { + cd "$srcdir/more-itertools-$pkgver" + python3 setup.py install --root="$pkgdir/" --optimize=0 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-more-itertools() { + depends=('python2' 'python2-six') + cd "$srcdir/py2-more-itertools-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=0 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-ndg-httpsclient/PKGBUILD b/abs/core/python_modules/python-ndg-httpsclient/PKGBUILD index 7b0047f..0d2f022 100644 --- a/abs/core/python_modules/python-ndg-httpsclient/PKGBUILD +++ b/abs/core/python_modules/python-ndg-httpsclient/PKGBUILD @@ -3,24 +3,25 @@ # Contributor: Hugo Osvaldo Barrera <hugo@osvaldobarrera.com.ar> pkgbase=python-ndg-httpsclient -pkgname=(python2-ndg-httpsclient) +pkgname=(python-ndg-httpsclient python2-ndg-httpsclient) _pkgname=ndg_httpsclient -pkgver=0.4.2 -pkgrel=2 +pkgver=0.4.4 +pkgrel=1 pkgdesc="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL" arch=(any) url="https://pypi.python.org/pypi/ndg-httpsclient" license=('BSD') -makedepends=(python2-setuptools python2-pyopenssl python2-pyasn1) +makedepends=(python2-setuptools python2-pyopenssl python2-pyasn1 + python-setuptools python-pyopenssl python-pyasn1) options=(!emptydirs) source=(https://files.pythonhosted.org/packages/source/n/ndg-httpsclient/$_pkgname-$pkgver.tar.gz) -sha256sums=('580987ef194334c50389e0d7de885fccf15605c13c6eecaabd8d6c43768eb8ac') +sha256sums=('fba4d4798dcac2965874f24afb6631b4326baa4bd02505744d34f690c354856a') build() { cd "$srcdir"/$_pkgname-$pkgver -# rm -rf ../buildpy3; mkdir ../buildpy3 -# python setup.py build -b ../buildpy3 + rm -rf ../buildpy3; mkdir ../buildpy3 + python setup.py build -b ../buildpy3 rm -rf ../buildpy2; mkdir ../buildpy2 python2 setup.py build -b ../buildpy2 diff --git a/abs/core/python_modules/python-ndg-httpsclient/__changelog b/abs/core/python_modules/python-ndg-httpsclient/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-ndg-httpsclient/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-nose/PKGBUILD b/abs/core/python_modules/python-nose/PKGBUILD index be20823..beafe17 100644 --- a/abs/core/python_modules/python-nose/PKGBUILD +++ b/abs/core/python_modules/python-nose/PKGBUILD @@ -5,16 +5,16 @@ # Contributor: Cilyan Olowen <gaknar@gmail.com> pkgbase=python-nose -pkgname=('python2-nose' 'python-nose-doc') -pkgver=1.3.1 -pkgrel=2 +pkgname=('python-nose' 'python2-nose' 'python-nose-doc') +pkgver=1.3.7 +pkgrel=3 pkgdesc="A discovery-based unittest extension" arch=('any') url='http://readthedocs.org/docs/nose/' license=('LGPL2.1') -makedepends=('python2' 'python2-setuptools' 'python2-sphinx') -source=("http://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz") -md5sums=('672398801ddf5ba745c55c6eed79c5aa') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' 'python2-sphinx') +source=("https://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz") +md5sums=('4d3ad0ff07b61373d2cefc89c5d0b20b') build() { cd "$srcdir/nose-$pkgver" @@ -22,12 +22,12 @@ build() { cp -R "$srcdir/nose-$pkgver" "$srcdir/nose2-$pkgver" } -#package_python-nose() { -# depends=('python' 'python-setuptools') -# cd "$srcdir/nose-$pkgver" -# python3 setup.py install --prefix=/usr --root="${pkgdir}" -# mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests3" -#} +package_python-nose() { + depends=('python' 'python-setuptools') + cd "$srcdir/nose-$pkgver" + python3 setup.py install --prefix=/usr --root="${pkgdir}" + ln -s nosetests "$pkgdir/usr/bin/nosetests3" +} package_python2-nose() { depends=('python2' 'python2-setuptools') @@ -40,7 +40,7 @@ package_python2-nose() { package_python-nose-doc(){ pkgdesc="Nose documentation and examples" cd "$srcdir/nose-$pkgver/doc" - make SPHINXBUILD=sphinx-build22 html + make SPHINXBUILD=sphinx-build2 html mkdir -p "$pkgdir/usr/share/doc/python-nose" cp -r .build/html "$pkgdir/usr/share/doc/python-nose" cp -r ../examples "$pkgdir/usr/share/doc/python-nose" diff --git a/abs/core/python_modules/python-nose/__changelog b/abs/core/python_modules/python-nose/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-nose/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-numpy/PKGBUILD b/abs/core/python_modules/python-numpy/PKGBUILD index 8c9c6be..6c92605 100755 --- a/abs/core/python_modules/python-numpy/PKGBUILD +++ b/abs/core/python_modules/python-numpy/PKGBUILD @@ -1,61 +1,85 @@ -# $Id: PKGBUILD 138131 2011-09-17 03:10:10Z allan $ +# $Id$ # Maintainer: Jan de Groot <jgc@archlinux.org> +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org> # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> pkgbase=python-numpy -pkgname=('python2-numpy') -pkgver=1.6.1 +pkgname=('python2-numpy' 'python-numpy') +pkgver=1.14.2 pkgrel=1 pkgdesc="Scientific tools for Python" -arch=('i686' 'x86_64') +arch=('x86_64') license=('custom') -url="http://numpy.scipy.org/" -makedepends=('lapack' 'python2' 'python2-distribute' 'gcc-fortran' 'python2-nose') -source=(http://downloads.sourceforge.net/numpy/numpy-${pkgver}.tar.gz) -md5sums=('2bce18c08fc4fce461656f0f4dd9103e') +url="http://www.numpy.org/" +makedepends=('cblas' 'lapack' 'python' 'python2' 'python-setuptools' 'python2-setuptools' 'gcc-fortran' + 'python-nose' 'python2-nose' 'cython' 'cython2') +options=('staticlibs') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz" 'site.cfg') +sha512sums=('65b10462011e033669b700f0688df2e8630a097323fc7d72e71549fdfc2258546fe6f1317e0d51e1a0c9ab86451e0998ccbc7daa9af690652a96034571d5b76b' + '03a0f161be4963625f110a26167efbd300a12bd4cf99c8250c47ac865466d03fc8640e7e4fb6a59c39bf8b797609f5ed50afbc720d1fcbd2c4c57263cf8b406b') -build() { - cd "${srcdir}" - cp -a numpy-${pkgver} numpy-py2-${pkgver} +prepare() { + cp site.cfg numpy-$pkgver + cp -a numpy-$pkgver numpy-py2-$pkgver + cd numpy-py2-$pkgver + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} - export Atlas=None +build() { export LDFLAGS="$LDFLAGS -shared" echo "Building Python2" - cd "${srcdir}/numpy-py2-${pkgver}" + cd numpy-py2-$pkgver python2 setup.py config_fc --fcompiler=gnu95 build - #echo "Building Python3" - #cd "${srcdir}/numpy-${pkgver}" - #python setup.py config_fc --fcompiler=gnu95 build + echo "Building Python3" + cd ../numpy-$pkgver + python setup.py config_fc --fcompiler=gnu95 build } package_python2-numpy() { - depends=('lapack' 'python2') - optdepends=('python-nose: testsuite') + depends=('lapack' 'python2' 'cblas') + optdepends=('python2-nose: testsuite') + + _pyver=2.7 - cd "${srcdir}/numpy-py2-${pkgver}" + export ATLAS=None + export LDFLAGS="$LDFLAGS -shared" + + cd numpy-py2-$pkgver python2 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root="${pkgdir}" --optimize=1 install -m755 -d "${pkgdir}/usr/share/licenses/python2-numpy" install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-numpy/" - sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ - -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ - -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ - $(find ${pkgdir} -name '*.py') + install -m755 -d "${pkgdir}/usr/include/python${_pyver}" + ln -sf /usr/lib/python${_pyver}/site-packages/numpy/core/include/numpy "${pkgdir}/usr/include/python${_pyver}/numpy" } package_python-numpy() { - depends=('lapack' 'python') + depends=('lapack' 'python' 'cblas') + optdepends=('python-nose: testsuite') provides=("python3-numpy=${pkgver}") replaces=('python3-numpy') conflicts=('python3-numpy') - cd "${srcdir}/numpy-${pkgver}" + _pyver=3.6 + _pyinc=3.6m + + export ATLAS=None + export LDFLAGS="$LDFLAGS -shared" + + cd numpy-$pkgver python setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root="${pkgdir}" --optimize=1 - install -m755 -d "${pkgdir}/usr/share/licenses/python3-numpy" - install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python3-numpy/" + install -m755 -d "${pkgdir}/usr/share/licenses/python-numpy" + install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-numpy/" + + install -m755 -d "${pkgdir}/usr/include/python${_pyinc}" + ln -sf /usr/lib/python${_pyver}/site-packages/numpy/core/include/numpy "${pkgdir}/usr/include/python${_pyinc}/numpy" } diff --git a/abs/core/python_modules/python-numpy/__changelog b/abs/core/python_modules/python-numpy/__changelog deleted file mode 100644 index 3bc4789..0000000 --- a/abs/core/python_modules/python-numpy/__changelog +++ /dev/null @@ -1 +0,0 @@ -remove python3 support diff --git a/abs/core/python_modules/python-numpy/site.cfg b/abs/core/python_modules/python-numpy/site.cfg new file mode 100644 index 0000000..528d890 --- /dev/null +++ b/abs/core/python_modules/python-numpy/site.cfg @@ -0,0 +1,4 @@ +[atlas] +atlas_libs = cblas +libraries = cblas + diff --git a/abs/core/python_modules/python-oauth/PKGBUILD b/abs/core/python_modules/python-oauth/PKGBUILD deleted file mode 100644 index 1404fec..0000000 --- a/abs/core/python_modules/python-oauth/PKGBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# Maintainer: Snowknight (hopkinsth@gmail.com) -pkgname=python-oauth -pkgver=1.0.1 -pkgrel=6 -pkgdesc="An open protocol to allow API authentication in a simple and standard method from desktop and web applications." -arch=('any') -url="http://code.google.com/p/oauth/" -license=('MIT') -depends=('python2') -#makedepends=('python2-distribute') -makedepends=('setuptools') -source=(http://pypi.python.org/packages/source/o/oauth/oauth-${pkgver}.tar.gz) -md5sums=('30ed3cc8c11d7841a89feab437aabf81') -sha1sums=('b2d7609e4852b33d0d33f0bc6ae5cab8fadca014') - -build() { - cd ${srcdir}/oauth-${pkgver} - - python2 setup.py build || return 1 -} -package() { - cd ${srcdir}/oauth-${pkgver} - python2 setup.py install --root=${pkgdir} || return 1 - - install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE -} - diff --git a/abs/core/python_modules/python-opengl/PKGBUILD b/abs/core/python_modules/python-opengl/PKGBUILD deleted file mode 100644 index 57f77fd..0000000 --- a/abs/core/python_modules/python-opengl/PKGBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# $Id: PKGBUILD 150966 2012-02-24 10:19:17Z pierre $ -# Contributor: Josh Taylor <joshtaylor.mail@gmail.com> -# Contributor: simo <simo@archlinux.org> -# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> -# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> - -pkgname=python-opengl -pkgver=3.0.1 -pkgrel=3 -pkgdesc="The cross platform Python binding to OpenGL and related APIs" -url="http://pyopengl.sourceforge.net" -license=('BSD') -arch=('any') -depends=('python2' 'tk' 'freeglut' 'setuptools') -provides=('pyopengl' 'python-pyopengl') -conflicts=('pyopengl' 'python-pyopengl') -source=("http://downloads.sourceforge.net/pyopengl/PyOpenGL-${pkgver}.tar.gz" - 'LICENSE') -md5sums=('221d4a6a0928fcfeef26751370ec5f52' - '0b53c508a63e5dbaf44cdfb0fa103b3a') - -package() { - cd ${srcdir}/PyOpenGL-${pkgver} - python2 setup.py install --root=${pkgdir} - install -Dm644 ${srcdir}/LICENSE \ - ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE -} diff --git a/abs/core/python_modules/python-packaging/PKGBUILD b/abs/core/python_modules/python-packaging/PKGBUILD index c7e2b7a..34a48bc 100644 --- a/abs/core/python_modules/python-packaging/PKGBUILD +++ b/abs/core/python_modules/python-packaging/PKGBUILD @@ -2,15 +2,15 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-packaging -pkgname=(python2-packaging) +pkgname=(python-packaging python2-packaging) pkgver=16.8 -pkgrel=2 +pkgrel=3 pkgdesc="Core utilities for Python packages" arch=('any') url="https://github.com/pypa/packaging" license=('Apache') -makedepends=('python2-setuptools' 'python2-pyparsing' 'git') -checkdepends=('python2-pytest-runner' 'python2-pretend' 'python2-coverage') +makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing' 'git') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend' 'python-coverage' 'python2-coverage') source=("git+https://github.com/pypa/packaging.git#tag=$pkgver") md5sums=('SKIP') @@ -19,16 +19,16 @@ prepare() { } build() { -# cd "$srcdir"/packaging -# python setup.py build + cd "$srcdir"/packaging + python setup.py build cd "$srcdir"/packaging-py2 python2 setup.py build } check() { -# cd "$srcdir"/packaging -# python setup.py ptr + cd "$srcdir"/packaging + python setup.py ptr cd "$srcdir"/packaging-py2 python2 setup.py ptr diff --git a/abs/core/python_modules/python-packaging/__changelog b/abs/core/python_modules/python-packaging/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-packaging/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-parted/PKGBUILD b/abs/core/python_modules/python-parted/PKGBUILD deleted file mode 100644 index 0e2aa3c..0000000 --- a/abs/core/python_modules/python-parted/PKGBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Nikos Skalkotos <skalkoto at gmail dot com> -# Contributor: Achilleas Pipinellis <axilleas archlinux info> -# Contributor: Stéphane Gaudreault <stephane@archlinux.org> -# Contributor: kfgz <kfgz at interia pl> -# Contributor: Gökmen Görgen <gkmngrgn at gmail dot com> -# Contributor: Baurzhan Muftakhidinov <baurthefirst (at) gmail (dot) com> - -_pkgname=pyparted -pkgname=python-parted -pkgver=3.10.1 -pkgrel=2 -pkgdesc="Python module for GNU parted" -url="https://github.com/dcantrell/pyparted" -arch=('i686' 'x86_64') -license=('GPL2') -depends=('python2' 'parted>=3.0') -makedepends=('pkg-config') -conflicts=('pyparted-git') -replaces=('pyparted') -source=("https://github.com/dcantrell/${_pkgname}/archive/${_pkgname}-${pkgver}.tar.gz") - -build() { - cd "${srcdir}/${_pkgname}-${_pkgname}-${pkgver}" - python2 setup.py build -} - -package() { - cd "${srcdir}/${_pkgname}-${_pkgname}-${pkgver}" - python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build -} -sha512sums=('d2842ba919808ccb757f6852e17c725b7db6e94db31548366fbdf2376960f8cf6ce239cb33282b4eca02f20a94f85bd58e8fc1d40834670c9684f5903c3515e5') - diff --git a/abs/core/python_modules/python-parted/__changelog b/abs/core/python_modules/python-parted/__changelog deleted file mode 100644 index 3cf54c1..0000000 --- a/abs/core/python_modules/python-parted/__changelog +++ /dev/null @@ -1 +0,0 @@ -From AUR python2-pyparted diff --git a/abs/core/python_modules/python-path/PKGBUILD b/abs/core/python_modules/python-path/PKGBUILD index 2b7dcbc..d387ee7 100644 --- a/abs/core/python_modules/python-path/PKGBUILD +++ b/abs/core/python_modules/python-path/PKGBUILD @@ -2,18 +2,18 @@ # Maintainer: Kyle Keen <keenerd@gmail.com> pkgbase=python-path -pkgname=(python2-path) -pkgver=10.1 +pkgname=(python-path python2-path) +pkgver=10.4 pkgrel=1 pkgdesc="Aka path.py, implements path objects as first-class entities" arch=('any') url="https://pypi.python.org/pypi/path.py" license=('MIT') -depends=('python2' 'python2-setuptools') -makedepends=('python2-setuptools') +depends=('python' 'python-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') #source=("https://pypi.python.org/packages/source/p/path.py/path.py-$pkgver.tar.gz") source=("https://files.pythonhosted.org/packages/source/p/path.py/path.py-$pkgver.tar.gz") -md5sums=('f9d31317ceeb798f6b5eac8d3b8e5988') +md5sums=('84ed5ec53c113554662194bb8cdfc04e') # formerly a dependency of python-pickleshare # now used by nothing so back to the AUR diff --git a/abs/core/python_modules/python-path/__changelog b/abs/core/python_modules/python-path/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-path/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-pbr/PKGBUILD b/abs/core/python_modules/python-pbr/PKGBUILD new file mode 100644 index 0000000..1a0ab63 --- /dev/null +++ b/abs/core/python_modules/python-pbr/PKGBUILD @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: Limao Luo <luolimao+AUR@gmail.com> + +pkgbase=python-pbr +pkgname=(python-pbr python2-pbr) +pkgver=3.1.1 +pkgrel=1 +pkgdesc="Python Build Reasonableness" +arch=('any') +url='https://pypi.python.org/pypi/pbr' +license=('Apache') +makedepends=('python2-setuptools' 'python-setuptools' 'git') +checkdepends=('python-testscenarios' 'python2-testscenarios' 'python-testrepository' 'python2-testrepository' + 'python-testresources' 'python2-testresources' 'python-mock' 'python2-mock' 'python-virtualenv' + 'python2-virtualenv' 'python-wheel' 'python2-wheel' 'python-sphinx' 'python2-sphinx') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack-dev/pbr/archive/$pkgver.tar.gz") +sha512sums=('c96079408f7ec0ac2e84f94e0cec5b1e6f2ca80460556cbef11568ad8a0f4bf760d5c3451fea408cd6e12acf136254d2769726310911d2e6871cea4bebdb4670') + +prepare() { + cp -a pbr-$pkgver{,-py2} + + find pbr-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + + + export PBR_VERSION=$pkgver +} + +build() { + cd "$srcdir"/pbr-$pkgver + python setup.py build + + cd "$srcdir"/pbr-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pbr-$pkgver + python setup.py testr || warning "Tests failed" + + cd "$srcdir"/pbr-$pkgver-py2 + PYTHON=python2 python2 setup.py testr || warning "Tests failed" +} + +package_python-pbr() { + depends=('python-setuptools') + + cd pbr-$pkgver + python setup.py install -O1 --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pbr() { + depends=('python2-setuptools') + + cd pbr-$pkgver-py2 + python2 setup.py install -O1 --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + mv "$pkgdir"/usr/bin/pbr{,2} +} diff --git a/abs/core/python_modules/python-pexpect/PKGBUILD b/abs/core/python_modules/python-pexpect/PKGBUILD index 4034457..e93207c 100644 --- a/abs/core/python_modules/python-pexpect/PKGBUILD +++ b/abs/core/python_modules/python-pexpect/PKGBUILD @@ -1,38 +1,39 @@ # $Id$ -# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Maintainer: Alexander F Rødseth <xyproto@archlinux.org> # Contributor: Aaron Schaefer <aaron@elasticdog.com> -pkgname=('python2-pexpect') -pkgver=3.2 +pkgname=('python-pexpect' 'python2-pexpect') +pkgver=4.4.0 pkgrel=1 -pkgdesc='Make Python a better tool for controlling and automating other programs' +pkgdesc='For controlling and automating applications' arch=('any') -url='http://pexpect.readthedocs.org/en/latest/' +url='https://pexpect.readthedocs.org/en/stable/' license=('MIT') -makedepends=('python2') -conflicts=('python-pexpect<=2.4') -replaces=('python-pexpect<=2.4') -source=("http://pypi.python.org/packages/source/p/pexpect/pexpect-$pkgver.tar.gz") -sha256sums=('dbc4c9a01c118e198d1b6ca76f31eb7292f212567f253e6b36a880e5168e961f') +makedepends=('python' 'python2') +source=("https://pypi.python.org/packages/fa/c3/60c0cbf96f242d0b47a82e9ca634dcd6dcb043832cf05e17540812e1c707/pexpect-$pkgver.tar.gz") +sha256sums=('67b85a1565968e3d5b5e7c9283caddc90c3947a2625bed1905be27bd5a03e47d') prepare() { cp -r "pexpect-$pkgver" "python2-pexpect-$pkgver" sed -i 's:env python:env python2:' "python2-pexpect-$pkgver/pexpect/FSM.py" } -#package_python-pexpect() { -# depends+=('python') -# cd "pexpect-$pkgver" -# python setup.py install --root="$pkgdir" -# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} +package_python-pexpect() { + depends+=('python' 'python-ptyprocess') + + cd "pexpect-$pkgver" + python setup.py install --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} package_python2-pexpect() { - depends+=('python2') + depends+=('python2' 'python2-ptyprocess') + cd "python2-pexpect-$pkgver" python2 setup.py install --root="$pkgdir" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# vim:set ts=2 sw=2 et: +# vim: ts=2 sw=2 et: +# getver: pypi.python.org/pypi/pexpect diff --git a/abs/core/python_modules/python-pexpect/__changelog b/abs/core/python_modules/python-pexpect/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-pexpect/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-pillow/PKGBUILD b/abs/core/python_modules/python-pillow/PKGBUILD index 461c4a7..ad443c6 100644 --- a/abs/core/python_modules/python-pillow/PKGBUILD +++ b/abs/core/python_modules/python-pillow/PKGBUILD @@ -3,72 +3,80 @@ # Contributor: minder pkgbase=python-pillow -pkgname=(python2-pillow) -pkgver=2.6.1 +pkgname=(python-pillow python2-pillow) +pkgver=5.0.0 pkgrel=1 _appname=Pillow _py2basever=2.7 -_py3basever=3.4m +_py3basever=3.6m pkgdesc="Python Imaging Library (PIL) fork. Python3 version." -arch=('i686' 'x86_64') -url="http://python-pillow.github.io/" +arch=('x86_64') +url="https://python-pillow.github.io/" license=('BSD') -makedepends=('python2-setuptools' 'lcms' 'libwebp' 'tk') -source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip") -md5sums=('f86e88a0f79f226dcdbf045b404cbdeb') +depends=('lcms2' 'libtiff' 'openjpeg2') +optdepends=('freetype2: for the ImageFont module' + 'libraqm: for complex text scripts' + 'libwebp: for webp images' + 'tk: for the ImageTK module') +makedepends=('python-setuptools' 'python2-setuptools' 'freetype2' 'libraqm' 'libwebp' 'tk') +checkdepends=('python-pytest' 'python2-pytest') +source=("https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$pkgver.tar.gz" + "freetype-2.9-testfailure.patch::https://github.com/python-pillow/Pillow/commit/4afed260dc8a2b926a8dccfeed45b085d67425ca.patch") +md5sums=('08094bc48aae6877c94f8db4b8ee8e52' + '04e168f81a434e76dab09456ad7930f9') + +# future optional things: +# libimagequant + +prepare() { + cd "$srcdir/${_appname}-$pkgver" + patch -p1 < ../freetype-2.9-testfailure.patch +} build() { - cd "$srcdir" - cp -r "$srcdir/$_appname-$pkgver" "$srcdir/${_appname}2-$pkgver" -} + cd "$srcdir/${_appname}-$pkgver" + python setup.py build + python2 setup.py build +} + +check() { + cd "$srcdir/${_appname}-$pkgver" -#package_python-pillow() { -# depends=('python' 'lcms' 'libwebp') -# optdepends=('tk: for the ImageTK module' -# 'sane: for the Sane module' -# 'python-pyqt4: for the ImageQt module') -# cd "$srcdir/$_appname-$pkgver" -# python3 setup.py install --root="$pkgdir/" --optimize=0 -# pushd Sane -# python3 setup.py install --root="$pkgdir/" --optimize=0 -# popd -# install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + export PYTHONPATH="$PWD/build/lib.linux-$CARCH-${_py3basever%m}" + python selftest.py + pytest + export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_py2basever" + python2 selftest.py + pytest2 +} -# install -dm755 "$pkgdir/usr/include/python$_py3basever/" -# install -m644 -t "$pkgdir/usr/include/python$_py3basever/" libImaging/*.h +package_python-pillow() { + depends+=('python') + optdepends+=('python-olefile: OLE2 file support' + 'python-pyqt4: for the ImageQt module' + 'python-pyqt5: for the ImageQt module' + 'python-pyside: for the ImageQt module') + cd "$srcdir/$_appname-$pkgver" + python3 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -# # clean up bins -# cd "$pkgdir/usr/bin" -# for f in *.py; do -# mv "$f" "${f%.py}" -# done -#} + install -dm755 "$pkgdir/usr/include/python$_py3basever/" + install -m644 -t "$pkgdir/usr/include/python$_py3basever/" src/libImaging/*.h +} package_python2-pillow() { pkgdesc="Python Imaging Library (PIL) fork. Python2 version." - depends=('python2' 'lcms' 'libwebp') - optdepends=('tk: for the ImageTK module' - 'sane: for the Sane module' - 'python2-pyqt4: for the ImageQt module') + depends+=('python2') + optdepends+=('python2-olefile: OLE2 file support' + 'python2-pyqt5: for the ImageQt module' + 'python2-pyqt4: for the ImageQt module' + 'python2-pyside: for the ImageQt module') provides=('python-imaging' 'python2-imaging') conflicts=('python-imaging' 'python2-imaging') - replaces=('python2-imaging') - cd "$srcdir/${_appname}2-$pkgver" - sed -i 's|/usr/local/bin/python$|/usr/bin/env python2|' PIL/OleFileIO.py - python2 setup.py install --root="$pkgdir/" --optimize=0 -# pushd Sane - python2 setup.py install --root="$pkgdir/" --optimize=0 -# popd - - install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$srcdir/${_appname}-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -dm755 "$pkgdir/usr/include/python$_py2basever/" - install -m644 -t "$pkgdir/usr/include/python$_py2basever/" libImaging/*.h - - # clean up bins - cd "$pkgdir/usr/bin" - for f in *.py; do - mv "$f" "${f%.py}2" - done + install -m644 -t "$pkgdir/usr/include/python$_py2basever/" src/libImaging/*.h } - diff --git a/abs/core/python_modules/python-pillow/__changelog b/abs/core/python_modules/python-pillow/__changelog deleted file mode 100644 index 8e7b951..0000000 --- a/abs/core/python_modules/python-pillow/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD - comment out all python 3 stuff and only build for py 2 -PKGBUILD - rm sane dep diff --git a/abs/core/python_modules/python-pip/PKGBUILD b/abs/core/python_modules/python-pip/PKGBUILD index acef38b..3531f1e 100644 --- a/abs/core/python_modules/python-pip/PKGBUILD +++ b/abs/core/python_modules/python-pip/PKGBUILD @@ -2,14 +2,14 @@ # Maintainer: Dan McGee <dan@archlinux.org> # Contributor: Sebastien Binet <binet@lblbox> -pkgname=('python2-pip') +pkgname=('python-pip' 'python2-pip') pkgver=9.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="The PyPA recommended tool for installing Python packages" url="https://pip.pypa.io/" arch=('any') license=('MIT') -makedepends=('python2' 'python2-setuptools') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') source=(https://pypi.io/packages/source/p/pip/pip-${pkgver}.tar.gz) md5sums=('35f01da33009719497f01a4ba69d63c9') sha256sums=('09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d') @@ -23,6 +23,9 @@ package_python-pip() { install -D -m644 LICENSE.txt \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -dm755 "$pkgdir"/usr/share/bash-completion/completions + PYTHONPATH="$pkgdir"/usr/lib/python3.6/site-packages "$pkgdir"/usr/bin/pip completion --bash > "$pkgdir"/usr/share/bash-completion/completions/pip } package_python2-pip() { @@ -33,12 +36,16 @@ package_python2-pip() { cd "$srcdir/pip-$pkgver" python2 setup.py build python2 setup.py install --prefix=/usr --root="$pkgdir" - + mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2" sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \ ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py - + install -D -m644 LICENSE.txt \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -dm755 "$pkgdir"/usr/share/bash-completion/completions + PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash > "$pkgdir"/usr/share/bash-completion/completions/pip2 + sed -i 's/pip/pip2/g' "$pkgdir"/usr/share/bash-completion/completions/pip2 } diff --git a/abs/core/python_modules/python-pip/__changelog b/abs/core/python_modules/python-pip/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-pip/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-pluggy/PKGBUILD b/abs/core/python_modules/python-pluggy/PKGBUILD new file mode 100644 index 0000000..8f304a4 --- /dev/null +++ b/abs/core/python_modules/python-pluggy/PKGBUILD @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-pluggy +pkgname=(python-pluggy python2-pluggy) +pkgver=0.6.0 +pkgrel=2 +pkgdesc="Plugin and hook calling mechanisms for python" +arch=('any') +url="https://www.pluggypayments.com/docs/python" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pluggy/archive/$pkgver.tar.gz") +sha512sums=('ed8fe81907c7dc476ebfbf0f7e0f902577323d64014765e7d7bfe22c2dc7e4977e1ce7ad55ce7f4e923ae23d206d6c3bcc6663de760c877fce82298cc21079db') + +prepare() { + cp -a pluggy-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pluggy-$pkgver + python setup.py build + + cd "$srcdir"/pluggy-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pluggy-$pkgver + python setup.py pytest + + cd "$srcdir"/pluggy-$pkgver-py2 + python2 setup.py pytest +} + +package_python-pluggy() { + depends=('python') + + cd pluggy-$pkgver + python setup.py install -O1 --root "$pkgdir" + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pluggy() { + depends=('python2') + + cd pluggy-$pkgver-py2 + python2 setup.py install -O1 --root "$pkgdir" + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/abs/core/python_modules/python-ply/LICENSE b/abs/core/python_modules/python-ply/LICENSE new file mode 100644 index 0000000..9738628 --- /dev/null +++ b/abs/core/python_modules/python-ply/LICENSE @@ -0,0 +1,28 @@ +Copyright (C) 2001-2015, +David M. Beazley (Dabeaz LLC) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +* Neither the name of the David Beazley or Dabeaz LLC may be used to + endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/abs/core/python_modules/python-ply/PKGBUILD b/abs/core/python_modules/python-ply/PKGBUILD index 3c8cace..3b0d7d7 100644 --- a/abs/core/python_modules/python-ply/PKGBUILD +++ b/abs/core/python_modules/python-ply/PKGBUILD @@ -1,45 +1,53 @@ # $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Alexander Rødseth <rodseth@gmail.com> # Contributor: Marcin "avalan" Falkiewicz <avalatron@gmail.com> # Contributor: C Anthony Risinger <anthony@xtfx.me> pkgbase=python-ply -pkgname=(python2-ply) -pkgver=3.4 -pkgrel=4 +pkgname=(python-ply python2-ply) +pkgver=3.11 +pkgrel=1 pkgdesc='Implementation of lex and yacc parsing tools' arch=('any') url='http://www.dabeaz.com/ply/' license=('BSD') -makedepends=('python2-setuptools') -source=("${url}ply-$pkgver.tar.gz") -sha256sums=('af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b') +makedepends=('python-setuptools' 'python2-setuptools') +source=("${url}ply-$pkgver.tar.gz" + LICENSE) +sha512sums=('37e39a4f930874933223be58a3da7f259e155b75135f1edd47069b3b40e5e96af883ebf1c8a1bbd32f914a9e92cfc12e29fec05cf61b518f46c1d37421b20008' + '5cea085a23ed260afc9084380c1d59e3942c2385089a8eb2391a89c85cde4df2ceb7eed21bb8c4d0cad5b78e59742da69e4c5c78fd0e223f5c99c56e9296a075') prepare() { - cp -r ${pkgbase#python-}-$pkgver{,-py2} + cp -a ply-$pkgver{,-py2} } -#package_python-ply() { -# depends=('python') +check() { + cd "ply-$pkgver/test" + python testlex.py + python testyacc.py -# cd "${pkgbase#python-}-$pkgver" + cd "$srcdir/ply-$pkgver-py2/test" + python2 testlex.py + python2 testyacc.py +} + +package_python-ply() { + depends=('python') + + cd "ply-$pkgver" + python setup.py install --root="$pkgdir" -# python setup.py install --root="$pkgdir" - -# install -d "$pkgdir/usr/share/licenses/$pkgname" -# head -n30 README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} + install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} package_python2-ply() { depends=('python2') - cd "${pkgbase#python-}-$pkgver-py2" - + cd "ply-$pkgver-py2" python2 setup.py install --root="$pkgdir" - - install -d "$pkgdir/usr/share/licenses/$pkgname" - head -n30 README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-ply/__changelog b/abs/core/python_modules/python-ply/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-ply/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-ptyprocess/PKGBUILD b/abs/core/python_modules/python-ptyprocess/PKGBUILD new file mode 100644 index 0000000..12092d4 --- /dev/null +++ b/abs/core/python_modules/python-ptyprocess/PKGBUILD @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Will Shanks <wsha dot code at g mail dot com> + +pkgbase=python-ptyprocess +pkgname=(python-ptyprocess python2-ptyprocess) +_pkgname=ptyprocess +pkgver=0.5.2 +pkgrel=1 +pkgdesc="Run a subprocess in a pseudo terminal" +url="https://github.com/pexpect/ptyprocess" +arch=('any') +license=('ISC') +depends=('python') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" + 'https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE') +md5sums=('d3b8febae1b8c53b054bd818d0bb8665' + 'cfdcd51fa7d5808da4e74346ee394490') + +prepare() { + cd "$srcdir" + cp -r $_pkgname-$pkgver ${_pkgname}2-$pkgver +} + +package_python-ptyprocess() { + cd "$srcdir/$_pkgname-$pkgver" + python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0 + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/python-$_pkgname/LICENSE" +} + +package_python2-ptyprocess() { + depends=('python2') + cd "$srcdir/${_pkgname}2-$pkgver" + python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0 + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/python2-$_pkgname/LICENSE" +} + diff --git a/abs/core/python_modules/python-py/PKGBUILD b/abs/core/python_modules/python-py/PKGBUILD index d0fec8b..9a2b083 100644 --- a/abs/core/python_modules/python-py/PKGBUILD +++ b/abs/core/python_modules/python-py/PKGBUILD @@ -1,5 +1,5 @@ # $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Sebastian Wiesner <lunaryorn googlemail com> # Contributor: Igor Ramos Tiburcio <irtigor@yahoo.com.br> # Contributor: Wieland Hoffmann <themineo+aur@gmail.com> @@ -7,51 +7,54 @@ # Contributor: Felix Kaiser <felix.kaiser@fxkr.net> pkgbase=python-py -pkgname=('python2-py') -pkgver=1.4.20 -pkgrel=3 +pkgname=('python-py' 'python2-py') +pkgver=1.5.3 +pkgrel=1 pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities" arch=('any') license=('MIT') -url="http://pylib.readthedocs.org/en/latest/" -makedepends=('python2-setuptools') -checkdepends=('python2-pytest') -source=("http://pypi.python.org/packages/source/p/py/py-$pkgver.tar.gz") +url="http://py.readthedocs.io/" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/py/archive/$pkgver.tar.gz") +sha512sums=('60a9fc99a61f8a31a91b4217972dd957ea1d651c8818a91e84a957e907abd4f5feff7715ef64f2902d9f0444f8210a93938fc78787992dca484a2a1311523874') prepare() { - cp -r py-${pkgver}{,-py2} + cp -a py-$pkgver{,-py2} + + export LC_CTYPE=en_US.UTF-8 } build() { -# cd "$srcdir/py-${pkgver}" -# python setup.py build + cd "$srcdir"/py-$pkgver + python setup.py build - cd "$srcdir/py-${pkgver}-py2" + cd "$srcdir"/py-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir/py-${pkgver}" -# LANG=en_US.utf8 py.test + # Known failure: https://github.com/pytest-dev/py/issues/104 + + cd "$srcdir"/py-$pkgver + python setup.py pytest || warning "Tests failed" - cd "$srcdir/py-${pkgver}-py2" - LANG=en_US.utf8 py.test2 + cd "$srcdir"/py-$pkgver-py2 + python2 setup.py pytest || warning "Tests failed" } -#package_python-py() { -# depends=('python') +package_python-py() { + depends=('python') -# cd py-${pkgver} -# python setup.py install --root="${pkgdir}" --optimize=1 -# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -#} + cd py-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} package_python2-py() { depends=('python2') - cd py-${pkgver}-py2 - python2 setup.py install --root="${pkgdir}" --optimize=1 - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd py-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -sha512sums=('db392bd8d52ac2bf7b4785e18aaf58564596f66f15d355ee6f6e4169f6da7847331096ac7118c758ee5ce3f1865502a45f92ca2c99f411c12ee316760ca2b212') diff --git a/abs/core/python_modules/python-py/__changelog b/abs/core/python_modules/python-py/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-py/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-pyasn1-modules/PKGBUILD b/abs/core/python_modules/python-pyasn1-modules/PKGBUILD new file mode 100644 index 0000000..282cca9 --- /dev/null +++ b/abs/core/python_modules/python-pyasn1-modules/PKGBUILD @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-pyasn1-modules +pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules') +pkgver=0.2.1 +pkgrel=1 +pkgdesc="A collection of ASN.1-based protocols modules" +arch=('any') +license=('BSD') +url="http://pypi.python.org/pypi/pyasn1-modules" +makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools') +source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz") +sha512sums=('2d8b6bee59434fee41747625236c1d7eb5081a1cef66aa0a0e9e75869c3641a418d21544edafe65f1808ad0dacd9cf1047dd036ff5ce668bb3bf1f6e662e4a5e') + +prepare() { + cp -a pyasn1-modules-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pyasn1-modules-$pkgver + python setup.py build + + cd "$srcdir"/pyasn1-modules-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pyasn1-modules-$pkgver + PYTHONPATH=. python tests/__main__.py + + cd "$srcdir"/pyasn1-modules-$pkgver-py2 + PYTHONPATH=. python2 tests/__main__.py +} + +package_python-pyasn1-modules() { + depends=('python-pyopenssl' 'python-pyasn1') + + cd pyasn1-modules-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +package_python2-pyasn1-modules() { + depends=('python2-pyopenssl' 'python2-pyasn1') + + cd pyasn1-modules-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} diff --git a/abs/core/python_modules/python-pyasn1/PKGBUILD b/abs/core/python_modules/python-pyasn1/PKGBUILD index ae8b69c..dbfab2a 100644 --- a/abs/core/python_modules/python-pyasn1/PKGBUILD +++ b/abs/core/python_modules/python-pyasn1/PKGBUILD @@ -2,17 +2,17 @@ # Maintainer: Eric Bélanger <eric@archlinux.org> pkgbase=python-pyasn1 -pkgname=('python2-pyasn1') -pkgver=0.1.9 +pkgname=('python-pyasn1' 'python2-pyasn1') +pkgver=0.4.2 pkgrel=1 arch=('any') url="http://sourceforge.net/projects/pyasn1/" license=('BSD') -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') replaces=('pyasn1') provides=('pyasn1') -source=(http://downloads.sourceforge.net/sourceforge/pyasn1/pyasn1-${pkgver}.tar.gz) -sha1sums=('d19599c5d9d039ead21ffcd1a2392c29a838ae03') +source=(https://pypi.io/packages/source/p/pyasn1/pyasn1-$pkgver.tar.gz) +sha512sums=('30e7cdfd2f7b182081f951bd94169a300a577f95fbfcb4ddb6dc288617b2776265018d246ae0adb649650ee94aab9122a428313d7a61559f97ed7f02b9670709') check() { cd pyasn1-${pkgver} @@ -26,7 +26,7 @@ package_python-pyasn1() { cd pyasn1-${pkgver} python setup.py install --root="${pkgdir}" - install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m 644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } package_python2-pyasn1() { @@ -35,5 +35,5 @@ package_python2-pyasn1() { cd pyasn1-${pkgver} python2 setup.py install --root="${pkgdir}" - install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m 644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/abs/core/python_modules/python-pyasn1/__changelog b/abs/core/python_modules/python-pyasn1/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-pyasn1/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-pybluez/PKGBUILD b/abs/core/python_modules/python-pybluez/PKGBUILD index e48f941..99594e6 100644 --- a/abs/core/python_modules/python-pybluez/PKGBUILD +++ b/abs/core/python_modules/python-pybluez/PKGBUILD @@ -3,29 +3,29 @@ # Contributor: cs-cam - me.at.camdaniel.com pkgbase=python-pybluez -pkgname=(python2-pybluez) -pkgver=0.20 +pkgname=(python-pybluez python2-pybluez) +pkgver=0.22 pkgrel=2 pkgdesc="Python wrapper for the BlueZ Bluetooth stack" -arch=('i686' 'x86_64') -url="http://code.google.com/p/pybluez/" +arch=('x86_64') +url="http://karulis.github.io/pybluez/" license=('GPL') -makedepends=('python2' 'bluez-libs') -source=(http://pybluez.googlecode.com/files/PyBluez-$pkgver.zip) -md5sums=('1e7fad332d50f089bbce69070c877ef6') +makedepends=('python-setuptools' 'python2-setuptools' 'bluez-libs') +source=("$pkgname-$pkgver.tar.gz::https://github.com/karulis/pybluez/archive/$pkgver.tar.gz") +md5sums=('06f71ca6d4216ace671d5e588ec85887') -#package_python-pybluez() { -# depends=('python' 'bluez-libs') +package_python-pybluez() { + depends=('python' 'bluez-libs') -# cd $srcdir/PyBluez-$pkgver -# python setup.py install --root=$pkgdir -# ln -s bluetooth/_bluetooth.so $pkgdir/usr/lib/python3.3/site-packages/_bluetooth.so -#} + cd "$srcdir"/pybluez-$pkgver + python setup.py install --root="$pkgdir" +# ln -s bluetooth/_bluetooth.so "$pkgdir"/usr/lib/python3.3/site-packages/_bluetooth.so +} package_python2-pybluez() { depends=('python2' 'bluez-libs') - cd $srcdir/PyBluez-$pkgver - python2 setup.py install --root=$pkgdir -# ln -s bluetooth/_bluetooth.so $pkgdir/usr/lib/python2.7/site-packages/_bluetooth.so + cd "$srcdir"/pybluez-$pkgver + python2 setup.py install --root="$pkgdir" +# ln -s bluetooth/_bluetooth.so "$pkgdir"/usr/lib/python2.7/site-packages/_bluetooth.so } diff --git a/abs/core/python_modules/python-pybluez/__changelog b/abs/core/python_modules/python-pybluez/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-pybluez/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-pycparser/PKGBUILD b/abs/core/python_modules/python-pycparser/PKGBUILD index 6b36524..621a643 100644 --- a/abs/core/python_modules/python-pycparser/PKGBUILD +++ b/abs/core/python_modules/python-pycparser/PKGBUILD @@ -1,53 +1,59 @@ # $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Justin Dray <justin@dray.be> # Contributor: Alexander Rødseth <rodseth@gmail.com> # Contributor: lang2 <wenzhi.liang@gmail.com> pkgbase=python-pycparser -pkgname=(python2-pycparser) -pkgver=2.10 -pkgrel=4 +pkgname=(python-pycparser python2-pycparser) +pkgver=2.18 +pkgrel=1 pkgdesc='C parser and AST generator written in Python' url='https://github.com/eliben/pycparser' -makedepends=('python2-ply' 'git') +makedepends=('python-ply' 'python2-ply' 'python-setuptools' 'python2-setuptools') arch=('any') license=('BSD') -source=('https://github.com/eliben/pycparser/archive/release_v2.10.zip') -sha256sums=('1217244f882c330782f4762a1fb37cef21a929ce0123ac388e7e367c35ddbae3') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz") +sha512sums=('76426b000ed601a8e90a1eda34374b62acdf51dcf2048881ca0d4ebc3310e25728905c2f6843dd363d497b7cf0fd8311dab6c0de74f4a5c2f25d3b1d488f082a') prepare() { - cp -r pycparser-release_v${pkgver}{,-py2} + cp -a pycparser-release_v$pkgver{,-py2} } build() { -# cd pycparser-release_v${pkgver} -# python setup.py build - -# cd pycparser -# python _build_tables.py + cd "$srcdir"/pycparser-release_v$pkgver + python setup.py build + cd pycparser + python _build_tables.py - cd "$srcdir/pycparser-release_v${pkgver}-py2" + cd "$srcdir"/pycparser-release_v$pkgver-py2 python2 setup.py build - cd pycparser python2 _build_tables.py } -#package_python-pycparser() { -# depends=('python-ply') +check() { + cd "$srcdir"/pycparser-release_v$pkgver + python tests/all_tests.py -# cd pycparser-release_v${pkgver} + cd "$srcdir"/pycparser-release_v$pkgver-py2 + python2 tests/all_tests.py +} -# python setup.py install --root="$pkgdir" --optimize=1 -# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} +package_python-pycparser() { + depends=('python-ply') + + cd pycparser-release_v$pkgver + + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} package_python2-pycparser() { depends=('python2-ply') - cd pycparser-release_v${pkgver}-py2 + cd pycparser-release_v$pkgver-py2 python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/abs/core/python_modules/python-pycparser/__changelog b/abs/core/python_modules/python-pycparser/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-pycparser/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-pycurl/PKGBUILD b/abs/core/python_modules/python-pycurl/PKGBUILD index 10f640e..a7ef90a 100644 --- a/abs/core/python_modules/python-pycurl/PKGBUILD +++ b/abs/core/python_modules/python-pycurl/PKGBUILD @@ -1,31 +1,31 @@ # $Id$ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> -# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> +# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> -_pypiname=pycurl -pkgbase=python-$_pypiname -pkgname=('python2-pycurl') -pkgver=7.43.0 +pkgbase=python-pycurl +pkgname=('python-pycurl' 'python2-pycurl') +pkgver=7.43.0.1 pkgrel=1 -arch=('i686' 'x86_64') +arch=('x86_64') url="http://pycurl.sourceforge.net/" license=('LGPL' 'MIT') -makedepends=('python2' 'curl' 'git') -checkdepends=('python2-bottle' 'python2-nose-show-skipped' - 'vsftpd' 'python2-flaky' 'python2-pyflakes') -source=("git+https://github.com/pycurl/pycurl.git#tag=REL_${pkgver//./_}") -sha1sums=('SKIP') +makedepends=('python' 'python2' 'curl') +checkdepends=('python-bottle' 'python2-bottle' 'python-nose-show-skipped' 'python2-nose-show-skipped' + 'vsftpd' 'python-flaky' 'python2-flaky' 'python-pyflakes' 'python2-pyflakes') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pycurl/pycurl/archive/REL_${pkgver//./_}.tar.gz") +sha512sums=('304212ec704dda0f630abb67c14478098f8609c64a2ccc041e519af2237d803885a27d18aac1dd77ec7526cdc7bc1fab046f3be6c94b10a2e1ae43500d2c2ffe') prepare() { - cp -a $_pypiname{,-py2} + mv pycurl-REL_${pkgver//./_} pycurl-$pkgver + cp -a pycurl-$pkgver{,-py2} - cd "$srcdir/$_pypiname" + cd "$srcdir"/pycurl-$pkgver find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python3|" {} + sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python-pycurl"/' setup.py sed -e "s/nosetests/nosetests3/" -e "s/python/python3/" -i tests/run.sh - cd "$srcdir/$_pypiname-py2" + cd "$srcdir"/pycurl-$pkgver-py2 find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python2|" {} + sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python2-pycurl"/' setup.py sed -e "s/nosetests/nosetests2/" -e "s/python/python2/" -i tests/run.sh @@ -33,11 +33,11 @@ prepare() { } build() { -# cd "$srcdir/$_pypiname" -# make -# python3 setup.py build --with-ssl + cd "$srcdir"/pycurl-$pkgver + make + python3 setup.py build --with-ssl - cd "$srcdir/$_pypiname-py2" + cd "$srcdir"/pycurl-$pkgver-py2 make python2 setup.py build --with-ssl } @@ -46,10 +46,10 @@ check() { export PYCURL_VSFTPD_PATH=vsftpd # We don't have HTTP2 enabled - cd "$srcdir/$_pypiname" - PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" make test || warning "Tests failed" + cd "$srcdir"/pycurl-$pkgver + PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" make test || warning "Tests failed" - cd "$srcdir/$_pypiname-py2" + cd "$srcdir"/pycurl-$pkgver-py2 PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make PYTHON=python2 NOSETESTS=nosetests2 test || warning "Tests failed" } @@ -57,19 +57,16 @@ package_python-pycurl() { pkgdesc="A Python 3.x interface to libcurl" depends=('python' 'curl') - cd $_pypiname - python setup.py install -O1 --root="${pkgdir}" - install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd pycurl-$pkgver + python setup.py install -O1 --root="$pkgdir" + install -D -m644 COPYING-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python2-pycurl() { pkgdesc="A Python 2.x interface to libcurl" depends=('python2' 'curl') - provides=('python-pycurl') - replaces=('python-pycurl') - conflicts=('python-pycurl') - cd $_pypiname-py2 - python2 setup.py install -O1 --root="${pkgdir}" - install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd pycurl-$pkgver-py2 + python2 setup.py install -O1 --root="$pkgdir" + install -D -m644 COPYING-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/abs/core/python_modules/python-pycurl/__changelog b/abs/core/python_modules/python-pycurl/__changelog deleted file mode 100644 index a7b93d7..0000000 --- a/abs/core/python_modules/python-pycurl/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: rm py 3 stuff - diff --git a/abs/core/python_modules/python-pygments/PKGBUILD b/abs/core/python_modules/python-pygments/PKGBUILD index fa1e572..37fe169 100644 --- a/abs/core/python_modules/python-pygments/PKGBUILD +++ b/abs/core/python_modules/python-pygments/PKGBUILD @@ -2,51 +2,58 @@ # Maintainer: Evangelos Foutras <evangelos@foutrelis.com> # Contributor: Timm Preetz <timm@preetz.us> -pkgname=('python2-pygments') -pkgver=1.6 -pkgrel=3 +pkgname=('python-pygments' 'python2-pygments' 'pygmentize') +pkgver=2.2.0 +pkgrel=1 pkgdesc="Python syntax highlighter" arch=('any') url="http://pygments.org/" license=('BSD') -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') options=('!emptydirs') -source=(http://pypi.python.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz) -sha256sums=('799ed4caf77516e54440806d8d9cd82a7607dfdf4e4fb643815171a4b5c921c0') - -build() { - cd "$srcdir" - - rm -rf python{2,3}-build - for builddir in python2-build; do - cp -r Pygments-$pkgver $builddir - pushd $builddir - ${builddir%-build} setup.py build - popd - done -} +source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz) +sha256sums=('dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc') -#package_python-pygments() { -# depends=('python-setuptools') -# install=python-pygments.install +package_python-pygments() { + depends=('python-setuptools') -# cd "$srcdir/python3-build" + cd "$srcdir/Pygments-$pkgver" -# python3 setup.py install --root="$pkgdir" -O1 + python3 setup.py install --root="$pkgdir" -O1 - # pygmentize has been moved to the python2-pygments package -# rm "$pkgdir/usr/bin/pygmentize" + # pygmentize is shipped in its own package + rm "$pkgdir/usr/bin/pygmentize" -# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} package_python2-pygments() { depends=('python2-setuptools') + install=python2-pygments.install - cd "$srcdir/python2-build" + cd "$srcdir/Pygments-$pkgver" python2 setup.py install --root="$pkgdir" -O1 + # pygmentize is shipped in its own package + rm "$pkgdir/usr/bin/pygmentize" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_pygmentize() { + depends=('python-pygments') + + cd "$srcdir/Pygments-$pkgver" + + python3 setup.py install --root="$pkgdir" -O1 + + # Remove all files except for usr/bin/pygmentize + find "$pkgdir" -type f -not -name pygmentize -delete + + # Drop version dependency from console script + sed -i "s/Pygments==$pkgver/Pygments/g" "$pkgdir/usr/bin/pygmentize" + install -Dm644 external/pygments.bashcomp \ "$pkgdir/usr/share/bash-completion/completions/pygmentize" diff --git a/abs/core/python_modules/python-pygments/__changelog b/abs/core/python_modules/python-pygments/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-pygments/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-pygments/python-pygments.install b/abs/core/python_modules/python-pygments/python-pygments.install deleted file mode 100644 index eab5811..0000000 --- a/abs/core/python_modules/python-pygments/python-pygments.install +++ /dev/null @@ -1,7 +0,0 @@ -post_upgrade() { - if (($(vercmp $2 1.4-5) < 0)); then - echo '/usr/bin/pygmentize has been moved to the python2-pygments package' - fi -} - -# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pygments/python2-pygments.install b/abs/core/python_modules/python-pygments/python2-pygments.install new file mode 100644 index 0000000..3949246 --- /dev/null +++ b/abs/core/python_modules/python-pygments/python2-pygments.install @@ -0,0 +1,7 @@ +post_upgrade() { + if (($(vercmp $2 2.0.2-2) < 0)); then + echo ':: /usr/bin/pygmentize has been moved to the pygmentize package' + fi +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pyparsing/PKGBUILD b/abs/core/python_modules/python-pyparsing/PKGBUILD index 510d8bf..97da919 100644 --- a/abs/core/python_modules/python-pyparsing/PKGBUILD +++ b/abs/core/python_modules/python-pyparsing/PKGBUILD @@ -7,13 +7,13 @@ # Contributor: Michael Krauss <hippodriver@gmx.net> pkgname=python-pyparsing -pkgname=('python2-pyparsing') +pkgname=('python-pyparsing' 'python2-pyparsing') pkgver=2.2.0 -pkgrel=1 +pkgrel=2 pkgdesc='General parsing module for Python' arch=('any') url='http://pyparsing.wikispaces.com/' -makedepends=('python2-setuptools' 'subversion') +makedepends=('python-setuptools' 'python2-setuptools' 'subversion') license=('MIT') source=("svn://svn.code.sf.net/p/pyparsing/code/tags/pyparsing_$pkgver") sha256sums=('SKIP') @@ -26,8 +26,8 @@ prepare() { } build() { -# cd "$srcdir"/pyparsing_$pkgver/src -# python setup.py build + cd "$srcdir"/pyparsing_$pkgver/src + python setup.py build cd "$srcdir"/pyparsing_$pkgver-py2/src python2 setup.py build @@ -36,8 +36,8 @@ build() { check() { export LC_CTYPE=en_US.UTF-8 -# cd "$srcdir"/pyparsing_$pkgver/src -# python unitTests.py + cd "$srcdir"/pyparsing_$pkgver/src + python unitTests.py cd "$srcdir"/pyparsing_$pkgver-py2/src python2 unitTests.py diff --git a/abs/core/python_modules/python-pyparsing/__changelog b/abs/core/python_modules/python-pyparsing/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-pyparsing/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-pyparted/PKGBUILD b/abs/core/python_modules/python-pyparted/PKGBUILD new file mode 100644 index 0000000..e5a46cb --- /dev/null +++ b/abs/core/python_modules/python-pyparted/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Nikos Skalkotos <skalkoto at gmail dot com> +# Contributor: Christian Hesse <mail@eworm.de> +# Contributor: Dennis Værum <dennis.vaerum (at) gmail (dot) com> +# Contributor: Achilleas Pipinellis <axilleas archlinux info> +# Contributor: Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: kfgz <kfgz at interia pl> +# Contributor: Gökmen Görgen <gkmngrgn at gmail dot com> +# Contributor: Baurzhan Muftakhidinov <baurthefirst (at) gmail (dot) com> + +_pkgname=pyparted +pkgbase=python-${_pkgname} +pkgname=(python-${_pkgname} python2-${_pkgname}) +pkgver=3.11.1 +pkgrel=2 +pkgdesc="Python module for GNU parted" +url="https://github.com/rhinstaller/pyparted" +arch=('i686' 'x86_64') +license=('GPL2') +makedepends=('pkg-config' 'python' 'python2' 'parted>=3.0') +conflicts=('pyparted-git') +replaces=('pyparted') +source=("https://github.com/dcantrell/${_pkgname}/archive/v${pkgver}.tar.gz") +sha512sums=('4fe627693db803a82cacb37be8f2bee3527ee8d0d564229d7328a4e5c8dfa7cdd7a06c328ac7fa6b07c8f0c74d5db304410eaf312a60a0d494525d32c873fefd') + +package_python-pyparted() { + pkgdesc="Python module for GNU parted - python 3.x pkg" + depends=('python' 'parted>=3.0') + + cd "${srcdir}/${_pkgname}-${pkgver}" + python3 setup.py build + python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build +} + +package_python2-pyparted() { + pkgdesc="Python module for GNU parted - python 2.x pkg" + depends=('python2' 'parted>=3.0') + replaces=('python-parted') + conflicts=('python-parted') + + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py build + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build +} + diff --git a/abs/core/python_modules/python-pyrss2gen/PKGBUILD b/abs/core/python_modules/python-pyrss2gen/PKGBUILD index 69258ca..e11d4ee 100644 --- a/abs/core/python_modules/python-pyrss2gen/PKGBUILD +++ b/abs/core/python_modules/python-pyrss2gen/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Chris Warrick <aur@chriswarrick.com> pkgbase=python-pyrss2gen -pkgname=('python2-pyrss2gen') +pkgname=('python-pyrss2gen' 'python2-pyrss2gen') _pyname=PyRSS2Gen pkgver=1.1 -pkgrel=6 +pkgrel=7 pkgdesc='A Python library for generating RSS 2.0 feeds.' arch=('any') url="http://www.dalkescientific.com/Python/PyRSS2Gen.html" license=('BSD') -makedepends=('python2' 'python2-setuptools') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools') options=(!emptydirs) source=("http://www.dalkescientific.com/Python/${_pyname}-${pkgver}.tar.gz") md5sums=("c56b9453d52b0a70be4f3e95112058aa") diff --git a/abs/core/python_modules/python-pyrss2gen/__changelog b/abs/core/python_modules/python-pyrss2gen/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-pyrss2gen/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-pysocks/PKGBUILD b/abs/core/python_modules/python-pysocks/PKGBUILD index e9e91f2..966eae2 100644 --- a/abs/core/python_modules/python-pysocks/PKGBUILD +++ b/abs/core/python_modules/python-pysocks/PKGBUILD @@ -3,25 +3,25 @@ # Contributor: Michael Schubert <mschu.dev at gmail> pkgbase=python-pysocks -pkgname=(python2-pysocks) -pkgver=1.6.7 +pkgname=(python-pysocks python2-pysocks) +pkgver=1.6.8 pkgrel=1 pkgdesc="SOCKS4, SOCKS5 or HTTP proxy (Anorov fork PySocks replaces socksipy)" arch=('any') license=('BSD') url="https://github.com/Anorov/PySocks" -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') checkdepends=('lib32-glibc' 'python2-twisted' 'python2-tornado') source=("$pkgbase-$pkgver.tar.gz::https://github.com/Anorov/PySocks/archive/$pkgver.tar.gz") -sha512sums=('6b670b2246c2c3c8d0b5424f6fb65cbab1d030d58b15f99db9eb232ead5e853c52af637f3d429e3fe88c70792f3b4913219b6694fa0e81318cdd40c41c1b17d6') +sha512sums=('d6d28a77e1162dee2574c5ca69a01b94ebb3c0c5e9f875569ace2689ea31a4eebed1463472731635b242698a3a3215cadd79744c068610995d81f95ef94dd228') prepare() { cp -a PySocks-$pkgver{,-py2} } build() { -# cd "$srcdir"/PySocks-$pkgver -# python setup.py build + cd "$srcdir"/PySocks-$pkgver + python setup.py build cd "$srcdir"/PySocks-$pkgver-py2 python2 setup.py build @@ -41,8 +41,8 @@ check_disabled() { python2 sockstest.py -# cd "$srcdir"/PySocks-$pkgver/test -# python sockstest.py + cd "$srcdir"/PySocks-$pkgver/test + python sockstest.py ./mocks shutdown diff --git a/abs/core/python_modules/python-pysocks/__changelog b/abs/core/python_modules/python-pysocks/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-pysocks/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-pytest-forked/PKGBUILD b/abs/core/python_modules/python-pytest-forked/PKGBUILD new file mode 100644 index 0000000..02d7776 --- /dev/null +++ b/abs/core/python_modules/python-pytest-forked/PKGBUILD @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-pytest-forked +pkgname=('python-pytest-forked' 'python2-pytest-forked') +pkgver=0.2 +pkgrel=1 +pkgdesc='run tests in isolated forked subprocesses' +arch=('any') +license=('MIT') +url='https://github.com/pytest-dev/pytest-forked' +makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-forked/archive/v$pkgver.tar.gz") +md5sums=('3c26f166ff2532c103a6572405db68b1') + +prepare() { + cp -a pytest-forked-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd "$srcdir"/pytest-forked-$pkgver + python setup.py build + + cd "$srcdir"/pytest-forked-$pkgver-py2 + python2 setup.py build +} + +check() { + # Hack entry points by installing it + + cd "$srcdir"/pytest-forked-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test + + cd "$srcdir"/pytest-forked-$pkgver-py2 + python2 setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2 +} + +package_python-pytest-forked() { + depends=('python-pytest') + + cd pytest-forked-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pytest-forked() { + depends=('python2-pytest') + + cd pytest-forked-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pytest-runner/PKGBUILD b/abs/core/python_modules/python-pytest-runner/PKGBUILD index 5d106ce..8928aa0 100644 --- a/abs/core/python_modules/python-pytest-runner/PKGBUILD +++ b/abs/core/python_modules/python-pytest-runner/PKGBUILD @@ -2,14 +2,14 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-pytest-runner -pkgname=('python2-pytest-runner') +pkgname=('python-pytest-runner' 'python2-pytest-runner') pkgver=2.11.1 -pkgrel=1 +pkgrel=2 pkgdesc="Invoke py.test as distutils command with dependency resolution" arch=('any') license=('MIT') url="https://github.com/pytest-dev/pytest-runner" -makedepends=('python2-pytest' 'python2-setuptools-scm' 'git') +makedepends=('python-pytest' 'python-setuptools-scm' 'python2-pytest' 'python2-setuptools-scm' 'git') source=("git+https://github.com/pytest-dev/pytest-runner.git#tag=$pkgver") sha512sums=('SKIP') @@ -18,17 +18,17 @@ prepare() { } build() { -# cd "$srcdir"/pytest-runner -# python setup.py build + cd "$srcdir"/pytest-runner + python setup.py build cd "$srcdir"/pytest-runner-py2 python2 setup.py build } check() { -# cd "$srcdir"/pytest-runner -# python setup.py egg_info -# PYTHONPATH="$PWD" pytest + cd "$srcdir"/pytest-runner + python setup.py egg_info + PYTHONPATH="$PWD" pytest cd "$srcdir"/pytest-runner-py2 python2 setup.py egg_info diff --git a/abs/core/python_modules/python-pytest-runner/__changelog b/abs/core/python_modules/python-pytest-runner/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-pytest-runner/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-pytest-xdist/PKGBUILD b/abs/core/python_modules/python-pytest-xdist/PKGBUILD new file mode 100644 index 0000000..5fd48ca --- /dev/null +++ b/abs/core/python_modules/python-pytest-xdist/PKGBUILD @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-pytest-xdist +pkgname=('python-pytest-xdist' 'python2-pytest-xdist') +pkgver=1.22.2 +pkgrel=1 +pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes' +arch=('any') +license=('MIT') +url='https://bitbucket.org/pytest-dev/pytest-xdist' +makedepends=('python-pytest' 'python2-pytest' 'python-setuptools_scm' 'python2-setuptools_scm' + 'python-execnet' 'python2-execnet' 'python-pytest-forked' 'python2-pytest-forked') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz") +sha512sums=('22de52876bdbcfdeb5ee14d4159ed8535d3f3afa1c2d67116f4d249cced24627163b34f3e1629b2198eb6f5672e4a7db7c864f6e45a37759be01ab2753a20dce') + +prepare() { + cp -a pytest-xdist-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd "$srcdir"/pytest-xdist-$pkgver + python setup.py build + + cd "$srcdir"/pytest-xdist-$pkgver-py2 + python2 setup.py build +} + +check() { + # Hack entry points by installing it + + cd "$srcdir"/pytest-xdist-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test + + cd "$srcdir"/pytest-xdist-$pkgver-py2 + python2 setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2 +} + +package_python-pytest-xdist() { + depends=('python-pytest-forked' 'python-execnet') + + cd pytest-xdist-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pytest-xdist() { + depends=('python2-pytest-forked' 'python2-execnet') + + cd pytest-xdist-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pytest/PKGBUILD b/abs/core/python_modules/python-pytest/PKGBUILD index d8db835..0a9faed 100644 --- a/abs/core/python_modules/python-pytest/PKGBUILD +++ b/abs/core/python_modules/python-pytest/PKGBUILD @@ -1,56 +1,63 @@ # $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Felix Kaiser <felix.kaiser@fxkr.net> pkgbase=python-pytest -pkgname=('python2-pytest') -pkgver=2.5.2 -pkgrel=3 +pkgname=('python-pytest' 'python2-pytest') +pkgver=3.5.0 +pkgrel=1 pkgdesc="Simple powerful testing with Python" arch=('any') license=('MIT') url="http://pytest.org/" -makedepends=('python2-setuptools' 'python2-py') -checkdepends=('lsof' 'python2-nose' 'twisted' 'python2-mock' 'python2-yaml' 'python2-pexpect') -source=("http://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.tar.gz") +makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-pluggy' + 'python2-pluggy' 'python-attrs' 'python2-attrs' 'python-more-itertools' + 'python2-more-itertools' 'python2-funcsigs') +checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-tox' + 'python2-tox' 'python-yaml' 'python2-yaml' 'python-pytest-xdist' + 'python2-pytest-xdist' 'python-twisted' 'python2-twisted' 'python-requests' + 'python2-requests' 'python-hypothesis' 'python2-hypothesis') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz") +sha512sums=('3e67f411b45f0cce6921d65926b3c6b7bcf6169a8e96eb8f74465d795a49d690c7027db3cb3147868ce238d5b416a6e87de27728598e4a526bf6bbb7a5506913') prepare() { - cp -r pytest-${pkgver}{,-py2} + cp -a pytest-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver } build() { -# cd "$srcdir/pytest-${pkgver}" -# python setup.py build + cd "$srcdir"/pytest-$pkgver + python setup.py build - cd "$srcdir/pytest-${pkgver}-py2" + cd "$srcdir"/pytest-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir/pytest-${pkgver}" -# python setup.py test + cd "$srcdir"/pytest-$pkgver + python setup.py test - cd "$srcdir/pytest-${pkgver}-py2" - # Tests fail with 2.5.2: https://bitbucket.org/hpk42/pytest/issue/493/example-failure-in-pytests-own-testcase + cd "$srcdir"/pytest-$pkgver-py2 python2 setup.py test } -#package_python-pytest() { -# depends=('python' 'python-py' 'python-setuptools') +package_python-pytest() { + depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools') -# cd pytest-${pkgver} -# python setup.py install --root="${pkgdir}" --optimize=1 -# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -#} + cd pytest-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} package_python2-pytest() { - depends=('python2' 'python2-py' 'python2-setuptools') + depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' + 'python2-more-itertools' 'python2-funcsigs') - cd pytest-${pkgver}-py2 - python2 setup.py install --root="${pkgdir}" --optimize=1 - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd pytest-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - mv "${pkgdir}/usr/bin/py.test" "${pkgdir}/usr/bin/py.test2" + mv "$pkgdir"/usr/bin/py.test{,2} + mv "$pkgdir"/usr/bin/pytest{,2} } - -sha512sums=('d291f229f4c0a2132c437dde6ca04bf87701fe270c2fa314104badad9221ab866251890c66387d23fefd3ab1f928ee3b290dac21e3d62e7660af8903e85a2f36') diff --git a/abs/core/python_modules/python-pytest/__changelog b/abs/core/python_modules/python-pytest/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-pytest/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-pytz/PKGBUILD b/abs/core/python_modules/python-pytz/PKGBUILD index 3e77d2a..fca20e0 100644 --- a/abs/core/python_modules/python-pytz/PKGBUILD +++ b/abs/core/python_modules/python-pytz/PKGBUILD @@ -3,16 +3,15 @@ # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org> # Contributor: William Rea <sillywilly@gmail.com> -pkgname=('python2-pytz') -pkgver=2017.2 +pkgname=('python-pytz' 'python2-pytz') +pkgver=2018.3 pkgrel=1 arch=('any') url="http://pypi.python.org/pypi/pytz" license=("MIT") -makedepends=('python2') -source=(https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-2017.2.zip{,.asc}) -md5sums=('f89bde8a811c8a1a5bac17eaaa94383c' - 'SKIP') +makedepends=('python' 'python2') +source=("https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz") +md5sums=('abb07c09c79f78d7c04f222a550c99ef') validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A') build(){ @@ -23,8 +22,7 @@ build(){ check(){ cd $srcdir/pytz-$pkgver/pytz/tests -# python3 test_tzinfo.py - + python3 test_tzinfo.py python2 test_tzinfo.py } @@ -50,7 +48,7 @@ package_python2-pytz(){ cd $srcdir/pytz2-$pkgver # python 2 fix - sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pytz/tzfile.py +# sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pytz/tzfile.py python2 setup.py install --root="$pkgdir/" diff --git a/abs/core/python_modules/python-pytz/__changelog b/abs/core/python_modules/python-pytz/__changelog deleted file mode 100644 index c6e1e55..0000000 --- a/abs/core/python_modules/python-pytz/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: don't build py 3 stuff diff --git a/abs/core/python_modules/python-rebulk/PKGBUILD b/abs/core/python_modules/python-rebulk/PKGBUILD index c7338bf..b7473a8 100644 --- a/abs/core/python_modules/python-rebulk/PKGBUILD +++ b/abs/core/python_modules/python-rebulk/PKGBUILD @@ -1,15 +1,15 @@ # Maintainer: Sebastien Leduc <sebastien@sleduc.fr> -pkgname=('python2-rebulk') +pkgname=('python-rebulk' 'python2-rebulk') pkgbase='python-rebulk' _guser='Toilal' _gproject="rebulk" pkgver=0.9.0 -pkgrel=1 +pkgrel=2 pkgdesc=" Define simple search patterns in bulk to perform advanced matching on any string. " arch=("any") url="https://github.com/Toilal/rebulk" license=('MIT') -makedepends=('python2' 'python2-setuptools' 'python2-pytest-runner') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-pytest-runner' 'python2-pytest-runner') options=(!emptydirs) source=("https://github.com/${_guser}/${_gproject}/archive/${pkgver}.tar.gz") md5sums=('7f76cd95e6ca9219202aeaa9b1b7b7c8') diff --git a/abs/core/python_modules/python-rebulk/__changelog b/abs/core/python_modules/python-rebulk/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-rebulk/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-regex/PKGBUILD b/abs/core/python_modules/python-regex/PKGBUILD index 13c1ca0..e07a3c2 100644 --- a/abs/core/python_modules/python-regex/PKGBUILD +++ b/abs/core/python_modules/python-regex/PKGBUILD @@ -1,46 +1,68 @@ # Maintainer: Jelle van der Waa <jelle@archlinux.org> +# Maintainer: Eli Schwartz <eschwartz@archlinux.org> # Contributor: Nikola Milinković <nikmil@gmail.com> # Submitter: Xiao-Long Chen <chenxiaolong@cxl.epac.to> _pkgbase=regex pkgbase=python-regex -pkgname=('python2-regex') -#pkgname=python-regex -pkgver=2017.07.11 +pkgname=('python-regex' 'python2-regex') +pkgname=python-regex +pkgver=2018.02.21 pkgrel=1 pkgdesc="Alternative python regular expression module." -arch=('x86_64' 'i686') +arch=('x86_64') url="https://bitbucket.org/mrabarnett/mrab-regex" license=('Python') -makedepends=('python2-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') options=(!emptydirs) source=(https://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz) -sha256sums=('dbda8bdc31a1c85445f1a1b29d04abda46e5c690f8f933a9cc3a85a358969616') +sha256sums=('b44624a38d07d3c954c84ad302c29f7930f4bf01443beef5589e9157b14e2a29') + +build() { + cd "regex-${pkgver}" + + python setup.py build + python2 setup.py build +} + +check() { + cd "regex-${pkgver}" + + pushd build/lib.linux-${CARCH}-3*/ + python test_regex.py + popd + + pushd build/lib.linux-${CARCH}-2*/ + python2 test_regex.py + popd +} package_python2-regex() { depends=('python2') - conflicts=('python2-regex-hg') pkgdesc="Alternative python regular expression module. (python2 version)" cd "regex-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 + python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build install -v -m755 -d "${pkgdir}/usr/share/doc/python2-regex" install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python2-regex/" install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python2-regex/" install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python2-regex/" + + sed -n '1,/^$/p' regex_2/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } package_python-regex() { depends=('python') - conflicts=('python-regex-hg') pkgdesc="Alternative python regular expression module. (python3 version)" cd "regex-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build install -v -m755 -d "${pkgdir}/usr/share/doc/python-regex" install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python-regex/" install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python-regex/" install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python-regex/" + + sed -n '1,/^$/p' regex_3/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } diff --git a/abs/core/python_modules/python-regex/__changelog b/abs/core/python_modules/python-regex/__changelog deleted file mode 100644 index c6e1e55..0000000 --- a/abs/core/python_modules/python-regex/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: don't build py 3 stuff diff --git a/abs/core/python_modules/python-requests-cache/PKGBUILD b/abs/core/python_modules/python-requests-cache/PKGBUILD index b7d9937..39784ed 100644 --- a/abs/core/python_modules/python-requests-cache/PKGBUILD +++ b/abs/core/python_modules/python-requests-cache/PKGBUILD @@ -2,16 +2,17 @@ pkgbase=python-requests-cache _pyname=requests-cache -pkgname=('python2-requests-cache') -makedepends=('python2' 'python2-setuptools') -pkgver=0.4.12 -pkgrel=2 +pkgname=('python-requests-cache' 'python2-requests-cache') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' + 'python-requests' 'python2-requests') +pkgver=0.4.13 +pkgrel=1 pkgdesc="Persistent cache for requests library" arch=('any') url="https://github.com/reclosedev/requests-cache" license=('BSD') source=("${_pyname}-${pkgver}.tar.gz::https://github.com/reclosedev/${_pyname}/archive/v${pkgver}.tar.gz") -sha512sums=('06d563d59c24f311209b81beb96130b75d1e849e0bb94ad636b3ac269eed7c89fdddfed8da86560473c4463425ea98953d30fb3da05efd614907855f130587fc') +sha512sums=('54d814c9c4da1b1fa6f4ec124faee7e74e7ca52bc90ae7c948f19e9cb7657fe2b41f5de6c5fafe259526312d82dc5efd81ad01a741a66baf12ea2a358334f912') package_python-requests-cache() { depends=('python') diff --git a/abs/core/python_modules/python-requests-cache/__changelog b/abs/core/python_modules/python-requests-cache/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-requests-cache/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-requests/PKGBUILD b/abs/core/python_modules/python-requests/PKGBUILD index d5e1fb4..e791c7b 100644 --- a/abs/core/python_modules/python-requests/PKGBUILD +++ b/abs/core/python_modules/python-requests/PKGBUILD @@ -3,25 +3,26 @@ # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> pkgbase=python-requests -pkgname=('python2-requests') -pkgver=2.18.1 +pkgname=('python-requests' 'python2-requests') +pkgver=2.18.4 pkgrel=1 pkgdesc="Python HTTP for Humans" arch=('any') url="http://python-requests.org" license=('Apache') -makedepends=('python2-setuptools' 'python2-chardet' - 'python2-urllib3' 'python2-idna') -checkdepends=('python2-pytest-httpbin' - 'python2-pytest-mock' 'python2-pysocks') +makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet' + 'python-urllib3' 'python2-urllib3' 'python-idna' 'python2-idna') +checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 'python-pytest-mock' + 'python2-pytest-mock' 'python-pysocks' 'python2-pysocks') source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz" certs.patch) -sha512sums=('a80e0487b4b729e69522817bc2eec2a9c5f1df34df385581b3e937c2409e0fcb4e1f9b4794b198c8b8a57fc05b1bc513fc70d41b324ae251de0fa9bc7c9e6947' +sha512sums=('8ca20fe18d13b8c62977be0c51617f2ae8618d3d002ad4dc554362828855db7359274efbff0cd13e8c5699508913e91205cffcf306221a70321e74ac10b2d4d7' '424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3') prepare() { cd "$srcdir"/requests-$pkgver - sed -i '/certifi/d' setup.py + sed -e '/certifi/d' \ + -i setup.py patch -p1 -i "$srcdir"/certs.patch cd "$srcdir" @@ -30,16 +31,16 @@ prepare() { } build() { -# cd "$srcdir"/requests-$pkgver -# python setup.py build + cd "$srcdir"/requests-$pkgver + python setup.py build cd "$srcdir"/requests-$pkgver-py2 python2 setup.py build } check() { -# cd "$srcdir"/requests-$pkgver -# py.test tests + cd "$srcdir"/requests-$pkgver + py.test tests cd "$srcdir"/requests-$pkgver-py2 py.test2 tests diff --git a/abs/core/python_modules/python-requests/__changelog b/abs/core/python_modules/python-requests/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-requests/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-rpyc/PKGBUILD b/abs/core/python_modules/python-rpyc/PKGBUILD index 55fcea4..63d9987 100644 --- a/abs/core/python_modules/python-rpyc/PKGBUILD +++ b/abs/core/python_modules/python-rpyc/PKGBUILD @@ -1,10 +1,10 @@ # Maintainer: Sebastien Leduc <sebastien AT sleduc DOT fr> -pkgname=('python2-rpyc') +pkgname=('python-rpyc' 'python2-rpyc') pkgbase='python-rpyc' _realname=rpyc pkgver=3.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Remote Python Call (RPyC), a transparent and symmetric RPC library" url="http://rpyc.readthedocs.org" arch=('any') diff --git a/abs/core/python_modules/python-rpyc/__changelog b/abs/core/python_modules/python-rpyc/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-rpyc/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-service-identity/PKGBUILD b/abs/core/python_modules/python-service-identity/PKGBUILD new file mode 100644 index 0000000..6575c5c --- /dev/null +++ b/abs/core/python_modules/python-service-identity/PKGBUILD @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-service-identity +pkgname=('python-service-identity' 'python2-service-identity') +pkgver=17.0.0 +pkgrel=1 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/service_identity" +makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' + 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' + 'python-attrs' 'python2-attrs' 'python-idna' 'python2-idna') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pyca/service_identity/archive/$pkgver.tar.gz") +sha512sums=('3824cb473420a5ce6779fd35ff931189ed68286ad1f7f2936e3253a785cd76a77bbb95210a4a5fde1b1ef0c8d9c762b8e89ab44dce60ee43e34b2553ab78b5aa') + +prepare() { + cp -a service_identity-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/service_identity-$pkgver + python setup.py build + + cd "$srcdir"/service_identity-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/service_identity-$pkgver + python setup.py pytest + + cd "$srcdir"/service_identity-$pkgver-py2 + python2 setup.py pytest +} + +package_python-service-identity() { + depends=('python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-attrs') + optdepends=('python-idna: for Internationalized Domain Names support') + + cd service_identity-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-service-identity() { + depends=('python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-attrs') + optdepends=('python2-idna: for Internationalized Domain Names support') + + cd service_identity-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/abs/core/python_modules/python-setuptools-git/PKGBUILD b/abs/core/python_modules/python-setuptools-git/PKGBUILD new file mode 100644 index 0000000..d91d3df --- /dev/null +++ b/abs/core/python_modules/python-setuptools-git/PKGBUILD @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-setuptools-git +pkgname=('python-setuptools-git' 'python2-setuptools-git') +pkgver=1.2 +pkgrel=1 +pkgdesc='Setuptools revision control system plugin for Git' +arch=('any') +license=('BSD') +url='https://github.com/msabramo/setuptools-git' +makedepends=('python-setuptools' 'python2-setuptools' 'git') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/msabramo/setuptools-git/archive/$pkgver.tar.gz") +sha512sums=('368d56003a440c5be00685356b0aef97fdea4a84a6d4e56d59964833b55de4916353e061f2eebf2de4dac2df4783a0a1b2d58ba88e1a93979b38a2b62900c1c1') + +prepare() { + cp -a setuptools-git-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/setuptools-git-$pkgver + python setup.py build + + cd "$srcdir"/setuptools-git-$pkgver-py2 + python2 setup.py build +} + +check() { + git config --global user.email "deedbeaf" + + cd "$srcdir"/setuptools-git-$pkgver + python setup.py test + + cd "$srcdir"/setuptools-git-$pkgver-py2 + python2 setup.py test +} + +package_python-setuptools-git() { + depends=('python-setuptools' 'git') + + cd setuptools-git-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +package_python2-setuptools-git() { + depends=('python2-setuptools' 'git') + + cd setuptools-git-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-setuptools-scm/PKGBUILD b/abs/core/python_modules/python-setuptools-scm/PKGBUILD index c874b8b..d4d0da6 100644 --- a/abs/core/python_modules/python-setuptools-scm/PKGBUILD +++ b/abs/core/python_modules/python-setuptools-scm/PKGBUILD @@ -3,17 +3,17 @@ # Contributor: Hugo Osvaldo Barrera <hugo@barrera.io> pkgbase=python-setuptools-scm -pkgname=(python2-setuptools-scm) -pkgver=1.15.6 +pkgname=(python-setuptools-scm python2-setuptools-scm) +pkgver=1.17.0 pkgrel=1 pkgdesc="Handles managing your python package versions in scm metadata." arch=('any') url="https://github.com/pypa/setuptools_scm" license=('MIT') -makedepends=('python2-setuptools') -checkdepends=('python2-pytest' 'mercurial' 'git' 'python2-pip') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest' 'python2-pytest' 'mercurial' 'git' 'python-pip' 'python2-pip') source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools_scm/archive/v$pkgver.tar.gz") -sha512sums=('c97669232a492e19bdb073c48f9e792ee029ee2af2191da65461436e2a66a3adf5ad490f0a1429c33a5574d4afeb0d54afedfe78f581fff890ecfc787d08ef5a') +sha512sums=('8846a4c0b8a901108ee3444f1682235a68d74dec6468f5f32af6502c11e9a7aedf6f81744d9fdd4d71d59b4f9ddc1e9685ca7e2084ebb247800e6d03d7e15899') prepare() { cp -a setuptools_scm-$pkgver{,-py2} @@ -22,9 +22,9 @@ prepare() { } build() { -# cd "$srcdir"/setuptools_scm-$pkgver -# python setup.py build -# python setup.py egg_info + cd "$srcdir"/setuptools_scm-$pkgver + python setup.py build + python setup.py egg_info cd "$srcdir"/setuptools_scm-$pkgver-py2 python2 setup.py build @@ -34,9 +34,9 @@ build() { check() { # Hack entry points by installing it -# cd "$srcdir"/setuptools_scm-$pkgver -# python setup.py install --root="$PWD/tmp_install" --optimize=1 -# SETUPTOOLS_SCM_PRETEND_VERSION= PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test + cd "$srcdir"/setuptools_scm-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + SETUPTOOLS_SCM_PRETEND_VERSION= PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test cd "$srcdir"/setuptools_scm-$pkgver-py2 python2 setup.py install --root="$PWD/tmp_install" --optimize=1 diff --git a/abs/core/python_modules/python-setuptools-scm/__changelog b/abs/core/python_modules/python-setuptools-scm/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-setuptools-scm/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-setuptools/PKGBUILD b/abs/core/python_modules/python-setuptools/PKGBUILD index 31a941e..c90e33c 100644 --- a/abs/core/python_modules/python-setuptools/PKGBUILD +++ b/abs/core/python_modules/python-setuptools/PKGBUILD @@ -3,48 +3,55 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-setuptools -pkgname=('python2-setuptools') -pkgver=36.2.0 +pkgname=('python-setuptools' 'python2-setuptools') +pkgver=39.0.1 pkgrel=1 epoch=1 pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages" arch=('any') license=('PSF') url="http://pypi.python.org/pypi/setuptools" -makedepends=('python2-packaging' 'python2-appdirs' - 'python2-pip') -checkdepends=('python2-pytest-runner' - 'python2-pytest-flake8' 'python2-backports.unittest_mock' 'git') +makedepends=('python-packaging' 'python2-packaging' 'python-appdirs' 'python2-appdirs') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-flake8' + 'python2-pytest-flake8' 'python-mock' 'python2-mock' 'python-pytest-fixture-config' + 'python2-pytest-fixture-config' 'python-pytest-virtualenv' 'python2-pytest-virtualenv' + 'python-wheel' 'python2-wheel' 'python-pip' 'python2-pip' 'git') source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz") -sha512sums=('579e63feb9f5ea33e29f4ae3a2736a2cfd18e83927775a56553dbe34bcfa32f325457204333d4f183759dbcd57e4ad7f8b166fcfbf626db597b18e14bbcd9ea4') +sha512sums=('34df8f10e89825975c82059c759690a2cc1486fc84c71a76875b92c2452529fbdd628e11e3043e479ea3f031af18b37a37b86d2a8d2505c300188eccdc109332') prepare() { - # Don't download and install deps - sed -i '/pip.main(args)/d' setuptools-$pkgver/bootstrap.py - - rm -r setuptools-$pkgver/pkg_resources/_vendor + rm -r setuptools-$pkgver/{pkg_resources,setuptools}/_vendor # Remove post-release tag since we are using stable tags sed -e '/tag_build = .post/d' \ -e '/tag_date = 1/d' \ -i setuptools-$pkgver/setup.cfg + # 'Clean' installation is expected to fail since we removed bundled packages + sed -i '/^def test_clean_env_install/i import pytest\n\n@pytest.mark.xfail' setuptools-$pkgver/setuptools/tests/test_virtualenv.py + + # Tests failed. Importing an unbundled new setuptools in a virtualenv does not work, but this won't + # affect normal virtualenv usage (which don't have to import the unbundled setuptools in *current* + # dir. + sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \ + -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \ + -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py + cp -a setuptools-$pkgver{,-py2} -# cd "$srcdir"/setuptools-$pkgver -# sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py + cd "$srcdir"/setuptools-$pkgver + sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py cd "$srcdir"/setuptools-$pkgver-py2 sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py - sed -i -e "s|'pip'|'pip2'|" setuptools/tests/{test_develop.py,test_namespaces.py} export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 } build() { -# cd "$srcdir"/setuptools-$pkgver -# python bootstrap.py -# python setup.py build + cd "$srcdir"/setuptools-$pkgver + python bootstrap.py + python setup.py build cd "$srcdir"/setuptools-$pkgver-py2 python2 bootstrap.py @@ -58,8 +65,8 @@ check() { ( # https://github.com/pypa/setuptools/pull/810 export PYTHONDONTWRITEBYTECODE=1 -# cd "$srcdir"/setuptools-$pkgver -# python setup.py pytest + cd "$srcdir"/setuptools-$pkgver + python setup.py pytest cd "$srcdir"/setuptools-$pkgver-py2 python2 setup.py pytest diff --git a/abs/core/python_modules/python-setuptools/__changelog b/abs/core/python_modules/python-setuptools/__changelog deleted file mode 100644 index 9715c21..0000000 --- a/abs/core/python_modules/python-setuptools/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD - comment out all python 3 stuff and only build for py 2 diff --git a/abs/core/python_modules/python-simplejson/PKGBUILD b/abs/core/python_modules/python-simplejson/PKGBUILD index d5273f5..0e1a323 100644 --- a/abs/core/python_modules/python-simplejson/PKGBUILD +++ b/abs/core/python_modules/python-simplejson/PKGBUILD @@ -5,33 +5,55 @@ # Contributor: David Moore <davidm@sjsoft.com> pkgbase=python-simplejson -pkgname=('python2-simplejson') -pkgver=3.8.2 +pkgname=('python-simplejson' 'python2-simplejson') +pkgver=3.13.2 pkgrel=1 pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python' license=('MIT') -arch=('x86_64' 'i686') +arch=('x86_64') url='https://github.com/simplejson/simplejson' -makedepends=('python2-setuptools' 'git') -source=("git://github.com/simplejson/simplejson.git#tag=v$pkgver") -md5sums=('SKIP') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz") +sha512sums=('b1d6c68e1a6c967dfb695d0cd3d8dca19d458b650ddc0c8273328378eab7f52b801ee29431a6b3bde16608e886259267f41cbefabb7fbe7adb1e243479f91132') + +prepare() { + cp -a simplejson-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/simplejson-$pkgver + python setup.py build + + cd "$srcdir"/simplejson-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/simplejson-$pkgver + python setup.py pytest + + cd "$srcdir"/simplejson-$pkgver-py2 + python2 setup.py pytest +} package_python-simplejson() { depends=('python') - cd simplejson + cd simplejson-$pkgver python setup.py install --root="$pkgdir" - install -Dm644 "$srcdir/simplejson/LICENSE.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "$srcdir"/simplejson-$pkgver/LICENSE.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python2-simplejson() { depends=('python2') - cd simplejson + cd simplejson-$pkgver-py2 python2 setup.py install --root="$pkgdir" - install -Dm644 "$srcdir/simplejson/LICENSE.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "$srcdir"/simplejson-$pkgver/LICENSE.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } # vim:set ts=2 sw=2 et: + diff --git a/abs/core/python_modules/python-simplejson/__changelog b/abs/core/python_modules/python-simplejson/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-simplejson/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-six/PKGBUILD b/abs/core/python_modules/python-six/PKGBUILD index 33093f7..56ca2de 100644 --- a/abs/core/python_modules/python-six/PKGBUILD +++ b/abs/core/python_modules/python-six/PKGBUILD @@ -4,28 +4,28 @@ # Contributer: Allan McRae <allan@archlinux.org> pkgbase=python-six -pkgname=('python2-six') -pkgver=1.10.0 -pkgrel=3 +pkgname=('python2-six' 'python-six') +pkgver=1.11.0 +pkgrel=1 pkgdesc="Python 2 and 3 compatibility utilities" arch=('any') url="http://pypi.python.org/pypi/six/" license=('MIT') -makedepends=('python2-setuptools') -checkdepends=('python2-pytest' 'tk') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'tk') source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz") -md5sums=('34eed507548117b2ab523ab14b2f8b55') +sha512sums=('33f246a2e987141e17e5edad9d3537cf3aba0cbdd0bc2a907ea52ce0d674b1474f29c3dd5cc26605fd960396054b189ca5f501708333cad234c223131483fe24') build() { cp -a six-$pkgver{,-py2} } check() { -# cd "$srcdir"/six-$pkgver -# py.test + cd "$srcdir"/six-$pkgver + python setup.py pytest cd "$srcdir"/six-$pkgver-py2 - py.test2 + python2 setup.py pytest } package_python-six() { diff --git a/abs/core/python_modules/python-six/__changelog b/abs/core/python_modules/python-six/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-six/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-smmap/PKGBUILD b/abs/core/python_modules/python-smmap/PKGBUILD new file mode 100644 index 0000000..bb42b21 --- /dev/null +++ b/abs/core/python_modules/python-smmap/PKGBUILD @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> +# Contributor: Carl George < arch at cgtx dot us > + +pkgbase=python-smmap +_pypiname=smmap2 +pkgname=("python-smmap" "python2-smmap") +pkgver=2.0.3 +pkgrel=1 +pkgdesc="A pure git implementation of a sliding window memory map manager" +arch=("any") +url="https://github.com/gitpython-developers/smmap" +license=("BSD") +makedepends=("python-setuptools" "python2-setuptools") +checkdepends=("python-nose" "python2-nose") +source=("${pkgbase}-${pkgver}.tar.gz::https://pypi.org/packages/source/s/${_pypiname}/${_pypiname}-${pkgver}.tar.gz") +# "${pkgbase}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/s/${_pypiname}/${_pypiname}-${pkgver}.tar.gz.asc") +sha512sums=('f5623247fbdb6b0e94bbfe7104ffd84ee4563a0c32781256d92d46fd23e05280d7a0e3952a573b6834e253e9b68175784babc36d91ab61edf6d0d072830e1fde') +# 'SKIP') +validpgpkeys=('4477ADC5977D7C60D2A7E3789FEE1C6A3B07188F') # Sebastian Thiel (In Rust I trust!) <byronimo@gmail.com> + +prepare() { + cp -a "${srcdir}/${_pypiname}-${pkgver}"{,-py2} +} + +build() { + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py build + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py build +} + +check() { + cd "${srcdir}/${_pypiname}-${pkgver}" + nosetests3 + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + nosetests2 +} + +package_python-smmap() { + depends=("python") + + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-smmap() { + depends=("python2") + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/abs/core/python_modules/python-snowballstemmer/PKGBUILD b/abs/core/python_modules/python-snowballstemmer/PKGBUILD new file mode 100644 index 0000000..676c0e8 --- /dev/null +++ b/abs/core/python_modules/python-snowballstemmer/PKGBUILD @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: xantares + +pkgbase=python-snowballstemmer +pkgname=('python-snowballstemmer' 'python2-snowballstemmer') +pkgver=1.2.1 +pkgrel=2 +arch=('any') +pkgdesc="Snowball stemming library collection for Python" +url='https://github.com/shibukawa/snowball_py' +license=('BSD') +makedepends=('python' 'python2') +source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-${pkgver}.tar.gz") +md5sums=('643b019667a708a922172e33a99bf2fa') + +prepare() { + cp -a snowballstemmer-${pkgver}{,-py2} +} + +build() { + cd "$srcdir"/snowballstemmer-${pkgver} + python setup.py build + + cd "$srcdir"/snowballstemmer-${pkgver}-py2 + python2 setup.py build +} + +package_python-snowballstemmer() { + depends=('python') + optdepends=('python-pystemmer: for improved performance') + + cd "$srcdir"/snowballstemmer-${pkgver} + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst +} + +package_python2-snowballstemmer() { + depends=('python2') + optdepends=('python2-pystemmer: for improved performance') + + cd "$srcdir"/snowballstemmer-${pkgver}-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst +} diff --git a/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD b/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD new file mode 100644 index 0000000..d3203be --- /dev/null +++ b/abs/core/python_modules/python-sphinx-alabaster-theme/PKGBUILD @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Johannes Löthberg <johannes@kyriasis.com> +# Contributor: xantares + +pkgbase=python-sphinx-alabaster-theme +pkgname=(python-sphinx-alabaster-theme python2-sphinx-alabaster-theme) +pkgver=0.7.10 +pkgrel=1 + +pkgdesc="Sphinx default theme" +url='https://github.com/bitprophet/alabaster' +arch=('any') +license=('custom:BSD') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("https://pypi.org/packages/source/a/alabaster/alabaster-$pkgver.tar.gz") + +md5sums=('7934dccf38801faa105f6e7b4784f493') + +build() { + cp -r alabaster-"$pkgver" alabaster-"$pkgver"-py2 + + cd alabaster-"$pkgver" + python setup.py build + + cd "$srcdir"/alabaster-"$pkgver"-py2 + python2 setup.py build +} + +package_python-sphinx-alabaster-theme() { + cd alabaster-"$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE +} + +package_python2-sphinx-alabaster-theme() { + cd alabaster-"$pkgver"-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE +} diff --git a/abs/core/python_modules/python-sphinx/PKGBUILD b/abs/core/python_modules/python-sphinx/PKGBUILD index b4db703..cab258e 100644 --- a/abs/core/python_modules/python-sphinx/PKGBUILD +++ b/abs/core/python_modules/python-sphinx/PKGBUILD @@ -1,27 +1,62 @@ # $Id$ -# Maintainer: Sébastien Luttringer +# Maintainer: Johannes Löthberg <johannes@kyriasis.com> +# Contributor: Sébastien Luttringer # Contributor: Angel Velasquez <angvp@archlinux.org> # Contributor: Fabio Volpe <volpefabio@gmail.com> pkgbase=python-sphinx -pkgname=('python2-sphinx') -pkgver=1.2.2 -pkgrel=4 +pkgname=('python-sphinx' 'python2-sphinx') +pkgver=1.7.0 +pkgrel=1 + arch=('any') url='http://sphinx.pocoo.org/' -license=('GPL') +license=('BSD') + makedepends=( + 'python-setuptools' + 'python-docutils' + 'python-jinja' + 'python-pygments' + 'python-six' + 'python-imagesize' + 'python-sphinxcontrib-websupport' + 'python-sqlalchemy' + 'python-whoosh' 'python2-setuptools' 'python2-docutils' 'python2-jinja' 'python2-pygments' + 'python2-six' + 'python2-imagesize' + 'python2-sphinxcontrib-websupport' + 'python2-sqlalchemy' + 'python2-whoosh' + 'python2-typing' ) + checkdepends=( - 'python2-nose' 'texlive-latexextra' + 'python-nose' 'python2-nose' + 'python-snowballstemmer' 'python2-snowballstemmer' + 'python-babel' 'python2-babel' + 'python-sphinx-alabaster-theme' 'python2-sphinx-alabaster-theme' + 'python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme' + 'python-mock' 'python2-mock' + 'python-html5lib' 'python2-html5lib' + 'python-requests' 'python2-requests' + 'python2-pytest' 'python-pytest' + 'python2-enum34' + 'python-sphinxcontrib-websupport' 'python2-sphinxcontrib-websupport' + 'imagemagick' 'librsvg' ) -source=("http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz") -md5sums=('3dc73ccaa8d0bfb2d62fb671b1f7e8a4') + +source=("https://pypi.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz"{,.asc}) + +validpgpkeys=('8A11B79A5D0D749A66F0A030102C2C17498D6B9E' + 'E9BEABB07E7B9CC3F56E62C91425F8CE5EBA0E07') +md5sums=('7d6d8226148378875986310aea68702e' + 'SKIP') prepare() { # souce duplication is required because makefile modify source code @@ -31,46 +66,85 @@ prepare() { find Sphinx-${pkgver}2 -type f -exec \ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \; # change sphinx-binaries name in source code -# find Sphinx-${pkgver}2 -type f -name '*.py' -exec \ -# sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \; + find Sphinx-${pkgver}2 -type f -name '*.py' -exec \ + sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \; } build() { -# msg2 'Python 3 version' -# cd "$srcdir"/Sphinx-$pkgver -# make PYTHON=python3 build + msg2 'Python 3 version' + cd "$srcdir"/Sphinx-$pkgver + make PYTHON=python3 build + msg2 'Python 2 version' cd "$srcdir"/Sphinx-${pkgver}2 make PYTHON=python2 build } -check() { +#check() { # msg2 'Python 3 version' # cd "$srcdir"/Sphinx-$pkgver -# make PYTHON=python3 test -# rm -r build/lib/tests - msg2 'Python 2 version' - cd "$srcdir"/Sphinx-${pkgver}2 - make PYTHON=python2 test - rm -r build/lib/tests -} +# LC_ALL="en_US.UTF-8" make PYTHON=python3 test +# rm -r tests +# +# msg2 'Python 2 version' +# cd "$srcdir"/Sphinx-${pkgver}2 +# LC_ALL="en_US.UTF-8" make PYTHON=python2 test +# rm -r tests +#} -#package_python-sphinx() { -# pkgdesc='Python3 documentation generator' -# depends=('python-jinja' 'python-pygments' 'python-docutils') -# optdepends=('texlive-latexextra: for generation of PDF documentation') +package_python-sphinx() { + pkgdesc='Python3 documentation generator' + depends=( + 'python-setuptools' + 'python-jinja' + 'python-pygments' + 'python-docutils' + 'python-sphinx_rtd_theme' + 'python-sphinx-alabaster-theme' + 'python-babel' + 'python-snowballstemmer' + 'python-six' + 'python-imagesize' + 'python-requests' + 'python-sphinxcontrib-websupport' + 'python-sqlalchemy' + 'python-whoosh' + ) + optdepends=('texlive-latexextra: for generation of PDF documentation' + 'imagemagick: ext.imageconverter') -# cd Sphinx-$pkgver -# python setup.py install --root="$pkgdir" --optimize=1 -#} + cd Sphinx-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 "$srcdir"/Sphinx-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/python-sphinx/LICENSE +} package_python2-sphinx() { pkgdesc='Python2 documentation generator' - depends=('python2-jinja' 'python2-pygments' 'python2-docutils') - optdepends=('texlive-latexextra: for generation of PDF documentation') + depends=( + 'python2-setuptools' + 'python2-jinja' + 'python2-pygments' + 'python2-docutils' + 'python2-sphinx_rtd_theme' + 'python2-sphinx-alabaster-theme' + 'python2-babel' + 'python2-snowballstemmer' + 'python2-six' + 'python2-imagesize' + 'python2-requests' + 'python2-sphinxcontrib-websupport' + 'python2-sqlalchemy' + 'python2-whoosh' + 'python2-typing' + ) + optdepends=('texlive-latexextra: for generation of PDF documentation' + 'imagemagick: ext.imageconverter') cd Sphinx-${pkgver}2 python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 "$srcdir"/Sphinx-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/python2-sphinx/LICENSE } # vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sphinx/__changelog b/abs/core/python_modules/python-sphinx/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-sphinx/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD b/abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD new file mode 100644 index 0000000..a446326 --- /dev/null +++ b/abs/core/python_modules/python-sphinx_rtd_theme/PKGBUILD @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Johannes Löthberg <johannes@kyriasis.com> +# Contributor: eolianoe <eolianoe [at] gmail [DoT] com> +# Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de> + +pkgbase=python-sphinx_rtd_theme +pkgname=('python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme') +pkgver=0.2.4 +pkgrel=1 + +pkgdesc="Python Sphinx Read The Docs Theme" +url='https://github.com/rtfd/sphinx_rtd_theme/' +arch=('any') +license=('MIT') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("https://pypi.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$pkgver.tar.gz") + +sha256sums=('2df74b8ff6fae6965c527e97cca6c6c944886aae474b490e17f92adfbe843417') + +build() { + cp -r sphinx_rtd_theme-$pkgver sphinx_rtd_theme-$pkgver-py2 + + cd sphinx_rtd_theme-$pkgver + python setup.py build + + cd "$srcdir"/sphinx_rtd_theme-$pkgver-py2 + python2 setup.py build +} + +package_python-sphinx_rtd_theme() { + cd sphinx_rtd_theme-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-sphinx_rtd_theme() { + cd sphinx_rtd_theme-${pkgver}-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + diff --git a/abs/core/python_modules/python-sphinxcontrib-websupport/PKGBUILD b/abs/core/python_modules/python-sphinxcontrib-websupport/PKGBUILD new file mode 100644 index 0000000..f6be9ed --- /dev/null +++ b/abs/core/python_modules/python-sphinxcontrib-websupport/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Johannes Löthberg <johannes@kyriasis.com + +pkgbase=python-sphinxcontrib-websupport +pkgname=(python-sphinxcontrib-websupport python2-sphinxcontrib-websupport) +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Sphinx API for Web Apps" +arch=('any') +url="http://www.sphinx-doc.org/" +license=('BSD') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinxcontrib-websupport/archive/$pkgver.tar.gz") +sha512sums=('06ee11f2b2212333a6d01201824879e5b5931e85db5f20badd62bc28ddba88ce7c0b3f0b7ce4f4e3d43cb8f66173b31d10e1264f0acc48bb2db7385f50c68313') + +prepare() { + cp -a sphinxcontrib-websupport-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/sphinxcontrib-websupport-$pkgver + python setup.py build + + cd "$srcdir"/sphinxcontrib-websupport-$pkgver-py2 + python2 setup.py build +} + +package_python-sphinxcontrib-websupport() { + cd "$srcdir"/sphinxcontrib-websupport-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-sphinxcontrib-websupport() { + cd "$srcdir"/sphinxcontrib-websupport-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-sqlalchemy/PKGBUILD b/abs/core/python_modules/python-sqlalchemy/PKGBUILD index 33c6497..097dbeb 100644 --- a/abs/core/python_modules/python-sqlalchemy/PKGBUILD +++ b/abs/core/python_modules/python-sqlalchemy/PKGBUILD @@ -4,18 +4,17 @@ # Contributor: Sébastien Luttringer <seblu@aur.archlinux.org> pkgbase=python-sqlalchemy -pkgname=('python2-sqlalchemy') -#pkgname=('python2-sqlalchemy') -pkgver=1.1.11 +pkgname=('python-sqlalchemy' 'python2-sqlalchemy') +pkgver=1.2.4 pkgrel=1 -arch=('i686' 'x86_64') # python2 package contain .so +arch=('x86_64') # python2 package contain .so url="http://www.sqlalchemy.org/" license=('MIT') -makedepends=('python2-setuptools') -checkdepends=('python2-pytest-runner' 'python2-pytest-xdist' 'python2-mock') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-xdist' 'python2-pytest-xdist' 'python-mock' 'python2-mock') source=("https://pypi.io/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"{,.asc}) validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') -sha512sums=('322ec0baa6360099eb000ddd36e28267f64019eb72201ecf60fc478591679e0dd5d2b1139a93036d2ec0165c588ea5836a67ed21dbf7c423b64432589bd73de4' +sha512sums=('a12d17f222cc5fc4360c439e19cae67a013af07e2c22b1f55511c4862d718578249e6bf83151eefe35957e530dbf18a565b08cded3a5e45dd21103201f4d24e8' 'SKIP') prepare() { @@ -23,16 +22,16 @@ prepare() { } build() { -# cd "$srcdir"/SQLAlchemy-$pkgver -# python setup.py build + cd "$srcdir"/SQLAlchemy-$pkgver + python setup.py build cd "$srcdir"/SQLAlchemy2-$pkgver python2 setup.py build } check() { -# cd "$srcdir"/SQLAlchemy-$pkgver -# python setup.py pytest + cd "$srcdir"/SQLAlchemy-$pkgver + python setup.py pytest cd "$srcdir"/SQLAlchemy2-$pkgver python2 setup.py pytest diff --git a/abs/core/python_modules/python-sqlalchemy/__changelog b/abs/core/python_modules/python-sqlalchemy/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-sqlalchemy/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-termcolor/PKGBUILD b/abs/core/python_modules/python-termcolor/PKGBUILD new file mode 100644 index 0000000..bced757 --- /dev/null +++ b/abs/core/python_modules/python-termcolor/PKGBUILD @@ -0,0 +1,29 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Tim Hatch <tim@timhatch.com> + +pkgbase=python-termcolor +pkgname=('python-termcolor' 'python2-termcolor') +pkgver=1.1.0 +pkgrel=5 +pkgdesc="ANSII Color formatting for output in terminal" +arch=('any') +license=('GPL') +url="http://pypi.python.org/pypi/termcolor" +makedepends=('python' 'python2') +source=(https://pypi.python.org/packages/source/t/termcolor/termcolor-$pkgver.tar.gz) +sha256sums=('1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b') + +package_python-termcolor() { + depends=('python') + + cd "$srcdir"/termcolor-$pkgver + python setup.py install --root="$pkgdir" +} + +package_python2-termcolor() { + depends=('python2') + + cd "$srcdir"/termcolor-$pkgver + python2 setup.py install --root="$pkgdir" +} diff --git a/abs/core/python_modules/python-tox/PKGBUILD b/abs/core/python_modules/python-tox/PKGBUILD new file mode 100644 index 0000000..88d466b --- /dev/null +++ b/abs/core/python_modules/python-tox/PKGBUILD @@ -0,0 +1,70 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Thomas Weißschuh <thomas t-8ch.de> +# Contributor: George Brooke <george+arch.aur@george-brooke.co.uk> +# Contributor: Sebastian Wiesner <lunaryorn googlemail com> + +pkgbase=python-tox +pkgname=(python-tox python2-tox) +pkgver=2.9.1 +pkgrel=1 +pkgdesc='Python virtualenv management and testing tool' +arch=('any') +url='https://tox.readthedocs.io' +license=('GPL2') +makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-virtualenv' + 'python2-virtualenv' 'python-pluggy' 'python2-pluggy') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("https://pypi.io/packages/source/t/tox/tox-$pkgver.tar.gz") +sha512sums=('ff19b2bb7ac963379f1cccd4973ad9eb4dabfbda976cde7caba50ad010d8fa57c1cba91d63e3e0512e44cc7d350bc9270fbd9b30db1bd55f7d9c239e7623d066') + +prepare() { + find tox-$pkgver -name "*.pyc" -delete + + cp -a tox-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/tox-$pkgver + python setup.py build + + cd "$srcdir"/tox-$pkgver-py2 + python2 setup.py build +} + +check() { + # Hack entry points + + ( + cd "$srcdir"/tox-$pkgver + virtualenv "$srcdir/pyvenv" --system-site-packages + . "$srcdir/pyvenv/bin/activate" + python setup.py install + python setup.py pytest + ) + + ( + cd "$srcdir"/tox-$pkgver-py2 + virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages + . "$srcdir/pyvenv-py2/bin/activate" + python setup.py install + python setup.py pytest + ) +} + +package_python-tox() { + depends=('python-py' 'python-virtualenv' 'python-setuptools' 'python-pluggy') + + cd "$srcdir"/tox-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + ln -s tox "$pkgdir"/usr/bin/tox3 +} + +package_python2-tox() { + depends=('python2-py' 'python2-virtualenv' 'python2-setuptools' 'python2-pluggy') + + cd "$srcdir"/tox-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + mv "$pkgdir"/usr/bin/tox{,2} + mv "$pkgdir"/usr/bin/{tox-quickstart,tox2-quickstart} +} diff --git a/abs/core/python_modules/python-tzlocal/PKGBUILD b/abs/core/python_modules/python-tzlocal/PKGBUILD index b4e6905..1501907 100644 --- a/abs/core/python_modules/python-tzlocal/PKGBUILD +++ b/abs/core/python_modules/python-tzlocal/PKGBUILD @@ -1,45 +1,71 @@ -# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT com> +# Maintainer: David Runge <dave@sleepmap.de> +# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com> # Contributor: Étienne Deparis <etienne [at] depar.is> # Contributor: Patrice Peterson <runiq at archlinux dot us> # Contributor: Patrick Burroughs <celticmadman at gmail dot com> -_pyname=tzlocal -pkgbase=python-${_pyname} -pkgname=("python2-${_pyname}") -pkgver=1.4 -pkgrel=1 +_name=tzlocal +pkgbase=python-tzlocal +pkgname=("python-tzlocal" "python2-tzlocal") +pkgver=1.5.1 +pkgrel=3 pkgdesc="Tzinfo object for the local timezone" arch=('any') -url='https://pypi.python.org/pypi/tzlocal' -license=('custom') -makedepends=('python2-setuptools') -source=("${_pyname}-${pkgver}.tar.gz::https://github.com/regebro/${_pyname}/archive/${pkgver}.tar.gz") -sha256sums=('d3cdf502a4ae4b566abf948924e837b6c354aaed082eb1326c6c9043824cb4a7') +url="https://pypi.python.org/pypi/tzlocal" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-mock' 'python2-mock') +source=("${_name}-${pkgver}.tar.gz::https://github.com/regebro/${_name}/archive/${pkgver}.tar.gz") +sha512sums=('30dd1e3973c6fa0e0bde5a0365223506032177e96f997116edfe1fbdcff25cd735c90f205f0b95359a095749f1d1ac077903201533d460a72277891174cc1975') prepare() { - cp -a ${_pyname}-${pkgver}{,-py2} + mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}" + cp -a "${pkgname}-${pkgver}" "${pkgname[1]}-${pkgver}" } build() { -# cd "${srcdir}/${_pyname}-$pkgver" -# python setup.py build - - cd "${srcdir}/${_pyname}-$pkgver-py2" + cd "${pkgname[0]}-${pkgver}" + python setup.py build + cd ../"${pkgname[1]}-${pkgver}" python2 setup.py build } -package_python2-tzlocal() { - depends=('python2-pytz') - cd "${srcdir}/${_pyname}-${pkgver}-py2" - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +check() { + cd "${pkgname[0]}-${pkgver}" + python setup.py test + cd ../"${pkgname[1]}-${pkgver}" + python2 setup.py test } package_python-tzlocal() { depends=('python-pytz') - cd "${srcdir}/${_pyname}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd "${pkgname[0]}-${pkgver}" + python setup.py install --skip-build \ + --optimize=1 \ + --prefix=/usr \ + --root="${pkgdir}" + # license + install -vDm644 LICENSE.txt \ + "${pkgdir}/usr/share/licenses/${pkgname[0]}/LICENSE" + # docs + install -t "${pkgdir}/usr/share/doc/${pkgname[0]}" \ + -vDm644 {CHANGES.txt,README.rst} +} + +package_python2-tzlocal() { + depends=('python2-pytz') + cd "${pkgname[1]}-${pkgver}" + python2 setup.py install --skip-build \ + --optimize=1 \ + --prefix=/usr \ + --root="${pkgdir}" + # license + install -vDm644 LICENSE.txt \ + "${pkgdir}/usr/share/licenses/${pkgname[1]}/LICENSE" + # docs + install -t "${pkgdir}/usr/share/doc/${pkgname[1]}" \ + -vDm644 {CHANGES.txt,README.rst} } # vim:set ts=2 sw=2 et: + diff --git a/abs/core/python_modules/python-tzlocal/__changelog b/abs/core/python_modules/python-tzlocal/__changelog deleted file mode 100644 index c6e1e55..0000000 --- a/abs/core/python_modules/python-tzlocal/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: don't build py 3 stuff diff --git a/abs/core/python_modules/python-urllib3/PKGBUILD b/abs/core/python_modules/python-urllib3/PKGBUILD index 3f881d2..e4af9f4 100644 --- a/abs/core/python_modules/python-urllib3/PKGBUILD +++ b/abs/core/python_modules/python-urllib3/PKGBUILD @@ -5,43 +5,49 @@ # Contributor: BorgHunter <borghunter at gmail dot com> pkgbase=python-urllib3 -pkgname=(python2-urllib3) -pkgver=1.21.1 +pkgname=(python-urllib3 python2-urllib3 python-urllib3-doc) +pkgver=1.22 pkgrel=1 pkgdesc="HTTP library with thread-safe connection pooling and file post support" arch=("any") url="https://github.com/shazow/urllib3" license=("MIT") -makedepends=('python2-setuptools' - 'python2-ndg-httpsclient' 'python2-pyasn1' - 'python2-pyopenssl' 'python2-pysocks' 'python2-mock') -checkdepends=('python2-nose' 'python2-tornado' - 'python2-coverage' 'python2-psutil') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/shazow/urllib3/archive/$pkgver.tar.gz") -md5sums=('b0a2c692ea273dc120b209a027b0df3c') +makedepends=('python-setuptools' 'python2-setuptools' 'python2-sphinx' 'python-ndg-httpsclient' + 'python2-ndg-httpsclient' 'python-pyasn1' 'python2-pyasn1' 'python-pyopenssl' + 'python2-pyopenssl' 'python-pysocks' 'python2-pysocks' 'python-mock' 'python2-mock') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-tornado' 'python2-tornado' + 'python-nose' 'python2-nose' 'python-psutil' 'python2-psutil' + 'python-gcp-devrel-py-tools' 'python2-gcp-devrel-py-tools') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/shazow/urllib3/archive/$pkgver.tar.gz" + tornado-4.3.patch) +sha512sums=('1b45a4a64e71847a4fc62b9263235d5b05b62076698fa324454efeb7ad065abd702cc9eadb2d396d9270b07e91e9bad94c52a4b9b115aadccb27f81955e6feab' + '7c09acefa963a80379f8b2f3f2c2c7546ec62025058c1ae024bc954d49392d7956b8b3ceaed40b3d3ab06bcf9c74bfb4214425b66cc55c50ffc2642e2d35c498') prepare() { + # https://github.com/shazow/urllib3/pull/1236 + (cd urllib3-$pkgver; patch -p1 -i ../tornado-4.3.patch) + cp -a urllib3-$pkgver{,-py2} } build() { -# cd "$srcdir"/urllib3-$pkgver -# python setup.py build + cd "$srcdir"/urllib3-$pkgver + python setup.py build cd "$srcdir"/urllib3-$pkgver-py2 python2 setup.py build # Build with Python 2 since autodoc produces errors on Python 3 -# cd "$srcdir"/urllib3-$pkgver/docs -# make SPHINXBUILD=sphinx-build2 html + cd "$srcdir"/urllib3-$pkgver/docs + make SPHINXBUILD=sphinx-build2 html } check() { -# cd "$srcdir"/urllib3-$pkgver -# nosetests3 || warning "Tests failed" + cd "$srcdir"/urllib3-$pkgver + python setup.py pytest cd "$srcdir"/urllib3-$pkgver-py2 - nosetests2 || warning "Tests failed" + python2 setup.py pytest } package_python-urllib3() { diff --git a/abs/core/python_modules/python-urllib3/__changelog b/abs/core/python_modules/python-urllib3/__changelog deleted file mode 100644 index 49a28c7..0000000 --- a/abs/core/python_modules/python-urllib3/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: don't build py 3 stuff or sphinx diff --git a/abs/core/python_modules/python-urllib3/tornado-4.3.patch b/abs/core/python_modules/python-urllib3/tornado-4.3.patch new file mode 100644 index 0000000..7f4a669 --- /dev/null +++ b/abs/core/python_modules/python-urllib3/tornado-4.3.patch @@ -0,0 +1,23 @@ +From 39eebb652db570cf51994f404da3dd91c8a9f4cc Mon Sep 17 00:00:00 2001 +From: Felix Yan <felixonmars@archlinux.org> +Date: Fri, 21 Jul 2017 23:25:35 +0800 +Subject: [PATCH] Fix compatibility with tornado 4.3+ + +`HTTPHeaders` is not JSON serializable, so make it a dict first. +--- + dummyserver/handlers.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dummyserver/handlers.py b/dummyserver/handlers.py +index a943b836b..b91fe7215 100644 +--- a/dummyserver/handlers.py ++++ b/dummyserver/handlers.py +@@ -225,7 +225,7 @@ def encodingrequest(self, request): + return Response(data, headers=headers) + + def headers(self, request): +- return Response(json.dumps(request.headers)) ++ return Response(json.dumps(dict(request.headers))) + + def successful_retry(self, request): + """ Handler which will return an error and then success diff --git a/abs/core/python_modules/python-vcversioner/PKGBUILD b/abs/core/python_modules/python-vcversioner/PKGBUILD new file mode 100644 index 0000000..4727326 --- /dev/null +++ b/abs/core/python_modules/python-vcversioner/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-vcversioner +pkgname=(python-vcversioner python2-vcversioner) +pkgver=2.16.0.0 +pkgrel=1 +pkgdesc="Use version control tags to discover version numbers" +url="https://github.com/habnabit/vcversioner" +license=('ISC') +arch=('any') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.bz2::https://github.com/habnabit/vcversioner/archive/$pkgver.tar.gz") +sha512sums=('0ce7edf28d0626707f977b565f938a754d374d0cada8683f05fa6d1088930d4d858213dbcb5dba149d828e76341eec4a168ef1998ce9894b72c35c1eef59bd08') + +prepare() { + echo -n "$pkgver-0-UNKNOWN" > vcversioner-$pkgver/version.txt + cp -a vcversioner-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/vcversioner-$pkgver + python setup.py build + + cd "$srcdir"/vcversioner-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/vcversioner-$pkgver + python setup.py pytest + + cd "$srcdir"/vcversioner-$pkgver-py2 + python2 setup.py pytest +} + +package_python-vcversioner() { + depends=('python') + + cd vcversioner-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +package_python2-vcversioner() { + depends=('python2') + + cd vcversioner-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} diff --git a/abs/core/python_modules/python-virtualenv/PKGBUILD b/abs/core/python_modules/python-virtualenv/PKGBUILD new file mode 100644 index 0000000..f7e71da --- /dev/null +++ b/abs/core/python_modules/python-virtualenv/PKGBUILD @@ -0,0 +1,77 @@ +# $Id$ +# Maintainer: Dan McGee <dan@archlinux.org> +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Daniele Paolella <dp@mcrservice.it> + +pkgname=('python-virtualenv' 'python2-virtualenv') +pkgver=15.1.0 +pkgrel=3 +pkgdesc="Virtual Python Environment builder" +url="https://virtualenv.pypa.io/" +arch=('any') +license=('MIT') +makedepends=('python-setuptools' 'python-sphinx' 'python2-setuptools' 'python2-sphinx') +checkdepends=('python-pytest' 'python-mock' 'python2-pytest' 'python2-mock') +replaces=('virtualenv') +conflicts=('virtualenv') +options=('!makeflags') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/virtualenv/archive/${pkgver}.tar.gz) +md5sums=('30222e271963a437e240aee4853728d2') +sha256sums=('aea627d114a3863d6374c5a3fc3cdd08907e0ac951cf93b458e5ba5998c516de') + +prepare() { + cp -a virtualenv-${pkgver}{,-py2} + cd virtualenv-${pkgver}-py2 + sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" virtualenv.py +} + +build() { + (cd virtualenv-${pkgver} + python setup.py build + make -C docs text man + ) + (cd virtualenv-${pkgver}-py2 + python2 setup.py build + make -C docs text man + ) +} + +check() { + (cd virtualenv-${pkgver} + py.test + ) + (cd virtualenv-${pkgver}-py2 + py.test2 + ) +} + +package_python-virtualenv() { + depends=('python-setuptools') + + cd virtualenv-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --skip-build + install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 docs/_build/man/virtualenv.1 "${pkgdir}/usr/share/man/man1/virtualenv.1" + ln -s virtualenv.1.gz "${pkgdir}/usr/share/man/man1/virtualenv3.1.gz" + + # link to a version with 3 suffix as well + ln "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv3" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-virtualenv() { + depends=('python2-setuptools') + + cd virtualenv-$pkgver-py2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build + install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 docs/_build/man/virtualenv.1 "${pkgdir}/usr/share/man/man1/virtualenv2.1" + + # move this "old" version out of the way + mv "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv2" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/python-webencodings/PKGBUILD b/abs/core/python_modules/python-webencodings/PKGBUILD index 95f05b0..d0e832b 100644 --- a/abs/core/python_modules/python-webencodings/PKGBUILD +++ b/abs/core/python_modules/python-webencodings/PKGBUILD @@ -2,14 +2,14 @@ # Contributor: Jelle van der Waa <jelle@vdwaa.nl> pkgbase=python-webencodings -pkgname=('python2-webencodings') +pkgname=('python2-webencodings' 'python-webencodings') pkgver=0.5.1 -pkgrel=1 +pkgrel=2 arch=('any') url="https://github.com/gsnedders/python-webencodings" license=('BSD') -makedepends=('python2' 'python2-setuptools') -checkdepends=('python2-nose') +makedepends=('python2' 'python' 'python-setuptools' 'python2-setuptools') +checkdepends=('python-nose' 'python2-nose') source=(https://github.com/gsnedders/python-webencodings/archive/v$pkgver.tar.gz) md5sums=('7eb67377743cd55eaa356496c439471e') diff --git a/abs/core/python_modules/python-webencodings/__changelog b/abs/core/python_modules/python-webencodings/__changelog deleted file mode 100644 index 4f818ef..0000000 --- a/abs/core/python_modules/python-webencodings/__changelog +++ /dev/null @@ -1,2 +0,0 @@ -PKGBUILD: don't build py 3 stuff - diff --git a/abs/core/python_modules/python-werkzeug/PKGBUILD b/abs/core/python_modules/python-werkzeug/PKGBUILD index b8bfd64..0970226 100644 --- a/abs/core/python_modules/python-werkzeug/PKGBUILD +++ b/abs/core/python_modules/python-werkzeug/PKGBUILD @@ -5,57 +5,54 @@ # Contributor: Dan Serban # Contributor: Richard Murri -pkgname=('python2-werkzeug') -pkgver=0.12.2 -pkgrel=1 +pkgname=('python-werkzeug' 'python2-werkzeug') +pkgver=0.14.1 +pkgrel=2 pkgdesc='Swiss Army knife of Python web development' url='http://werkzeug.pocoo.org/' arch=('any') license=('custom:BSD') -makedepends=('python2-setuptools' 'python2-pytest' 'python2-requests') +makedepends=('python-setuptools' 'python2-setuptools' 'python-pytest' 'python2-pytest' 'python-requests' 'python2-requests') source=("https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz") -sha512sums=('e0a27fb37599bd93c9e3e282e1f7f8e2bc9c2be30cce32d1b8a9788cbf998c3337061ade1cbe76858a64da0ebc89112b905567d561354af1b7d86cbd9a56c27d') +sha512sums=('71ec293b702f247b68bf82b4ff9e4351e21aa1949221c3cba46cd0db3c3f10ca2009029bf26869230ad32cec29109b279876b71f4aa0de64dd6635725c9baecb') prepare() { cp -r "werkzeug-$pkgver" "python-werkzeug-$pkgver" cp -r "werkzeug-$pkgver" "python2-werkzeug-$pkgver" } -build_python-werkzeug() { - cd "$pkgname-$pkgver" +build() { + cd "$srcdir/python-werkzeug-$pkgver" python setup.py build -} -build_python2-werkzeug() { - cd "$pkgname-$pkgver" + cd "$srcdir/python2-werkzeug-$pkgver" python2 setup.py build } -#check() { -# cd "python-werkzeug-$pkgver" -# python setup.py test +# check() { +# cd "python-werkzeug-$pkgver" +# python setup.py test # -# cd "python-werkzeug-$pkgver" -# p3ython2 setup.py test -#} +# cd "python2-werkzeug-$pkgver" +# python2 setup.py test +# } package_python-werkzeug() { - depends+=('python') - cd "$pkgname-$pkgver" + depends=('python') + cd "python-werkzeug-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_python2-werkzeug() { - depends+=('python2') - cd "$pkgname-$pkgver" + depends=('python2') + cd "python2-werkzeug-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# getver: https://github.com/mitsuhiko/werkzeug # vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-werkzeug/__changelog b/abs/core/python_modules/python-werkzeug/__changelog deleted file mode 100644 index 60db758..0000000 --- a/abs/core/python_modules/python-werkzeug/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-whoosh/PKGBUILD b/abs/core/python_modules/python-whoosh/PKGBUILD new file mode 100644 index 0000000..643da0d --- /dev/null +++ b/abs/core/python_modules/python-whoosh/PKGBUILD @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Samuel Littley <aur@toastwaffle.com> +# Contributor: rnons <remotenonsense at gmail dot com> + +pkgbase=python-whoosh +pkgname=(python-whoosh python2-whoosh) +pkgver=2.7.4 +pkgrel=2 +pkgdesc="Fast, pure-Python full text indexing, search, and spell checking library" +arch=('any') +url="http://bitbucket.org/mchaput/whoosh/wiki/Home" +license=("BSD") +makedepends=('python-setuptools' 'python2-setuptools' 'mercurial') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("hg+https://bitbucket.org/mchaput/whoosh#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a whoosh{,-py2} +} + +build() { + cd "$srcdir"/whoosh + python setup.py build + + cd "$srcdir"/whoosh-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/whoosh + python setup.py pytest + + cd "$srcdir"/whoosh-py2 + python2 setup.py pytest || warning "Tests failed" +} + +package_python-whoosh() { + depends=('python') + + cd whoosh + python setup.py install -O1 --root="$pkgdir" + install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +package_python2-whoosh() { + depends=('python2') + + cd whoosh-py2 + python2 setup.py install -O1 --root="$pkgdir" + install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} diff --git a/abs/core/python_modules/python-yaml/PKGBUILD b/abs/core/python_modules/python-yaml/PKGBUILD index f0fd7e6..7b6026d 100644 --- a/abs/core/python_modules/python-yaml/PKGBUILD +++ b/abs/core/python_modules/python-yaml/PKGBUILD @@ -1,36 +1,61 @@ -# $Id$ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> # Contributor: Michal Bozon <michal.bozon__at__gmail.com> pkgbase=python-yaml -pkgname=(python2-yaml) -pkgver=3.11 -pkgrel=1 -pkgdesc="Python bindings for YAML, using fast libYAML library" -arch=('i686' 'x86_64') -url="http://pyyaml.org" +pkgname=(python-yaml python2-yaml) +pkgver=3.12 +pkgrel=3 +pkgdesc='Python bindings for YAML, using fast libYAML library' +url='http://pyyaml.org/wiki/PyYAML' +arch=('x86_64') license=('MIT') -makedepends=('python2' 'libyaml') -install='python-yaml.install' -source=(http://pyyaml.org/download/pyyaml/PyYAML-$pkgver.tar.gz) -md5sums=('f50e08ef0fe55178479d3a618efe21db') +makedepends=('python' 'python2' 'libyaml') +source=(http://pyyaml.org/download/pyyaml/PyYAML-${pkgver}.tar.gz) +sha512sums=('e16d8b7f4f026b6a95b11fb59c54ec5f114f6f516294eaa95e718abdf5d37c17a9c4b5e0a0a61fca04e801792d9b7fb801087cf849ff22b9581f6af204b1883a') + +prepare() { + cp -a PyYAML-${pkgver}{,-py2} +} build() { - true + msg2 "Building python..." + (cd PyYAML-${pkgver} + python setup.py --with-libyaml build + ) + msg2 "Building python2..." + (cd PyYAML-${pkgver}-py2 + python2 setup.py --with-libyaml build + ) +} + +check() { + msg2 "Checking python..." + (cd PyYAML-${pkgver} + python setup.py test + ) + msg2 "Checking python2..." + (cd PyYAML-${pkgver}-py2 + python2 setup.py test + ) +} + +package_python-yaml() { + depends=('python' 'libyaml') + + cd PyYAML-${pkgver} + python setup.py --with-libyaml install --prefix=/usr --root="${pkgdir}" -O1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} + install -Dm 644 CHANGES README -t "${pkgdir}"/usr/share/doc/${pkgname} } package_python2-yaml() { depends=('python2' 'libyaml') - cd $srcdir/PyYAML-$pkgver - python2 setup.py install --prefix=/usr --root=$pkgdir - install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + cd PyYAML-${pkgver}-py2 + python2 setup.py --with-libyaml install --prefix=/usr --root="${pkgdir}" -O1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} + install -Dm 644 CHANGES README -t "${pkgdir}"/usr/share/doc/${pkgname} } -#package_python-yaml() { -# depends=('python' 'libyaml') - -# cd $srcdir/PyYAML-$pkgver -# python setup.py install --prefix=/usr --root=$pkgdir -# install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE -#} +# vim: ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-yaml/__changelog b/abs/core/python_modules/python-yaml/__changelog deleted file mode 100644 index 488d3cf..0000000 --- a/abs/core/python_modules/python-yaml/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD: rm py 3 stuff diff --git a/abs/core/python_modules/python-yaml/python-yaml.install b/abs/core/python_modules/python-yaml/python-yaml.install deleted file mode 100644 index e2ae067..0000000 --- a/abs/core/python_modules/python-yaml/python-yaml.install +++ /dev/null @@ -1,7 +0,0 @@ -post_install() { - cat << EOT -==> Note that even though this package uses libyaml library, -==> slower pure python implementation is used by default. -==> See http://pyyaml.org/wiki/PyYAMLDocumentation -EOT -} diff --git a/abs/core/python_modules/python-zope-interface/PKGBUILD b/abs/core/python_modules/python-zope-interface/PKGBUILD new file mode 100644 index 0000000..c2e0df3 --- /dev/null +++ b/abs/core/python_modules/python-zope-interface/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer : Felix Yan <felixonmars@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> + +pkgbase=python-zope-interface +pkgname=('python-zope-interface' 'python2-zope-interface') +pkgver=4.4.3 +pkgrel=1 +license=('ZPL') +arch=('x86_64') +url="http://pypi.python.org/pypi/zope.interface" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-zope-event' 'python2-zope-event') +source=("https://pypi.io/packages/source/z/zope.interface/zope.interface-$pkgver.tar.gz") +sha512sums=('29d9f3f1fe9af8a4ffb1e6d2f067bba1fa1bac7b02690ba8429985aa6ca76d3f337076bc8c48f39d0f338ccd855800b2f28b319a183a285191cc007bf8d9c9ad') + +prepare() { + cp -a zope.interface-${pkgver}{,-py2} +} + +build() { + cd "$srcdir"/zope.interface-$pkgver + python setup.py build + + cd "$srcdir"/zope.interface-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/zope.interface-$pkgver + python setup.py test + + cd "$srcdir"/zope.interface-$pkgver-py2 + python2 setup.py test +} + +package_python-zope-interface() { + pkgdesc='Zope Interfaces for Python 3.x' + depends=('python') + + cd zope.interface-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 +} + +package_python2-zope-interface(){ + pkgdesc='Zope Interfaces for Python 2.x' + depends=('python2') + + cd zope.interface-$pkgver-py2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 +} diff --git a/abs/core/python_modules/python2-cairo/PKGBUILD b/abs/core/python_modules/python2-cairo/PKGBUILD deleted file mode 100644 index 574eca2..0000000 --- a/abs/core/python_modules/python2-cairo/PKGBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# $Id$ -# Maintainer: Jan de Groot <jgc@archlinux.org> - -pkgname=python2-cairo -pkgver=1.10.0 -pkgrel=3 -pkgdesc="Python2 bindings for the cairo graphics library" -arch=('i686' 'x86_64') -license=('LGPL' 'MPL') -depends=('python2' 'cairo') -provides=("pycairo=${pkgver}") -conflicts=('pycairo') -replaces=('pycairo') -source=(http://cairographics.org/releases/py2cairo-${pkgver}.tar.bz2) -url="http://www.cairographics.org/pycairo" -md5sums=('20337132c4ab06c1146ad384d55372c5') - -build() { - cd "${srcdir}/py2cairo-${pkgver}" - sed -i 's:bin/env python:bin/env python2:' waf - python2 ./waf --version - pushd .waf-* - popd - PYTHON=/usr/bin/python2 ./waf configure --prefix=/usr - PYTHON=/usr/bin/python2 ./waf build -} - -package() { - cd "${srcdir}/py2cairo-${pkgver}" - PYTHON=/usr/bin/python2 ./waf install --destdir="${pkgdir}" -} diff --git a/abs/core/python_modules/python2-m2crypto/LICENSE b/abs/core/python_modules/python2-m2crypto/LICENSE new file mode 100644 index 0000000..d2f636f --- /dev/null +++ b/abs/core/python_modules/python2-m2crypto/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved. + +Portions copyright (c) 2004-2006 Open Source Applications Foundation. +All rights reserved. + +Portions copyright (c) 2005-2006 Vrije Universiteit Amsterdam. +All rights reserved. + +Copyright (c) 2008-2010 Heikki Toivonen. All rights reserved. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation. + +THE AUTHOR PROVIDES THIS SOFTWARE ``AS IS'' AND ANY EXPRESSED OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/abs/core/python_modules/python2-m2crypto/PKGBUILD b/abs/core/python_modules/python2-m2crypto/PKGBUILD new file mode 100644 index 0000000..36d5f9b --- /dev/null +++ b/abs/core/python_modules/python2-m2crypto/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 140196 2011-10-09 08:27:16Z angvp $ +# Maintainer: Angel Velasquez <angvp@archlinux.org> +# Contributor: Sergej Pupykin <sergej@aur.archlinux.org> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=python2-m2crypto +pkgver=0.27.0 +pkgrel=1 +pkgdesc="A crypto and SSL toolkit for Python" +arch=('x86_64') +url="https://pypi.python.org/pypi/M2Crypto" +license=('BSD') +depends=('python2' 'openssl' 'python2-typing') +makedepends=('swig' 'python2-setuptools') +source=("https://pypi.python.org/packages/01/bd/a41491718f9e2bebab015c42b5be7071c6695acfa301e3fc0480bfd6a15b/M2Crypto-$pkgver.tar.gz" + "LICENSE") +sha256sums=('82317459d653322d6b37f122ce916dc91ddcd9d1b814847497ac796c4549dd68' + '4eca478396f4b2b020729a111fce3f096456d74500bfd8f2b0388c3c69f997c0') + +build() { + cd "${srcdir}/M2Crypto-${pkgver}" + python2 setup.py build +} + +package() { + cd "${srcdir}/M2Crypto-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + install -D -m644 "$srcdir"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/abs/core/python_modules/python2-m2crypto/openssl-1.1.0-force.patch b/abs/core/python_modules/python2-m2crypto/openssl-1.1.0-force.patch new file mode 100644 index 0000000..3c37702 --- /dev/null +++ b/abs/core/python_modules/python2-m2crypto/openssl-1.1.0-force.patch @@ -0,0 +1,33 @@ +--- M2Crypto-0.25.1/setup.py 2016-07-22 14:43:17.000000000 +0200 ++++ M2Crypto-0.25.1.dirty/setup.py 2017-03-23 18:18:35.128517781 +0100 +@@ -70,8 +70,8 @@ + self.libraries = ['ssleay32', 'libeay32'] + self.openssl = 'c:\\pkg' + else: +- self.libraries = ['ssl', 'crypto'] +- self.openssl = '/usr' ++ self.libraries = [':libssl.so.1.0.0', ':libcrypto.so.1.0.0'] ++ self.openssl = '/usr/lib/openssl-1.0/' + + def finalize_options(self): + '''Overloaded build_ext implementation to append custom openssl +@@ -87,16 +87,11 @@ + if _openssl and os.path.isdir(_openssl): + self.openssl = _openssl + +- self.include_dirs.append(os.path.join(self.openssl, 'include')) +- openssl_library_dir = os.path.join(self.openssl, 'lib') ++ self.include_dirs.append(os.path.join('/usr/include/', 'openssl-1.0')) ++ ++ openssl_library_dir = os.path.join('/usr/lib/', 'openssl-1.0') + + if platform.system() == "Linux": +- if _multiarch: # on Fedora/RHEL it is an empty string +- self.include_dirs.append( +- os.path.join(self.openssl, 'include', _multiarch)) +- else: +- self.include_dirs.append( +- os.path.join(self.openssl, 'include', 'openssl')) + + # For RedHat-based distros, the '-D__{arch}__' option for + # Swig needs to be normalized, particularly on i386. diff --git a/abs/core/python_modules/python2-oauth/PKGBUILD b/abs/core/python_modules/python2-oauth/PKGBUILD new file mode 100644 index 0000000..83f3f09 --- /dev/null +++ b/abs/core/python_modules/python2-oauth/PKGBUILD @@ -0,0 +1,32 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Jonathan Conder <jonno.conder@gmail.com> +# Contributor: Snowknight (hopkinsth@gmail.com) + +_pkgbasename=oauth +pkgname=python2-oauth +pkgver=1.0.1 +pkgrel=3 +pkgdesc="An open protocol to allow API authentication from desktop and web applications." +arch=('any') +url="https://code.google.com/archive/p/oauth/" +license=('MIT') +depends=('python2') +makedepends=('python2-setuptools') +conflicts=('python-oauth') +replaces=('python-oauth') +source=("https://files.pythonhosted.org/packages/source/${_pkgbasename:0:1}/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz") +sha256sums=('e769819ff0b0c043d020246ce1defcaadd65b9c21d244468a45a7f06cb88af5d') + +build() { + cd $_pkgbasename-$pkgver + + python2 setup.py build +} + +package() { + cd $_pkgbasename-$pkgver + + python2 setup.py install -O1 --root="$pkgdir" + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/python2-typing/PKGBUILD b/abs/core/python_modules/python2-typing/PKGBUILD new file mode 100644 index 0000000..ac90a5b --- /dev/null +++ b/abs/core/python_modules/python2-typing/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Johannes Löthberg <johannes@kyriasis.com> + +pkgname=python2-typing +pkgver=3.6.4 +pkgrel=1 + +pkgdesc="Backport of the standard library typing module to Python versions older than 3.6" +url="https://pypi.python.org/pypi/typing" +arch=('any') +license=('FSF') + +makedepends=('python2' + 'python2-setuptools') + +source=("python2-typing-$pkgver.tar.gz::https://pypi.io/packages/source/t/typing/typing-$pkgver.tar.gz") + +md5sums=('5b2ade08d83be488f17b5fe587c27c74') + +build() { + cd typing-$pkgver + python2 setup.py build +} + +package() { + depends=('python2') + + cd typing-$pkgver + python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build +} diff --git a/abs/core/python_modules/python2-typing/python2-typing-3.6.1.tar.gz b/abs/core/python_modules/python2-typing/python2-typing-3.6.1.tar.gz Binary files differnew file mode 100644 index 0000000..1097c24 --- /dev/null +++ b/abs/core/python_modules/python2-typing/python2-typing-3.6.1.tar.gz diff --git a/abs/core/python_modules/sip/PKGBUILD b/abs/core/python_modules/sip/PKGBUILD new file mode 100644 index 0000000..66c8952 --- /dev/null +++ b/abs/core/python_modules/sip/PKGBUILD @@ -0,0 +1,66 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> +# Contributor: riai <riai@bigfoot.com>, Ben <ben@benmazer.net> + +pkgbase=sip +pkgname=('sip' 'python-sip' 'python2-sip') +pkgver=4.19.8 +pkgrel=1 +arch=('x86_64') +url='http://www.riverbankcomputing.com/software/sip/intro' +license=('custom:"sip"') +makedepends=('python' 'python2') +source=("http://sourceforge.net/projects/pyqt/files/sip/sip-$pkgver/sip-$pkgver.tar.gz") +sha256sums=('7eaf7a2ea7d4d38a56dd6d2506574464bddf7cf284c960801679942377c297bc') + +prepare() { + cp -a sip-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/sip-$pkgver + python configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" + make + + cd "$srcdir"/sip-$pkgver-py2 + python2 configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" + make +} + +package_sip() { + pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries" + depends=('glibc') + + cd sip-$pkgver + make DESTDIR="$pkgdir" install -C sipgen + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python-sip() { + pkgdesc="Python 3.x SIP bindings for C and C++ libraries" + depends=('sip' 'python') + + cd sip-$pkgver + make DESTDIR="$pkgdir" install -C siplib + + install -Dm644 sipconfig.py "$pkgdir"/usr/lib/python3.6/site-packages/sipconfig.py + install -Dm644 sipdistutils.py "$pkgdir"/usr/lib/python3.6/site-packages/sipdistutils.py + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-sip() { + pkgdesc="Python 2.x SIP bindings for C and C++ libraries" + depends=('sip' 'python2') + + cd sip-$pkgver-py2 + make DESTDIR="$pkgdir" install -C siplib + + install -Dm644 sipconfig.py "$pkgdir"/usr/lib/python2.7/site-packages/sipconfig.py + install -Dm644 sipdistutils.py "$pkgdir"/usr/lib/python2.7/site-packages/sipdistutils.py + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/abs/core/python_modules/twisted/PKGBUILD b/abs/core/python_modules/twisted/PKGBUILD new file mode 100644 index 0000000..ef50622 --- /dev/null +++ b/abs/core/python_modules/twisted/PKGBUILD @@ -0,0 +1,99 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=17.9.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="http://twistedmatrix.com/" +license=('MIT') +makedepends=('python-zope-interface' 'python2-zope-interface' 'python-setuptools' + 'python2-setuptools' 'python-service-identity' 'python2-service-identity' + 'python-incremental' 'python2-incremental' 'python-constantly' 'python2-constantly' + 'python-automat' 'python2-automat' 'python-hyperlink' 'python2-hyperlink') +checkdepends=('subversion' 'python2-sphinx' 'pygtk' 'xorg-server-xvfb' 'tk' 'openssh' 'gtk3' + 'python-gobject' 'python2-gobject' 'python-gobject2' 'python2-gobject2' + 'python2-soappy' 'python-subunit' 'python2-subunit' 'python-h2' 'python2-h2' + 'python-priority' 'python2-priority' 'python-crypto' 'python2-crypto' + 'python-cryptography' 'python2-cryptography' 'python-idna' 'python2-idna' + 'python-pyserial' 'python2-pyserial') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz") +sha512sums=('3fb269dd928d2446e50cb5e4aa43d208d3aa7ed3902a0a7c39b8dabe9792344ad924fc500d507d34118ba2acdfd433a31aa812dd5309b01fdcb45de49e7b84ae') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ + twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ + twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + cd "$srcdir"/twisted-twisted-$pkgver + PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" xvfb-run python -m twisted.trial twisted + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" xvfb-run python2 -m twisted.trial twisted || warning "Tests failed" +} + +package_python-twisted() { + depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat' + 'python-hyperlink') + optdepends=('python-pyopenssl: for TLS client hostname verification' + 'python-service-identity: for TLS client hostname verification' + 'python-idna: for TLS client hostname verification' + 'python-cryptography: for using conch' + 'python-pyasn1: for using conch' + 'python-appdirs: for using conch' + 'python-h2: for http2 support' + 'python-priority: for http2 support' + 'python-pyserial: for serial support' + 'tk: for using tkconch') + + cd twisted-twisted-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + + # twisted in python 3 supports only few command line tools for now. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch; do + mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat' + 'python2-hyperlink') + optdepends=('python2-pyopenssl: for TLS client hostname verification' + 'python2-service-identity: for TLS client hostname verification' + 'python2-idna: for TLS client hostname verification' + 'python2-cryptography: for using conch' + 'python2-pyasn1: for using conch' + 'python2-appdirs: for using conch' + 'python2-h2: for http2 support' + 'python2-priority: for http2 support' + 'python2-pyserial: for serial support' + 'python2-soappy: for twisted.web.soap' + 'pygtk: for using manhole' + 'tk: for using tkconch') + + cd twisted-twisted-$pkgver-py2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/abs/core/python_modules/urlgrabber/PKGBUILD b/abs/core/python_modules/urlgrabber/PKGBUILD index 77f188e..6a5ba50 100644 --- a/abs/core/python_modules/urlgrabber/PKGBUILD +++ b/abs/core/python_modules/urlgrabber/PKGBUILD @@ -1,17 +1,17 @@ -# $Id$ -# Maintainer: Chris Brannon <cmbrannon79@gmail.com> +# Maintainer: Matt Harrison <matt@harrison.us.com> +# Contributor: Chris Brannon <cmbrannon79@gmail.com> # Contributor: Pat Rondon <pmr@@patrondon.org> pkgname=urlgrabber -pkgver=3.10.1 -pkgrel=2 +pkgver=3.10.2 +pkgrel=1 pkgdesc="A high-level cross-protocol url-grabber and Python library" url="http://urlgrabber.baseurl.org/" license=('LGPL') arch=(any) depends=(python2 python2-pycurl) source=(http://$pkgname.baseurl.org/download/$pkgname-$pkgver.tar.gz) -md5sums=('1f5dc63805623cc473e06204fd240bb2') +sha256sums=('53691185e3d462bb0fa8db853a205ee79cdd4089687cddd22cabb8b3d4280142') package() { cd "$srcdir/$pkgname-$pkgver" |