diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/bpython | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/bpython')
-rw-r--r-- | dev-python/bpython/Manifest | 5 | ||||
-rw-r--r-- | dev-python/bpython/bpython-0.13.1.ebuild | 67 | ||||
-rw-r--r-- | dev-python/bpython/bpython-0.13.2.ebuild | 65 | ||||
-rw-r--r-- | dev-python/bpython/bpython-0.14.1.ebuild | 62 | ||||
-rw-r--r-- | dev-python/bpython/bpython-0.14.2.ebuild | 62 | ||||
-rw-r--r-- | dev-python/bpython/bpython-0.14.ebuild | 65 | ||||
-rw-r--r-- | dev-python/bpython/files/bpython-0.13-test_repl.patch | 34 | ||||
-rw-r--r-- | dev-python/bpython/files/bpython-0.14.patch | 14 | ||||
-rw-r--r-- | dev-python/bpython/files/bpython-desktop.patch | 8 | ||||
-rw-r--r-- | dev-python/bpython/metadata.xml | 16 |
10 files changed, 398 insertions, 0 deletions
diff --git a/dev-python/bpython/Manifest b/dev-python/bpython/Manifest new file mode 100644 index 000000000000..998118b0b5f3 --- /dev/null +++ b/dev-python/bpython/Manifest @@ -0,0 +1,5 @@ +DIST bpython-0.13.1.tar.gz 156558 SHA256 ee208a60a54f902a8c827f4a80fda8a6235790d59cc1fc089943df50936accae SHA512 cb3f1e8d8df5eb9978956b3503ef98b1c39e80704792281be7e560ec0d648aefa6d979ab45a642ec369fc252e7fde399013aa1a4154ceb73465bc3d95bea4b19 WHIRLPOOL a5d00b92507d1970de95f20ee54723774432687b1f11637f3aa75f9e8979e93015034f37253bd947100436f8400cdbe2ba523b6517a7ba265950b3f20dc6f9db +DIST bpython-0.13.2.tar.gz 158551 SHA256 a1870a78e44ed6ef54aa906c58234cb0d12011f2e9a49dc29bd5d9423abfbde2 SHA512 6bf74c9618bf92fc6ca23c9020b17219c64b16f159773624b67f87875c962857bde2dd4b03da621da7c8d50622739f95a880638c7c536f5f0dbf510c71f5a874 WHIRLPOOL 71da7518100bd73868ab53e1d13cb8831b0f6629713b993729948f38df52262537b8605f9304ff0edeca5e4f4d3435677c61e84b2d6fc54b2d66df74e756318c +DIST bpython-0.14.1.tar.gz 184850 SHA256 d96224d55ffb99ef9d2565e9b18202080b3659408fcce2594c9ec7bde65d8eb1 SHA512 6583d74cae29244ceefcbb2aaf24e789dafd63f9295e3e848f9e298b958d4a344c606051a9efd7f5a728d3ad1b9e58d011931d14f7e60e7c1fbd8b38a2dd1b09 WHIRLPOOL f52e7660054af1547452d777801a79e028378ed1d2f3fdfd3a36e9e5a9154d8389a5eb37e108abef06eb178340be234dacc2b87567bcc37797d3f519b4ea6644 +DIST bpython-0.14.2.tar.gz 184808 SHA256 d1f03c9b64a67219ef41aec258c95f192ade5fd187d48fe61b15c1f1d707e302 SHA512 aa6fb8a6fe08746c31783308423400bf2482c6401fc03a1cf1e95592b83946b49eb8df29ac274d0711e01e7b2dcad37c00a609b3b600c31774563d0638d67159 WHIRLPOOL fe6847da5bb0b5b72f9230d175dbe0812a010281bf6a022f87196f71426a37d116a3bf9292cdd20fcd465e56d9b7c3d975028d2bb3a07afacc5c87f3b4b3d0f6 +DIST bpython-0.14.tar.gz 184430 SHA256 f7c9fc80fc5a4eb6a345a67815e31957c0c65c1bbdfc68cf99267cdc81a3d35b SHA512 1c43af30902ac01385a4f9d0af1f7531f190dea9ee0d43725d5a23d881874184beca1df9fc8f94f21110d99ca07a851861c56976199e9306515e2b00ca07f1f7 WHIRLPOOL 21dc44b48a0fb31d0c125fc203f90fe7750e81599353a51c215672ed82218fc3b4f544cdb530d6447d099e4eaa5983ad52b8f48e1e83bcf4799dad190af797eb diff --git a/dev-python/bpython/bpython-0.13.1.ebuild b/dev-python/bpython/bpython-0.13.1.ebuild new file mode 100644 index 000000000000..bbf09b6c3b15 --- /dev/null +++ b/dev-python/bpython/bpython-0.13.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" +HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython" +SRC_URI="http://www.bpython-interpreter.org/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc gtk test" + +RDEPEND=" + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + gtk? ( dev-python/pygobject:2[$(python_gen_usedep python2_7)] + dev-python/pygtk[$(python_gen_usedep python2_7)] ) + dev-python/urwid[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS CHANGELOG TODO sample-config sample.theme light.theme ) + +PATCHES=( "${FILESDIR}"/${PN}-desktop.patch + "${FILESDIR}"/${PN}-0.13-test_repl.patch ) + +# Req'd for clean build by each impl +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + if use doc; then + sphinx-build -b html -c doc/sphinx/source/ \ + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" + fi +} + +python_install() { + distutils-r1_python_install + if ! use gtk; then + rm -f "${D}"usr/bin/bpython-gtk* + # delete_unneeded_modules() { + rm -f "${D}$(python_get_sitedir)/bpython/gtk_.py" + fi +} + +python_test() { + pushd build/lib > /dev/null + # https://bitbucket.org/bobf/bpython/issue/289/test-failures-in-latest-release-py27-py33 + sed -e s':test_enter:_&:' -i bpython/test/test_repl.py || die + + "${PYTHON}" -m unittest discover || die + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/bpython/bpython-0.13.2.ebuild b/dev-python/bpython/bpython-0.13.2.ebuild new file mode 100644 index 000000000000..92ce5e8fc058 --- /dev/null +++ b/dev-python/bpython/bpython-0.13.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" +HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython" +SRC_URI="http://www.bpython-interpreter.org/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc gtk test" + +RDEPEND="dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + gtk? ( dev-python/pygobject:2[$(python_gen_usedep python2_7)] + dev-python/pygtk[$(python_gen_usedep python2_7)] ) + dev-python/urwid[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS CHANGELOG TODO sample-config sample.theme light.theme ) + +PATCHES=( "${FILESDIR}"/${PN}-desktop.patch ) + +# Req'd for clean build by each impl +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + if use doc; then + sphinx-build -b html -c doc/sphinx/source/ \ + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" + fi +} + +python_install() { + distutils-r1_python_install + if ! use gtk; then + rm -f "${D}"usr/bin/bpython-gtk* + # delete_unneeded_modules() { + rm -f "${D}$(python_get_sitedir)/bpython/gtk_.py" + fi +} + +python_test() { + pushd build/lib > /dev/null + # https://bitbucket.org/bobf/bpython/issue/289/test-failures-in-latest-release-py27-py33 + sed -e s':test_enter:_&:' -i bpython/test/test_repl.py || die + + "${PYTHON}" -m unittest discover || die + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/bpython/bpython-0.14.1.ebuild b/dev-python/bpython/bpython-0.14.1.ebuild new file mode 100644 index 000000000000..9c4fe9762160 --- /dev/null +++ b/dev-python/bpython/bpython-0.14.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} ) + +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" +HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython" +SRC_URI=" + http://www.bpython-interpreter.org/releases/${P}.tar.gz + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + " + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/curtsies-0.1.18[${PYTHON_USEDEP}] + <dev-python/curtsies-0.2.0[${PYTHON_USEDEP}] + dev-python/greenlet[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urwid[${PYTHON_USEDEP}] + dev-python/watchdog[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS CHANGELOG sample.theme light.theme ) + +# Req'd for clean build by each impl +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + if use doc; then + sphinx-build -b html -c doc/sphinx/source/ \ + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" + fi +} + +python_test() { + pushd build/lib > /dev/null + "${PYTHON}" -m unittest discover || die + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/bpython/bpython-0.14.2.ebuild b/dev-python/bpython/bpython-0.14.2.ebuild new file mode 100644 index 000000000000..9c4fe9762160 --- /dev/null +++ b/dev-python/bpython/bpython-0.14.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} ) + +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" +HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython" +SRC_URI=" + http://www.bpython-interpreter.org/releases/${P}.tar.gz + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + " + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/curtsies-0.1.18[${PYTHON_USEDEP}] + <dev-python/curtsies-0.2.0[${PYTHON_USEDEP}] + dev-python/greenlet[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urwid[${PYTHON_USEDEP}] + dev-python/watchdog[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS CHANGELOG sample.theme light.theme ) + +# Req'd for clean build by each impl +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + if use doc; then + sphinx-build -b html -c doc/sphinx/source/ \ + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" + fi +} + +python_test() { + pushd build/lib > /dev/null + "${PYTHON}" -m unittest discover || die + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/bpython/bpython-0.14.ebuild b/dev-python/bpython/bpython-0.14.ebuild new file mode 100644 index 000000000000..f626c76f1732 --- /dev/null +++ b/dev-python/bpython/bpython-0.14.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} ) + +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" +HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython" +SRC_URI=" + http://www.bpython-interpreter.org/releases/${P}.tar.gz + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + " + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/curtsies[${PYTHON_USEDEP}] + dev-python/greenlet[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/six-1.4[${PYTHON_USEDEP}] + dev-python/urwid[${PYTHON_USEDEP}] + dev-python/watchdog[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS CHANGELOG sample.theme light.theme ) + +# Upstream patch +# https://github.com/bpython/bpython/commit/43e70389badc48be2986a606f8f7b3f2aa29d59b +PATCHES=( "${FILESDIR}"/${P}.patch ) + +# Req'd for clean build by each impl +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + if use doc; then + sphinx-build -b html -c doc/sphinx/source/ \ + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" + fi +} + +python_test() { + pushd build/lib > /dev/null + "${PYTHON}" -m unittest discover || die + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/bpython/files/bpython-0.13-test_repl.patch b/dev-python/bpython/files/bpython-0.13-test_repl.patch new file mode 100644 index 000000000000..b71cfbea3440 --- /dev/null +++ b/dev-python/bpython/files/bpython-0.13-test_repl.patch @@ -0,0 +1,34 @@ +https://bitbucket.org/thomasballinger/bpython-for-clean-patch/commits/94c4664c1303 +# HG changeset patch +# User Thomas Ballinger <thomasballinger@gmail.com> +# Date 1404088731 14400 +# Branch 0.13-bugfix +# Node ID 94c4664c130303b1ae53629d6ebcff04f5d5d7ae +# Parent 106c49981f5e2db325d543d24c063f9c38013023 +simplest possible fix for test that changes in py3.3 + +diff --git a/bpython/test/test_repl.py b/bpython/test/test_repl.py +--- a/bpython/test/test_repl.py ++++ b/bpython/test/test_repl.py +@@ -1,4 +1,5 @@ + import os ++import sys + import unittest + from itertools import islice + from mock import Mock +@@ -280,8 +281,12 @@ + + self.assertTrue(self.repl.complete()) + self.assertTrue(hasattr(self.repl.completer,'matches')) +- self.assertEqual(self.repl.completer.matches, +- ['UnboundLocalError(', '__doc__']) ++ if sys.version_info[0] == 3 and sys.version_info[1] >= 3: ++ self.assertEqual(self.repl.completer.matches, ++ ['ChildProcessError(', 'UnboundLocalError(', '__doc__']) ++ else: ++ self.assertEqual(self.repl.completer.matches, ++ ['UnboundLocalError(', '__doc__']) + + # 2. Attribute tests + def test_simple_attribute_complete(self): + diff --git a/dev-python/bpython/files/bpython-0.14.patch b/dev-python/bpython/files/bpython-0.14.patch new file mode 100644 index 000000000000..00b8e5a420d0 --- /dev/null +++ b/dev-python/bpython/files/bpython-0.14.patch @@ -0,0 +1,14 @@ +diff -r -U2 bpython-0.14.orig/bpython/curtsiesfrontend/repl.py bpython-0.14/bpython/curtsiesfrontend/repl.py +--- bpython-0.14.orig/bpython/curtsiesfrontend/repl.py 2015-02-17 05:07:38.000000000 +0600 ++++ bpython-0.14/bpython/curtsiesfrontend/repl.py 2015-02-19 00:09:13.758932344 +0600 +@@ -420,7 +420,9 @@ + # for reading modules if they fail to load + old_module_locations = {} ++ default_level = 0 if py3 else -1 + + @functools.wraps(self.orig_import) +- def new_import(name, globals={}, locals={}, fromlist=[], level=-1): ++ def new_import(name, globals={}, locals={}, fromlist=[], ++ level=default_level): + try: + m = self.orig_import(name, globals=globals, locals=locals, diff --git a/dev-python/bpython/files/bpython-desktop.patch b/dev-python/bpython/files/bpython-desktop.patch new file mode 100644 index 000000000000..8598679089c9 --- /dev/null +++ b/dev-python/bpython/files/bpython-desktop.patch @@ -0,0 +1,8 @@ +diff -r -U1 bpython-0.11.orig/data/bpython.desktop bpython-0.11/data/bpython.desktop +--- bpython-0.11.orig/data/bpython.desktop 2012-04-05 04:06:42.000000000 +0700 ++++ bpython-0.11/data/bpython.desktop 2012-11-15 17:20:09.000000000 +0700 +@@ -7,3 +7,3 @@ + Type=Application +-Categories=Development;Utility;ConsoleOnly; ++Categories=Development;ConsoleOnly; + StartupNotify=true diff --git a/dev-python/bpython/metadata.xml b/dev-python/bpython/metadata.xml new file mode 100644 index 000000000000..346bda3eed20 --- /dev/null +++ b/dev-python/bpython/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> + </maintainer> + <longdescription>Syntax highlighting and autocompletion + for the python interpreter + </longdescription> + <upstream> + <remote-id type="pypi">bpython</remote-id> + <remote-id type="bitbucket">bobf/bpython</remote-id> + </upstream> +</pkgmetadata> |