python3 group rebuild against python3.5

This commit is contained in:
AlmAck 2016-03-14 00:06:01 +01:00
parent 1a4a41ae7e
commit c9a8c41672
42 changed files with 416 additions and 147 deletions

View File

@ -6,8 +6,8 @@
pkgbase=python-babel
pkgname=(python3-babel python2-babel)
pkgver=1.3
pkgrel=3
pkgver=2.2.0
pkgrel=1
pkgdesc="A collection of tools for internationalizing Python applications"
url="http://babel.pocoo.org/"
license=("BSD")
@ -16,7 +16,7 @@ makedepends=('python3' 'python2'
'python3-setuptools' 'python2-setuptools'
'python3-pytz' 'python2-pytz')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/mitsuhiko/babel/archive/$pkgver.tar.gz")
md5sums=('752ecd661a4002d64ba07384404a2988')
md5sums=('44ad7b474978a4976ce5a83e9e33aaa1')
package_python3-babel() {
depends=('python3' 'python3-pytz')
@ -38,4 +38,4 @@ package_python2-babel() {
python2 setup.py install --root=$pkgdir
mv $pkgdir/usr/bin/pybabel $pkgdir/usr/bin/pybabel2
install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
}

View File

@ -5,7 +5,7 @@
pkgbase=python-characteristic
pkgname=('python3-characteristic' 'python2-characteristic')
pkgver=14.1.0
pkgrel=1
pkgrel=2
pkgdesc="Service identity verification for pyOpenSSL"
arch=('any')
license=('MIT')

View File

@ -8,7 +8,7 @@
pkgbase=pycrypto
pkgname=('python2-crypto' 'python3-crypto')
pkgver=2.6.1
pkgrel=1
pkgrel=2
pkgdesc="A collection of cryptographic algorithms and protocols, implemented for use from Python."
arch=("x86_64")
makedepends=('python2' 'python3' 'gmp')

View File

@ -4,15 +4,15 @@
pkgbase=python-cssutils
pkgname=('python3-cssutils' 'python2-cssutils')
pkgver=1.0
pkgver=1.0.1
pkgrel=1
pkgdesc="A CSS (Cascading Style Sheets) library for Python"
arch=('any')
url="http://code.google.com/p/cssutils/"
license=('LGPL3')
makedepends=('python3-setuptools' 'python2-setuptools')
source=(http://pypi.python.org/packages/source/c/cssutils/cssutils-${pkgver}.zip)
md5sums=('0c0b9df329ec1461c732d0f3cba05e93')
source=(http://pypi.python.org/packages/source/c/cssutils/cssutils-${pkgver}.tar.gz)
md5sums=('7fcdf2c3e9f053136af1990146eb361d')
build() {
cd "${srcdir}"
@ -26,10 +26,10 @@ package_python3-cssutils() {
python3 setup.py install --root="$pkgdir" --optimize=1
# Don't install tests (FS#27567)
rm -rf "${pkgdir}/usr/lib/python3.4/site-packages/tests"
rm -rf "${pkgdir}/usr/lib/python3.5/site-packages/tests"
# Use #!/usr/bin/python3
cd "${pkgdir}/usr/lib/python3.4/site-packages/cssutils"
cd "${pkgdir}/usr/lib/python3.5/site-packages/cssutils"
find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i 's/env python/python3/' '{}' \;
}

View File

@ -2,7 +2,7 @@
pkgname=('python2-cython' 'python3-cython')
pkgbase=cython
pkgver=0.23.4
pkgrel=2
pkgrel=3
arch=(x86_64)
url="http://www.cython.org"
license=('APACHE')

View File

@ -9,7 +9,7 @@
pkgbase=dbus-python
pkgname=("python-dbus-common" "python2-dbus" "python3-dbus" )
pkgver=1.2.0
pkgrel=6
pkgrel=7
arch=('x86_64')
license=('GPL' 'LGPL')
url="http://www.freedesktop.org/wiki/Software/DBusBindings"

View File

@ -8,7 +8,7 @@
pkgbase=docutils
pkgname=('python3-docutils' 'python2-docutils')
pkgver=0.12
pkgrel=1
pkgrel=2
pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX"
arch=('any')
url="http://docutils.sourceforge.net"

View File

@ -5,7 +5,7 @@
pkgbase=python-fonttools
pkgname=('python2-fonttools' 'python3-fonttools')
pkgver=3.0
pkgrel=1
pkgrel=2
pkgdesc="Converts OpenType and TrueType fonts to and from XML"
url="https://github.com/behdad/fonttools"
license=("BSD")

View File

@ -6,7 +6,7 @@
pkgbase=python-gmpy2
pkgname=('python2-gmpy2' 'python3-gmpy2')
pkgver=2.0.5
pkgrel=2
pkgrel=3
pkgdesc="Provides C-coded Python modules for fast multiple-precision arithmetic."
arch=('i686' 'x86_64')
url="http://code.google.com/p/gmpy/"

View File

@ -3,7 +3,7 @@
pkgbase=pygobject
pkgname=(python2-gobject python3-gobject pygobject-devel)
pkgver=3.14.0
pkgrel=1
pkgrel=2
arch=('x86_64')
url="https://live.gnome.org/PyGObject"
license=(LGPL)

View File

@ -3,15 +3,15 @@
_pkgname=python-greenlet
pkgname=('python2-greenlet' 'python3-greenlet')
pkgver=0.4.3
pkgver=0.4.9
pkgrel=1
pkgdesc='The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets".'
arch=('x86_64')
license=('LGPL')
makedepends=('python2' 'python3')
makedepends=('python3-setuptools' 'python2-setuptools')
url="http://bitbucket.org/ambroff/greenlet"
source=("http://pypi.python.org/packages/source/g/greenlet/greenlet-${pkgver}.zip")
md5sums=('a5e467a5876c415cd357c1ab9027e06c')
md5sums=('c6659cdb2a5e591723e629d2eef22e82')
prepare() {
cp -a greenlet-$pkgver greenlet-$pkgver-py2

View File

@ -4,7 +4,7 @@
pkgbase=isodate
pkgname=('python2-isodate' 'python3-isodate')
pkgver=0.5.0
pkgrel=1
pkgrel=2
pkgdesc="An ISO 8601 date/time/duration parser and formater"
arch=('any')
url="http://pypi.python.org/pypi/isodate"

View File

@ -2,7 +2,7 @@
pkgbase=python-jedi
pkgname=('python2-jedi' 'python3-jedi')
pkgver=0.8.1
pkgver=0.9.0
pkgrel=1
arch=('any')
url="https://github.com/davidhalter/jedi"
@ -10,7 +10,7 @@ license=('MIT')
depends=('python2')
makedepends=('python2-setuptools' 'python3-setuptools')
source=("https://pypi.python.org/packages/source/j/jedi/jedi-${pkgver}.tar.gz")
md5sums=('0e4b205e05290b00ebabe19f351cddf7')
md5sums=('2fee93d273622527ef8c97ac736e92bd')
check() {
cd "$srcdir/jedi-${pkgver}"

View File

@ -8,7 +8,7 @@
pkgbase=python-jinja
pkgname=('python3-jinja' 'python2-jinja')
pkgver=2.7.3
pkgrel=1
pkgrel=2
pkgdesc="A simple pythonic template language written in Python"
arch=('any')
url="http://jinja.pocoo.org"

View File

@ -7,7 +7,7 @@
pkgbase=python-lxml
pkgname=('python3-lxml' 'python2-lxml' 'python-lxml-docs')
pkgver=3.5.0
pkgrel=1
pkgrel=2
arch=('x86_64')
license=('BSD' 'GPL' 'custom')
makedepends=('python3' 'python2' 'libxslt')

View File

@ -5,7 +5,7 @@
pkgbase=python-markupsafe
pkgname=('python3-markupsafe' 'python2-markupsafe')
pkgver=0.23
pkgrel=1
pkgrel=2
pkgdesc="Implements an XML/HTML/XHTML Markup safe string for Python"
arch=('x86_64')
url="http://pypi.python.org/pypi/MarkupSafe"

View File

@ -8,7 +8,7 @@
pkgbase=python-mpmath
pkgname=('python2-mpmath' 'python3-mpmath')
pkgver=0.19
pkgrel=2
pkgrel=3
pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
arch=('any')
url='http://mpmath.org/'

View File

@ -5,15 +5,15 @@
pkgbase=python-nose
pkgname=('python3-nose' 'python2-nose' 'python-nose-doc')
pkgver=1.3.4
pkgver=1.3.7
pkgrel=1
pkgdesc="A discovery-based unittest extension"
arch=('x86_64')
url="http://nose.readthedocs.org/"
license=('LGPL2')
license=('LGPL2.1')
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools' 'python2-sphinx')
source=("http://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz")
md5sums=('6ed7169887580ddc9a8e16048d38274d')
md5sums=('4d3ad0ff07b61373d2cefc89c5d0b20b')
build() {
cd "$srcdir/nose-$pkgver"

View File

@ -7,7 +7,7 @@
pkgbase=python-numpy
pkgname=('python3-numpy' 'python2-numpy')
pkgver=1.9.2
pkgrel=1
pkgrel=2
pkgdesc="Scientific tools for Python"
arch=('x86_64')
license=('custom')

View File

@ -9,7 +9,7 @@
pkgbase=python-opengl
pkgname=('python3-opengl' 'python2-opengl')
pkgver=3.1.0
pkgrel=1
pkgrel=2
pkgdesc="The cross platform Python binding to OpenGL and related APIs"
arch=('any')
license=('BSD')
@ -53,7 +53,7 @@ package_python3-opengl() {
# Fix the shebang
sed -i 's|#!/usr/bin/env python|#!/usr/bin/python3|' \
"${pkgdir}"/usr/lib/python3.4/site-packages/OpenGL/Tk/__init__.py
"${pkgdir}"/usr/lib/python3.5/site-packages/OpenGL/Tk/__init__.py
sed -i 's|#! /usr/bin/env python|#!/usr/bin/python3|' \
"${pkgdir}"/usr/lib/python3.4/site-packages/OpenGL/arrays/{_,}buffers.py
"${pkgdir}"/usr/lib/python3.5/site-packages/OpenGL/arrays/{_,}buffers.py
}

50
python-packaging/PKGBUILD Normal file
View File

@ -0,0 +1,50 @@
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-packaging
pkgname=(python3-packaging python2-packaging)
_pkgname=packaging
pkgver=16.5
pkgrel=2
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
license=('Apache')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-pyparsing' 'python2-pyparsing' 'git')
#checkdepends=('python3-pytest-runner' 'python2-pytest-runner' 'python3-pretend' 'python2-pretend' 'python3-coverage' 'python2-coverage')
source=("git+https://github.com/pypa/packaging.git#tag=$pkgver")
md5sums=('SKIP')
prepare() {
cp -a $_pkgname{,-py2}
}
build() {
cd "${srcdir}/${_pkgname}"
python3 setup.py build
cd "${srcdir}/${_pkgname}-py2"
python2 setup.py build
}
#check() {
# cd "${srcdir}/${_pkgname}"
# python setup.py ptr
#
# cd "${srcdir}/${_pkgname}-py2"
# python2 setup.py ptr
#}
package_python3-packaging() {
depends=('python3-pyparsing' 'python3-six')
cd "${srcdir}/${_pkgname}"
python3 setup.py install --root "$pkgdir"
}
package_python2-packaging() {
depends=('python2-pyparsing' 'python2-six')
cd "${srcdir}/${_pkgname}-py2"
python2 setup.py install --root "$pkgdir"
}

View File

@ -5,7 +5,7 @@
pkgbase=python-pexpect
pkgname=('python3-pexpect' 'python2-pexpect')
pkgver=4.0.1
pkgrel=1
pkgrel=2
pkgdesc='Python module for spawning and controlling other applications'
arch=('any')
url='http://pexpect.sourceforge.net/'

View File

@ -1,5 +1,5 @@
pkgname=('python3-pip' 'python2-pip')
pkgver=7.1.0
pkgver=8.1.0
pkgrel=1
pkgdesc="An easy_install replacement for installing pypi python packages"
url="http://www.pip-installer.org/"
@ -7,7 +7,7 @@ arch=('any')
license=('MIT')
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz)
md5sums=('d935ee9146074b1d3f26c5f0acfd120e')
md5sums=('e9c3844db343f47d16040b32ad9072be')
package_python3-pip() {
depends=('python3' 'python3-setuptools')
@ -20,7 +20,7 @@ package_python3-pip() {
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip3"
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python3|" \
${pkgdir}/usr/lib/python3.4/site-packages/pip/__init__.py
${pkgdir}/usr/lib/python3.5/site-packages/pip/__init__.py
install -D -m644 LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"

View File

@ -5,7 +5,7 @@
pkgbase=python-pyasn1-modules
pkgname=('python3-pyasn1-modules' 'python2-pyasn1-modules')
pkgver=0.0.5
pkgrel=1
pkgrel=2
pkgdesc="A collection of ASN.1-based protocols modules"
arch=('any')
license=('BSD')

View File

@ -4,7 +4,7 @@
pkgbase=python-pyasn1
pkgname=('python3-pyasn1' 'python2-pyasn1')
pkgver=0.1.7
pkgrel=1
pkgrel=2
arch=('any')
url="http://sourceforge.net/projects/pyasn1/"
license=('BSD')

View File

@ -1,14 +1,12 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
# Chakra Packages for Chakra, part of chakraos.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=python-pygame
pkgver=1.9.1
pkgrel=3
pkgrel=4
pkgdesc="Python game library"
arch=('i686' 'x86_64')
arch=('x86_64')
url="http://www.pygame.org/"
license=('LGPL')
depends=('python2' 'sdl_mixer' 'libvorbis' 'sdl_ttf' 'sdl_image' 'smpeg')
@ -35,4 +33,4 @@ package() {
# Fixing permissions
chmod 644 "${pkgdir}"/usr/include/python2.7/pygame/*
}
}

View File

@ -1,7 +1,7 @@
pkgbase=python-pygments
pkgname=('python3-pygments' 'python2-pygments' 'pygmentize')
pkgver=2.0.2
pkgrel=1
pkgrel=2
pkgdesc="Python syntax highlighter"
arch=('any')
url="http://pygments.org/"

33
python-pyparsing/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
pkgbase=python-pyparsing
pkgname=('python3-pyparsing' 'python2-pyparsing')
pkgver=2.1.0
pkgrel=2
pkgdesc='General parsing module for Python'
arch=('any')
url='http://pyparsing.wikispaces.com'
license=('MIT')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("http://downloads.sourceforge.net/pyparsing/pyparsing-$pkgver.tar.gz")
sha256sums=('f6cb2bc85a491347c3c699db47f7ecc02903959156b4f92669ebf82395982901')
prepare() {
cp -vr $srcdir/pyparsing-$pkgver $srcdir/pyparsing-$pkgver-py2
}
package_python3-pyparsing() {
cd "$srcdir/pyparsing-$pkgver"
rm -rf build
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-pyparsing() {
cd "pyparsing-$pkgver-py2"
rm -rf build
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-pyparsing/LICENSE"
}
# vim:set ts=2 sw=2 et:

View File

@ -1,17 +1,16 @@
#
# Platform packages for Chakra, part of www.chakraos.org
# Platform packages for Chakra, part of chakraos.org
#
pkgname=('python3-pytz' 'python2-pytz')
pkgver=2014.7
pkgver=2015.7
pkgrel=1
arch=('any')
url="http://pypi.python.org/pypi/pytz"
license=("MIT")
makedepends=('python3' 'python2')
source=(http://pypi.python.org/packages/source/p/pytz/pytz-$pkgver.tar.bz2{,.asc})
md5sums=('5c1d3966406c6637b95d1eb2652cd8e1'
'SKIP')
source=(http://pypi.python.org/packages/source/p/pytz/pytz-$pkgver.tar.gz)
md5sums=('252bb731883f37ff9c7f462954e8706d')
build(){
cd $srcdir

View File

@ -5,7 +5,7 @@
pkgbase=python-rdflib
pkgname=('python2-rdflib' 'python3-rdflib')
pkgver=4.1.2
pkgrel=1
pkgrel=2
pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
arch=('any')
url="http://rdflib.net/"

View File

@ -5,7 +5,7 @@
pkgbase=python-reportlab
pkgname=('python2-reportlab' 'python3-reportlab')
_origname=reportlab
pkgver=3.2.0
pkgver=3.3.0
pkgrel=1
pkgdesc="A proven industry-strength PDF generating solution"
arch=('x86_64')
@ -17,7 +17,7 @@ conflicts=('python-reportlab<=2.5-1')
replaces=('python-reportlab<=2.5-1')
license=('CUSTOM')
source=("https://pypi.python.org/packages/source/r/reportlab/${_origname}-${pkgver}.tar.gz")
md5sums=('79d059e797c557aed4b40c68dd6c7eae')
md5sums=('8ad6181b69ec515d4f6d8bb894682d5d')
build() {
cd ${srcdir}

View File

@ -5,7 +5,7 @@
pkgbase=python-service-identity
pkgname=('python3-service-identity' 'python2-service-identity')
pkgver=14.0.0
pkgrel=1
pkgrel=2
pkgdesc="Service identity verification for pyOpenSSL"
arch=('any')
license=('MIT')

View File

@ -1,30 +1,30 @@
#
# Software packages for Chakra, part of www.chakra-project.org
# Software packages for Chakra, part of www.chakraos.org
#
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: A Velasquez <angvp@archlinux.org>
pkgbase=python-setuptools
pkgname=('python3-setuptools' 'python2-setuptools')
pkgver=5.7
pkgrel=1
pkgver=20.2.2
pkgrel=2
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')
url="http://pypi.python.org/pypi/setuptools"
makedepends=('python3' 'python2')
source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
md5sums=('81f980854a239d60d074d6ba052e21ed')
makedepends=('python3-six' 'python2-six')
#checkdepends=('python3-mock' 'python2-mock')
prepare() {
source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
md5sums=('bf37191cb4c1472fb61e6f933d2006b1')
prepare() {
cp -a setuptools-${pkgver}{,-python2}
cd "${srcdir}"/setuptools-${pkgver}
sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
cd ../setuptools-${pkgver}-python2
sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
cd "${srcdir}"/setuptools-${pkgver}-python2
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
}
@ -43,15 +43,14 @@ build() {
#
# # Check python3 module
# cd "${srcdir}"/setuptools-${pkgver}
# LC_CTYPE=en_US.utf8 python3 setup.py test
# LC_CTYPE=en_US.utf8 python3 setup.py ptr
#
# # Check python2 module
# cd "${srcdir}"/setuptools-${pkgver}-python2
# LC_CTYPE=en_US.utf8 python2 setup.py test
# LC_CTYPE=en_US.utf8 python2 setup.py ptr
#}
package_python3-setuptools() {
depends=('python3>=3.4')
provides=('python3-distribute')
conflicts=('python3-distribute')
replaces=('python3-distribute')
@ -61,7 +60,6 @@ package_python3-setuptools() {
}
package_python2-setuptools() {
depends=('python2>=2.7')
provides=('python-distribute' 'python2-distribute')
conflicts=('python-distribute' 'python2-distribute')
replaces=('python-distribute' 'python2-distribute')

43
python-six/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
# Maintainer: Manuel 'UtG' <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributor: Allan McRae <allan@archlinux.org>
pkgbase=python-six
pkgname=('python2-six' 'python3-six')
pkgver=1.10.0
pkgrel=2
pkgdesc="Python 2 and 3 compatibility utilities"
arch=('any')
url="http://pypi.python.org/pypi/six/"
license=('MIT')
makedepends=('python2' 'python3')
source=(http://pypi.python.org/packages/source/s/six/six-$pkgver.tar.gz)
md5sums=('34eed507548117b2ab523ab14b2f8b55')
build() {
cd $srcdir
cp -r six-$pkgver six2-$pkgver
}
check() {
cd $srcdir/six-$pkgver
python3 setup.py check
cd $srcdir/six2-$pkgver
python2 setup.py check
}
package_python3-six() {
depends=('python3')
cd $srcdir/six-$pkgver
python3 setup.py install --root "${pkgdir}" --optimize=1
install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_python2-six() {
depends=('python2')
cd $srcdir/six2-$pkgver
python2 setup.py install --root "${pkgdir}" --optimize=1
install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -0,0 +1,47 @@
#
# Software packages for Chakra, part of chakraos.org
#
pkgbase=python-snowballstemmer
pkgname=('python3-snowballstemmer' 'python2-snowballstemmer')
pkgver=1.2.1
pkgrel=1
arch=('any')
pkgdesc="Snowball stemming library collection for Python"
url='https://github.com/shibukawa/snowball_py'
license=('BSD')
makedepends=('python3' '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}
python3 setup.py build
cd "$srcdir"/snowballstemmer-${pkgver}-py2
python2 setup.py build
}
package_python3-snowballstemmer() {
depends=('python3')
optdepends=('python3-pystemmer: for improved performance')
cd "$srcdir"/snowballstemmer-${pkgver}
python3 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
}

View File

@ -0,0 +1,39 @@
#
# Software packages for Chakra, part of chakraos.org
#
pkgbase=python-sphinx-alabaster-theme
pkgname=('python3-sphinx-alabaster-theme' 'python2-sphinx-alabaster-theme')
pkgver=0.7.7
pkgrel=1
pkgdesc="Modified Kr Sphinx doc theme"
url='https://github.com/bitprophet/alabaster'
arch=(any)
license=(BSD)
makedepends=(python3-setuptools python2-setuptools)
source=("https://github.com/bitprophet/alabaster/archive/$pkgver.tar.gz")
md5sums=('4151237e852bdd641ef51eaa8c9f33d9')
build() {
cp -r alabaster-"$pkgver" alabaster-"$pkgver"-py2
cd alabaster-"$pkgver"
python3 setup.py build
cd "$srcdir"/alabaster-"$pkgver"-py2
python2 setup.py build
}
package_python3-sphinx-alabaster-theme() {
cd alabaster-"$pkgver"
python3 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
}

View File

@ -9,8 +9,8 @@
pkgbase=python-sphinx
pkgname=('python3-sphinx' 'python2-sphinx')
pkgver=1.2.3
pkgrel=2
pkgver=1.3.6
pkgrel=1
arch=('any')
url='http://sphinx.pocoo.org/'
license=('GPL')
@ -19,18 +19,25 @@ makedepends=(
'python3-docutils'
'python3-jinja'
'python3-pygments'
'python3-six'
'python2-setuptools'
'python2-docutils'
'python2-jinja'
'python2-pygments'
'python2-six'
)
checkdepends=(
'python3-nose'
'python2-nose'
'python3-nose' 'python2-nose'
'texlive-latexextra'
'python3-snowballstemmer' 'python2-snowballstemmer'
'python3-babel' 'python2-babel'
'python3-sphinx-alabaster-theme' 'python2-sphinx-alabaster-theme'
'python3-sphinx_rtd_theme' 'python2-sphinx_rtd_theme'
'python2-mock'
'python3-pytz' 'python2-pytz'
)
source=("http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz")
md5sums=('a98c93124035b4cd7183604aec656cb3')
md5sums=('7df638f47749f9284889c93012ffa07f')
prepare() {
# souce duplication is required because makefile modify source code
@ -62,21 +69,30 @@ build() {
make PYTHON=python2 build
}
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
}
#check() {
# msg2 'Python 3 version'
# cd "$srcdir"/Sphinx-$pkgver
# make PYTHON=python3 test
# rm -r tests
#
# msg2 'Python 2 version'
# cd "$srcdir"/Sphinx-${pkgver}2
# make PYTHON=python2 test
# rm -r tests
#}
package_python3-sphinx() {
pkgdesc='Python 3 documentation generator'
depends=('python3' 'python3-jinja' 'python3-pygments' 'python3-docutils')
depends=(
'python3-jinja'
'python3-pygments'
'python3-docutils'
'python3-sphinx_rtd_theme'
'python3-sphinx-alabaster-theme'
'python3-babel'
'python3-snowballstemmer'
'python3-six'
)
optdepends=('texlive-latexextra: for generation of PDF documentation')
cd Sphinx-$pkgver
@ -85,7 +101,16 @@ package_python3-sphinx() {
package_python2-sphinx() {
pkgdesc='Python 2 documentation generator'
depends=('python2' 'python2-jinja' 'python2-pygments' 'python2-docutils')
depends=(
'python2-jinja'
'python2-pygments'
'python2-docutils'
'python2-sphinx_rtd_theme'
'python2-sphinx-alabaster-theme'
'python2-babel'
'python2-snowballstemmer'
'python2-six'
)
optdepends=('texlive-latexextra: for generation of PDF documentation')
cd Sphinx-${pkgver}2

View File

@ -0,0 +1,40 @@
#
# Software packages for Chakra, part of chakraos.org
#
pkgbase=python-sphinx_rtd_theme
pkgname=('python3-sphinx_rtd_theme' 'python2-sphinx_rtd_theme')
pkgver=0.1.9
pkgrel=1
pkgdesc="Python Sphinx Read The Docs Theme"
url='https://github.com/snide/sphinx_rtd_theme'
arch=('any')
license=('MIT')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://pypi.python.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$pkgver.tar.gz")
md5sums=('86a25c8d47147c872e42dc84cc66f97b')
build() {
cp -r sphinx_rtd_theme-$pkgver sphinx_rtd_theme-$pkgver-py2
cd sphinx_rtd_theme-$pkgver
python3 setup.py build
cd "$srcdir"/sphinx_rtd_theme-$pkgver-py2
python2 setup.py build
}
package_python3-sphinx_rtd_theme() {
cd sphinx_rtd_theme-$pkgver
python3 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
}

View File

@ -6,7 +6,7 @@
pkgbase=twisted
pkgname=(python3-twisted python2-twisted)
pkgver=14.0.0
pkgrel=1
pkgrel=2
pkgdesc="Asynchronous networking framework written in Python"
arch=('x86_64')
url="http://twistedmatrix.com/"

View File

@ -1,54 +0,0 @@
# Maintainer: AlmAck <almack@chakraos.org>
pkgbase=python-xcffib
pkgname=(python3-xcffib python2-xcffib)
pkgver=0.3.6
pkgrel=1
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
arch=('x86_64')
url="https://pypi.python.org/pypi/xcffib"
license=('Apache')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-cffi' 'python2-cffi'
'python3-six' 'python2-six' 'libxcb' 'git' 'ghc' 'haskell-xcb-types'
'haskell-language-python' 'haskell-filemanip' 'haskell-split'
'haskell-mtl' 'haskell-attoparsec' 'haskell-hunit' 'cabal-install'
'haskell-test-framework' 'haskell-test-framework-hunit'
'haskell-optparse-applicative')
source=("git+https://github.com/tych0/xcffib.git#tag=v$pkgver")
md5sums=('SKIP')
prepare() {
cp -a xcffib-$pkgver{,-py2}
}
build() {
cd "$srcdir/xcffib"
make xcffib
cd "$srcdir/xcffib-py2"
make xcffib
}
check() {
cd "$srcdir/xcffib"
make check
cd "$srcdir/xcffib-py2"
make check
}
package_python3-xcffib() {
depends=('python3-six' 'python3-cffi' 'libxcb')
cd "$srcdir/xcffib-$pkgver"
python3 setup.py install --root="$pkgdir/" --optimize=1
}
package_python2-xcffib() {
depends=('python2-six' 'python2-cffi' 'libxcb')
cd "$srcdir/xcffib-$pkgver-py2"
python2 setup.py install --root="$pkgdir/" --optimize=1
}

View File

@ -6,7 +6,7 @@
pkgbase=python-zope-interface
pkgname=('python3-zope-interface' 'python2-zope-interface')
pkgver=4.1.1
pkgrel=1
pkgrel=2
pkgdesc="Separate distribution of the zope.interface package used in Zope 3"
license=('ZPL')
arch=('x86_64')
@ -44,7 +44,7 @@ package_python3-zope-interface() {
cd "${srcdir}/zope.interface-${pkgver}"
python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
cp src/zope/__init__.py "${pkgdir}/usr/lib/python3.4/site-packages/zope/"
cp src/zope/__init__.py "${pkgdir}/usr/lib/python3.5/site-packages/zope/"
}
package_python2-zope-interface(){
@ -56,4 +56,4 @@ package_python2-zope-interface(){
cd "${srcdir}/zope.interface-${pkgver}-python2"
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
cp src/zope/__init__.py "${pkgdir}/usr/lib/python2.7/site-packages/zope/"
}
}

51
python3.order Normal file
View File

@ -0,0 +1,51 @@
#
# Chakra GNU/Linux Config file
#
# Python3 order list : 13-03-2016
#
python3
python3-cairo
python-six
python-setuptools
python-packaging
python-pyparsing
python-pytz
python-babel
python-greenlet
python-service-identity
python-characteristic
python-isodate
python-pexpect
python-crypto
python-jedi --TODO
python-pip
python-cssutils
python-jinja
python-pyasn1
python-sphinx_rtd_theme
python-sphinx-alabaster-theme
python-snowballstemmer
python-sphinx
python-nose
python-cython
python-lxml
python-pyasn1-modules
python-twisted
python-dbus
python-markupsafe
python-docutils
python-mpmath
python-pygments
python-zope-interface
python-fonttools
python-gmpy2
python-numpy
python-rdflib
python-gobject
python-opengl
python-reportlab