mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
Merge updates from master
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit base fdo-mime prefix qmake-utils
|
||||
inherit fdo-mime prefix qmake-utils
|
||||
|
||||
DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
|
||||
HOMEPAGE="http://texstudio.sourceforge.net/"
|
||||
@@ -21,7 +21,7 @@ COMMON_DEPEND="
|
||||
app-text/hunspell
|
||||
app-text/poppler:=[qt4?,qt5?]
|
||||
>=dev-libs/quazip-0.7.1[qt4?,qt5?]
|
||||
dev-qt/qtsingleapplication[qt4?,qt5?]
|
||||
dev-qt/qtsingleapplication[X,qt4?,qt5?]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
qt4? (
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit base fdo-mime prefix qmake-utils
|
||||
inherit fdo-mime prefix qmake-utils
|
||||
|
||||
DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
|
||||
HOMEPAGE="http://texstudio.sourceforge.net/"
|
||||
@@ -21,7 +21,7 @@ COMMON_DEPEND="
|
||||
app-text/hunspell
|
||||
app-text/poppler:=[qt4?,qt5?]
|
||||
>=dev-libs/quazip-0.7.1[qt4?,qt5?]
|
||||
dev-qt/qtsingleapplication[qt4?,qt5?]
|
||||
dev-qt/qtsingleapplication[X,qt4?,qt5?]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
qt4? (
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
DIST sqlalchemy-migrate-0.10.0.tar.gz 127356 SHA256 f83c5cce9c09e5c05527279b7fe1565b32e5353342ff30b24f594fa2e5a7e003 SHA512 611782f0843cf1d283d41580196cad971c63fee01a612dbcaa47f1bc2de21baf035079d7f7036460d7aeb7f3233a101207eb5084d27b8a85177f9d13cea6603e WHIRLPOOL 3c6cd4ce3a956d60e2771d492531f252eed341323aaf084643d85981524766a2c847b44ae2545aecedad4d5906354f8ab82b5092d4620e0784b3df6d37cafba2
|
||||
DIST sqlalchemy-migrate-0.7.2.tar.gz 105862 SHA256 7f55c768ee26f143fedb11b365a4c57c3bbdb5211e049c7f04b8ae8107c28333 SHA512 31c56da755ccccdc0aa5eacddcb097a4bd6431ab72a5b964689b0943b50ae4b23e034ae84d8dad4707d4cf9bea5b538e015ff755318685cc17dd82497a4cb4a9 WHIRLPOOL 51a058edea0b48db8377a69366f2b30a44e0ed9621d662fa347df3b2a6b9605ee8866ee21e86153c649f5e4e627fef39dc1a68d333c5f334e96be2cf20aceee1
|
||||
DIST sqlalchemy-migrate-0.9.1.tar.gz 123104 SHA256 16e327c9642ca4c99a70dcac3b39aeb821edaf5214834b47fb0a89bac44af23b SHA512 8b1e87238a4993c2abf61cc554afe0369bf34006a01237b0667d4b7fe4b85cca4f8a26968e2c20f7ed09a1f129c300f8f88ce19c61a325925fe56a16f873c627 WHIRLPOOL 110a26f73f3814870e37fb1496cb4419844344e2195db63d633a64899b85d40b6e0acc6d5d11bbe8110410ecb4a4ea7411bc8e54a5223374a0c2c199d75284ec
|
||||
DIST sqlalchemy-migrate-0.9.2.tar.gz 124175 SHA256 578fa857615f05f9c73f024147c75019535d3d276ca46f5ec84cc0d606820893 SHA512 25b218ae97e9a99ad126e4185621bff04da2e9d47d2e47620965974a0b865a9dad161c4d284aaf316f01f0241743d11dd6578942ad6673f2843476fbeaaa4688 WHIRLPOOL ca9952c56dafde150126001aa1b58b43cb95fd751c4d2361037424bca8d5b2080f72f7ed3c5b39a2a504fa30f5f310857331b23d9f244b1106858d068c4cbb49
|
||||
DIST sqlalchemy-migrate-0.9.5.tar.gz 125820 SHA256 d36ae0879b418c4a7011c081a7b05aa9eaf2f2bc38402cdad4ad64369de31d9c SHA512 2e6e36fe68c5e3c5cb0b2c12c9d00168389461d28606facb34c7d8e6aa2807e4f7c41182140a7b8e933be73ef19af652177687c9af3b9b2e59c318f1e16efb30 WHIRLPOOL eec61bc839c926279452063b31966a6800d0be6bd5bb3654515dcf32a41f0b6dcdf1ac0ef2abdb0d1ccb5bc3f06f4ef272b2b37223a580e9c9b7888c8e8be4a0
|
||||
DIST sqlalchemy-migrate-0.9.6.tar.gz 126368 SHA256 c2c73d8dbeb29a96459d8622e3bac2e97cf6f74ed0564469486fe7ffe0ef3d97 SHA512 4f82ae63037803d2f0b270bb597894e58994e2bbc364d6ca4582b979441d936d56d5fe3d15e59ddc810252149866b3dba85c041a17f47cbe2537c3e167b51334 WHIRLPOOL 0b059414221a74c0d71f821398fb9d7db82e68064d947be2d135b7314bf26241df23836a2ef3421b33264dbfae953c337d7b8fd44996b215594dd36e1be34385
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="SQLAlchemy Schema Migration Tools"
|
||||
HOMEPAGE="https://code.google.com/p/sqlalchemy-migrate/ https://pypi.python.org/pypi/sqlalchemy-migrate"
|
||||
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm hppa ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
|
||||
dev-python/tempita[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
# for tests: unittest2 and scripttest
|
||||
@@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
# py3 has a syntax errors. On testing it is underdone
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="SQLAlchemy Schema Migration Tools"
|
||||
HOMEPAGE="https://code.google.com/p/sqlalchemy-migrate/ https://pypi.python.org/pypi/sqlalchemy-migrate"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-0.7.8[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/tempita-0.4[${PYTHON_USEDEP}]
|
||||
dev-python/python-sqlparse[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
@@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
# py3 has a syntax errors. On testing it is underdone
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="SQLAlchemy Schema Migration Tools"
|
||||
HOMEPAGE="https://code.google.com/p/sqlalchemy-migrate/ https://pypi.python.org/pypi/sqlalchemy-migrate"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.8.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-0.7.8[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-0.9.5[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tempita-0.4[${PYTHON_USEDEP}]
|
||||
dev-python/python-sqlparse[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
@@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
# py3 has a syntax errors. On testing it is underdone
|
||||
PYTHON_COMPAT=( python2_7 python3_4 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="SQLAlchemy Schema Migration Tools"
|
||||
HOMEPAGE="https://code.google.com/p/sqlalchemy-migrate/ https://pypi.python.org/pypi/sqlalchemy-migrate"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.8.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/sphinxcontrib-issuetracker[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=">=dev-python/sqlalchemy-0.7.8[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-0.9.5[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tempita-0.4[${PYTHON_USEDEP}]
|
||||
dev-python/python-sqlparse[${PYTHON_USEDEP}]"
|
||||
# Testsuite requires a missing dep and errors with poor report output
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent d'loading during the doc build via sphinx.ext.intersphinx
|
||||
sed -e "s: 'sphinx.ext.intersphinx',::" -i doc/source/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
einfo ""; einfo "The build seeks to import modules from an installed state of the package"
|
||||
einfo "simply ignore all warnings / errors of failure to import module migrate.<module>"; einfo ""
|
||||
emake -C doc/source html || die "Generation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/source/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -1,8 +1,3 @@
|
||||
DIST SQLAlchemy-0.7.10.tar.gz 3541639 SHA256 77aa39d65c9d043eba6ba329b359ff867424fd6c403b7c0cb112b65e507e1d66 SHA512 631bc4ffb419defa531a66d82449fe48f93c88371ba0b8ab4217d900a0d1d90efe9699d8a9048d5c2ed33948c6d2f7cae46452ee45d442914018f3361e804367 WHIRLPOOL 74ffc17efbcbb2ac67712b9e11aa48431d18970f46ae5985aaa345aa8691f96e4acc4cf6fa37606699fbba83fcb7f74b0360fea2ac5e93a451585019e110f2ed
|
||||
DIST SQLAlchemy-0.9.2.tar.gz 4389966 SHA256 1411b6e93446350e533ed0b892ba5cbce9afdfab8ce09f060add8ada8911e1ee SHA512 1d4baa0ea02e4f6ee70ff00dbda77c6c814adab6f45df89765123045ced4d65bceb9c7640aa16b60e45887d4454584d49f4a5b06db0fbd9f7770cf78da5ecda3 WHIRLPOOL 79e06d8987dad3bd12cc412980978f670888595b6e7805e17ccc3f0face39d5500b6299a81f5424fe7a77005e928d88e3eec34300075c03a4d788b19c47be2c3
|
||||
DIST SQLAlchemy-0.9.8.tar.gz 4080098 SHA256 de3ac04ecab0a7e0af64eee30a71e723ba5886b958205f7354dd62439da60389 SHA512 3df7d7a64cdfe7b684be98e7e9d6836da54c391343bb047224a11df888041034bcc54cc30d15dc3d56b5d397b35e6aabe5732e7ca8fbf553bd8d98731c249ea5 WHIRLPOOL 2cedf7713753a6cf8838741fcf06c5510387aa4e661ea3c0ecc2bb7bdb5b03fb90f072ccd1a5671f03943952340c6c3525836e1ebe9246506143b055a1ca1991
|
||||
DIST SQLAlchemy-0.9.9.tar.gz 4213948 SHA256 72a51f6ae99116ea969381f65fe471aafe14c21f6760f259b46f919f21345f91 SHA512 a28c83645ddddc17825f7d76443350ef22b23be72524aeb22665b4f8b92e0bf7dd79f9628841732973a565f5edb64b687f9e49daa1af11b1778b854b66728fa0 WHIRLPOOL e60a8ef79da0547b58a53c5f567e6abeba7408cd4cc398feaa7c61dcad7fa344dd31691fee25d4738bc25bb956ecf2b20cbeb6caf29114066dfbec26c2f07695
|
||||
DIST SQLAlchemy-1.0.5.tar.gz 4600531 SHA256 b57d3a35c39ed956e3002118a51502918b2fd357eca7523a6b50ef8d329a29be SHA512 d898c2b74132a3f1ea9c2aecd761af6788f6dc2c76b471dfed5b0c6f69eb273b6b4602028ad0a142129311be08da97d74d277db2150c169c51385bb7d28f843e WHIRLPOOL 204c8079ca8a2ab43e363f3e8ea0dbc436e12ec9c7dd0bc9201eef85e9d7717084c38e4655def400c19706c9c80f91baed9bee2c206e670ae8de030be27ed167
|
||||
DIST SQLAlchemy-1.0.6.tar.gz 4615939 SHA256 99a8a54bec4988f704c54ee9f769aa196db43a5ef7ed655b78a80a129c9c65f3 SHA512 188e2ce1c38819318c7561fa2cc663a8421ea6869abd2b0b355986b8326c481a62cd073a52cb90ad967cbcc7c2bfe64aecee2280423a40b4bc23f779c92bcd63 WHIRLPOOL d5a4035d21c74378e162719ba3b09d5554e218aefe273d9676158e2c02715a827edeb652714a7964d19cacacf45436b4ca1ef490ce6ff9631362f53a6a1c5190
|
||||
DIST SQLAlchemy-1.0.8.tar.gz 4627601 SHA256 950c79c0abf9e9f99c43c627c51d40d14a946810a90c35e7cd827bfd0bffe46f SHA512 921f847a20548095cb1f41fe6147b393110e08f8f3ff0aee6081e7811e7c15b3c03583afd41ddf5aacdc1dde090c0512afb94c7cc33d9c27135a5525ed121e74 WHIRLPOOL 757f2a3832c8fefd5789cd981eb1b2028419362ed2714927198df6b91742236896d4ab0131969afa08e5508843e32e018a1361e28df3f22a15f811d78275f8cf
|
||||
DIST SQLAlchemy-1.0.9.tar.gz 4662673 SHA256 c3d37501e36ec5d74c2d7b4a3764719db86a9cdab4a24431bf58b386743ab10e SHA512 5032977e4fd3ff12d7ae10ca87f0ec9cd2d9eb5d200020b74faad1309eb1de5bacc9b4f5e53cb1b0b0b9c7f59b923a87a12ba050b37a631f9c77af2b896eb076 WHIRLPOOL 5e824f8581b98ac26f47d0bc8ae706783602ebe6bf921c6767f46db83b8322b022ea51603d1002017052144946256583c4fd9d2a92742c752333b530ed356121
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
From 405c223ae50e78dacac08783c414619db20df0b7 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Bayer <mike_mp@zzzcomputing.com>
|
||||
Date: Tue, 29 Jul 2014 13:32:05 -0400
|
||||
Subject: [PATCH] - Fixed 0.9.7 regression caused by :ticket:`3067` in
|
||||
conjunction with a mis-named unit test such that so-called "schema" types
|
||||
like :class:`.Boolean` and :class:`.Enum` could no longer be pickled. fixes
|
||||
#3144
|
||||
|
||||
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
|
||||
index 6114460..6cbf583 100644
|
||||
--- a/lib/sqlalchemy/sql/elements.py
|
||||
+++ b/lib/sqlalchemy/sql/elements.py
|
||||
@@ -3276,6 +3276,9 @@ class _defer_name(_truncated_label):
|
||||
else:
|
||||
return super(_defer_name, cls).__new__(cls, value)
|
||||
|
||||
+ def __reduce__(self):
|
||||
+ return self.__class__, (util.text_type(self), )
|
||||
+
|
||||
|
||||
class _defer_none_name(_defer_name):
|
||||
"""indicate a 'deferred' name that was ultimately the value None."""
|
||||
diff --git a/test/sql/test_types.py b/test/sql/test_types.py
|
||||
index 03d3997..efa0f90 100644
|
||||
--- a/test/sql/test_types.py
|
||||
+++ b/test/sql/test_types.py
|
||||
@@ -234,9 +234,9 @@ class TypeAffinityTest(fixtures.TestBase):
|
||||
assert t1.dialect_impl(d)._type_affinity is postgresql.UUID
|
||||
|
||||
|
||||
-class PickleMetadataTest(fixtures.TestBase):
|
||||
+class PickleTypesTest(fixtures.TestBase):
|
||||
|
||||
- def testmeta(self):
|
||||
+ def test_pickle_types(self):
|
||||
for loads, dumps in picklers():
|
||||
column_types = [
|
||||
Column('Boo', Boolean()),
|
||||
@@ -1,33 +0,0 @@
|
||||
diff -r d1c7b3df098a lib/sqlalchemy/util/_collections.py
|
||||
|
||||
Index: lib/sqlalchemy/util/_collections.py
|
||||
===================================================================
|
||||
--- a/lib/sqlalchemy/util/_collections.py Wed Jan 18 12:42:54 2012 -0500
|
||||
+++ b/lib/sqlalchemy/util/_collections.py Thu Jan 19 10:01:28 2012 -0500
|
||||
@@ -769,10 +769,15 @@
|
||||
def __init__(self, capacity=100, threshold=.5):
|
||||
self.capacity = capacity
|
||||
self.threshold = threshold
|
||||
+ self._counter = 0
|
||||
+
|
||||
+ def _inc_counter(self):
|
||||
+ self._counter += 1
|
||||
+ return self._counter
|
||||
|
||||
def __getitem__(self, key):
|
||||
item = dict.__getitem__(self, key)
|
||||
- item[2] = time_func()
|
||||
+ item[2] = self._inc_counter()
|
||||
return item[1]
|
||||
|
||||
def values(self):
|
||||
@@ -788,7 +793,7 @@
|
||||
def __setitem__(self, key, value):
|
||||
item = dict.get(self, key)
|
||||
if item is None:
|
||||
- item = [key, value, time_func()]
|
||||
+ item = [key, value, self._inc_counter()]
|
||||
dict.__setitem__(self, key, item)
|
||||
else:
|
||||
item[1] = value
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
https://bitbucket.org/sqlalchemy/sqlalchemy/pull-request/41
|
||||
--- a/test/engine/test_execute.py
|
||||
+++ b/test/engine/test_execute.py
|
||||
@@ -9,7 +9,7 @@
|
||||
import sqlalchemy as tsa
|
||||
from test.lib import testing, engines
|
||||
from test.lib.engines import testing_engine
|
||||
-import logging
|
||||
+import logging, logging.handlers
|
||||
from sqlalchemy.dialects.oracle.zxjdbc import ReturningParam
|
||||
from sqlalchemy.engine import base, default
|
||||
from sqlalchemy.engine.base import Connection, Engine
|
||||
@@ -1,50 +0,0 @@
|
||||
# http://www.sqlalchemy.org/trac/ticket/2719
|
||||
diff -ur SQLAlchemy-0.8.1.orig/test/ext/test_serializer.py SQLAlchemy-0.8.1/test/ext/test_serializer.py
|
||||
--- test/ext/test_serializer.py 2013-04-28 05:24:34.000000000 +0800
|
||||
+++ test/ext/test_serializer.py 2013-05-02 01:02:25.376203511 +0800
|
||||
@@ -114,6 +114,7 @@
|
||||
Address(email='ed@lala.com'),
|
||||
Address(email='ed@bettyboop.com')])
|
||||
|
||||
+ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported")
|
||||
def test_query_two(self):
|
||||
q = \
|
||||
Session.query(User).join(User.addresses).\
|
||||
@@ -123,6 +124,7 @@
|
||||
eq_(q2.all(), [User(name='fred')])
|
||||
eq_(list(q2.values(User.id, User.name)), [(9, u'fred')])
|
||||
|
||||
+ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported")
|
||||
def test_query_three(self):
|
||||
ua = aliased(User)
|
||||
q = \
|
||||
@@ -136,6 +138,7 @@
|
||||
ua_2 = q2._entities[0].entity_zero.entity
|
||||
eq_(list(q2.values(ua_2.id, ua_2.name)), [(9, u'fred')])
|
||||
|
||||
+ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported")
|
||||
def test_orm_join(self):
|
||||
from sqlalchemy.orm.util import join
|
||||
|
||||
diff -ur SQLAlchemy-0.8.1.orig/test/orm/test_manytomany.py SQLAlchemy-0.8.1/test/orm/test_manytomany.py
|
||||
--- test/orm/test_manytomany.py 2013-04-28 05:24:34.000000000 +0800
|
||||
+++ test/orm/test_manytomany.py 2013-05-02 01:05:08.073213015 +0800
|
||||
@@ -233,6 +233,9 @@
|
||||
p2 = Place('place2')
|
||||
p3 = Place('place3')
|
||||
|
||||
+ sess = Session()
|
||||
+ sess.add_all([p3, p1, t1, t2, p2, t3])
|
||||
+
|
||||
t1.inputs.append(p1)
|
||||
t1.inputs.append(p2)
|
||||
t1.outputs.append(p3)
|
||||
@@ -240,8 +243,6 @@
|
||||
p2.inputs.append(t2)
|
||||
p3.inputs.append(t2)
|
||||
p1.outputs.append(t1)
|
||||
- sess = Session()
|
||||
- sess.add_all((t1, t2, t3, p1, p2, p3))
|
||||
sess.commit()
|
||||
|
||||
self.assert_result([t1],
|
||||
@@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
# py3 appears underdone,
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 eutils flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm hppa ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples firebird mssql mysql postgres +sqlite test"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
firebird? ( dev-python/kinterbasdb )
|
||||
mssql? ( dev-python/pymssql )
|
||||
mysql? ( dev-python/mysql-python )
|
||||
postgres? ( >=dev-python/psycopg-2 )
|
||||
sqlite? (
|
||||
>=dev-db/sqlite-3.3.13 )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-db/sqlite-3.3.13
|
||||
>=dev-python/nose-0.10.4[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.7-logging.handlers.patch" )
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -fr test/aaa_profiling
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" sqla_nose.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use doc; then
|
||||
pushd doc > /dev/null
|
||||
rm -fr build
|
||||
dohtml -r [a-z]* _images _static
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
# 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} pypy )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 eutils flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples +sqlite test"
|
||||
REQUIRED_USE="test? ( sqlite )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
sqlite? ( >=dev-db/sqlite-3.3.13 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-db/sqlite-3.3.13
|
||||
>=dev-python/nose-0.10.4[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -r test/aaa_profiling || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create copies of necessary files in BUILD_DIR.
|
||||
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3 --no-diffs -w test
|
||||
"${PYTHON}" sqla_nose.py -e test_reflect || die "Testsuite failed under ${EPYTHON}"
|
||||
else
|
||||
"${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
|
||||
fi
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/. )
|
||||
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
if ! has_version dev-python/mysql-python; then
|
||||
elog "For MySQL support, install dev-python/mysql-python"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/pymssql; then
|
||||
elog "For mssql support, install dev-python/pymssql"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/psycopg:2; then
|
||||
elog "For postgresql support, install dev-python/psycopg:2"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
# 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} pypy )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples +sqlite test"
|
||||
REQUIRED_USE="test? ( sqlite )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
)"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -r test/aaa_profiling || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create copies of necessary files in BUILD_DIR.
|
||||
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
|
||||
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3 --no-diffs -w test
|
||||
fi
|
||||
# Recently upstream elected to make the testsuite also pytest capable
|
||||
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
|
||||
py.test test || die "Testsuite failed under ${EPYTHON}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/. )
|
||||
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
if ! has_version dev-python/mysql-python; then
|
||||
elog "For MySQL support, install dev-python/mysql-python"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/pymssql; then
|
||||
elog "For mssql support, install dev-python/pymssql"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/psycopg:2; then
|
||||
elog "For postgresql support, install dev-python/psycopg:2"
|
||||
fi
|
||||
fi
|
||||
|
||||
elog "mysql backend support can be enabled by installing mysql-python for cpython py2.7 only,"
|
||||
elog "or mysql-connector-python for support of cpythons 2.7 3.3 and 3.4"
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
# 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} pypy )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples +sqlite test"
|
||||
REQUIRED_USE="test? ( sqlite )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
)"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -r test/aaa_profiling || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create copies of necessary files in BUILD_DIR.
|
||||
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
|
||||
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3 --no-diffs -w test
|
||||
fi
|
||||
# Recently upstream elected to make the testsuite also pytest capable
|
||||
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
|
||||
py.test test || die "Testsuite failed under ${EPYTHON}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/. )
|
||||
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
if ! has_version dev-python/mysql-python; then
|
||||
elog "For MySQL support, install dev-python/mysql-python"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/pymssql; then
|
||||
elog "For mssql support, install dev-python/pymssql"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/psycopg:2; then
|
||||
elog "For postgresql support, install dev-python/psycopg:2"
|
||||
fi
|
||||
fi
|
||||
|
||||
elog "mysql backend support can be enabled by installing mysql-python for cpython py2.7 only,"
|
||||
elog "or mysql-connector-python for support of cpythons 2.7 3.3 and 3.4"
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
# 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} pypy )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples +sqlite test"
|
||||
REQUIRED_USE="test? ( sqlite )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
)"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -r test/aaa_profiling || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create copies of necessary files in BUILD_DIR.
|
||||
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
|
||||
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3 --no-diffs -w test
|
||||
fi
|
||||
# Recently upstream elected to make the testsuite also pytest capable
|
||||
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
|
||||
py.test test || die "Testsuite failed under ${EPYTHON}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/. )
|
||||
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
if ! has_version dev-python/mysql-python; then
|
||||
elog "For MySQL support, install dev-python/mysql-python"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/pymssql; then
|
||||
elog "For mssql support, install dev-python/pymssql"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/psycopg:2; then
|
||||
elog "For postgresql support, install dev-python/psycopg:2"
|
||||
fi
|
||||
fi
|
||||
|
||||
elog "mysql backend support can be enabled by installing mysql-python for cpython py2.7 only,"
|
||||
elog "or mysql-connector-python for support of cpythons 2.7 3.3 and 3.4"
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
# 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} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Testscenarios, a pyunit extension for dependency injection"
|
||||
HOMEPAGE="https://launchpad.net/testscenarios"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/testtools[${PYTHON_USEDEP}] )"
|
||||
# dev-python/testresources[${PYTHON_USEDEP}]
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=./lib ${EPYTHON} -m testtools.run testscenarios.test_suite
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
# 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} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Testscenarios, a pyunit extension for dependency injection"
|
||||
HOMEPAGE="https://launchpad.net/testscenarios"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="dev-python/testtools[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=./lib ${EPYTHON} -m testtools.run testscenarios.test_suite
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Testscenarios, a pyunit extension for dependency injection"
|
||||
HOMEPAGE="https://launchpad.net/testscenarios"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/testtools[${PYTHON_USEDEP}]
|
||||
dev-python/testresources[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
# https://bugs.launchpad.net/testscenarios/+bug/1260573
|
||||
nosetests || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
DIST qwt-5.2.3.tar.bz2 1983725 SHA256 37feaf306753230b0d8538b4ff9b255c6fddaa3d6609ec5a5cc39a5a4d020ab7 SHA512 60545712790699b145a54baba4c40802d9a58bf5f68f997faed5027db6773a801097be8675e00b2af1de568e36e2e498db0a0310ac4877fd9f2b52871409dd49 WHIRLPOOL 01969f3e52c687b8db211c81c0865762fe908e49255f3517fc4731a8d3e6e1c738a8d18b8a43d8035314832693277cdc6303db2c5151be1385238812e6248ff6
|
||||
DIST qwt-6.0.0.tar.bz2 2723203 SHA256 d041d63029ea5f6a64d06be9bfe788e5d8bed8bac1fa129d82466aa09ab4092e SHA512 ccf662bebdef92581b14e5d0e4cf729f803c88345e9fcc7c2da0a64c55cc282386bf2eedc9bac948c74ca47b8453c7dfdeb2847b4d4cb9bdd6d1273875c6db12 WHIRLPOOL 4dee762cb956eb207f8d1fac0fc183e928783f0b1921ba87b216cf0d6dbaffa5231b902e608efaca4c9e17be92698ed2463e4c79d6306bfbd3056645143a0250
|
||||
DIST qwt-6.1.0.tar.bz2 3468850 SHA256 a7e3d9f1db917d186a973c5f04a316bc9607c7c35794d7a16de323aba5e17402 SHA512 5c5c8309debad1829cb59cf1c941b66306153a25b2027d674a2cfa5a150bfdd3823a1b6ed9df3b326bacc1dc7d1b6c301b1fd5bcebf7ff51cfa74b76a55f30bc WHIRLPOOL 590e0078c724c1df7e9f2705f8be08973b8ea8f8aa338f1e782946360dd88c04a6b0003971eb93a6321bdcc778d73d651ee3d4c512d318d846f69a9484963964
|
||||
DIST qwt-6.1.1.tar.bz2 3531116 SHA256 9ac2a7f1f699a24cbd4c69b0128ce387bdfa9ed93b689c0ff4387cbc11d7c17f SHA512 7205c618ff0562aab201c3e64d181ba958695afd409b41a51880e871161ce5c932b46c7eda8110779f4fcdfb6caade15b261e64cef62b9b67b58796615f2dba1 WHIRLPOOL a0c50f9c0ce71b058f18f1f776147e719110491ece4bb5ea92a4890218378122a292c02c4405e097f9a5c5a321194c341c2e8b0e8b3bbf2ddac07803c0b8cb4e
|
||||
DIST qwt-6.1.2.tar.bz2 3528935 SHA256 2b08f18d1d3970e7c3c6096d850f17aea6b54459389731d3ce715d193e243d0c SHA512 ddaf265890e493554639deae8b3ba3a1673bd6bcb4a7c47931d10aaab550646d103b28dccd3c2e4fdacd56a7963837c25ab02e27c71f891fee1801bcd45d54c0 WHIRLPOOL 575f8c3665ed8075278300f625bb9b321bd2c275573bd4c22cc1b833fde7fa38c36db027216d5da43839d9c70e0ed443327af2d54ac5a4dff3643c7abee16069
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils qt4-r2
|
||||
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
|
||||
DESCRIPTION="2D plotting library for Qt4"
|
||||
HOMEPAGE="http://qwt.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="qwt"
|
||||
KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 sparc x86 ~x86-macos"
|
||||
SLOT="6"
|
||||
IUSE="doc examples svg"
|
||||
|
||||
DEPEND="
|
||||
dev-qt/qtgui:4
|
||||
doc? ( !<media-libs/coin-3.1.3[doc] )
|
||||
svg? ( dev-qt/qtsvg:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
DOCS="CHANGES README"
|
||||
|
||||
src_prepare() {
|
||||
cat > qwtconfig.pri <<-EOF
|
||||
QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)"
|
||||
QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6"
|
||||
QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}"
|
||||
QWT_CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner
|
||||
VERSION = ${PV/_*}
|
||||
QWT_INSTALL_PLUGINS = "${EPREFIX}/usr/$(get_libdir)/qt4/plugins/designer6"
|
||||
QWT_INSTALL_FEATURES = "${EPREFIX}/usr/$(get_libdir)/qt4/features6"
|
||||
EOF
|
||||
|
||||
cat > qwtbuild.pri <<-EOF
|
||||
QWT_CONFIG += qt warn_on thread release no_keywords
|
||||
EOF
|
||||
|
||||
# don't build examples - fix the qt files to build once installed
|
||||
cat > examples/examples.pri <<-EOF
|
||||
include( qwtconfig.pri )
|
||||
TEMPLATE = app
|
||||
MOC_DIR = moc
|
||||
INCLUDEPATH += "${EPREFIX}/usr/include/qwt6"
|
||||
DEPENDPATH += "${EPREFIX}/usr/include/qwt6"
|
||||
LIBS += -lqwt
|
||||
EOF
|
||||
sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
|
||||
sed \
|
||||
-e 's/target doc/target/' \
|
||||
-i src/src.pro || die
|
||||
|
||||
# Renaming lib to libqwt6.so to enable slotting
|
||||
sed \
|
||||
-e "/^TARGET/s:qwt:qwt6:g" \
|
||||
-i src/src.pro || die
|
||||
sed \
|
||||
-e '/qtAddLibrary/s:qwt:qwt6:g' \
|
||||
-i qwt.prf designer/designer.pro || die
|
||||
sed \
|
||||
-e 's:libqwt:libqwt6:g' \
|
||||
-i qwtbuild.pri || die
|
||||
|
||||
use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri
|
||||
cp *.pri examples/ || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# split compilation to allow parallel building
|
||||
emake sub-src
|
||||
emake
|
||||
}
|
||||
|
||||
src_install () {
|
||||
rm -f doc/man/*/{_,deprecated}* || die
|
||||
qt4-r2_src_install
|
||||
if use doc; then
|
||||
dohtml -r doc/html/*
|
||||
fi
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multibuild qt4-r2
|
||||
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
|
||||
DESCRIPTION="2D plotting library for Qt4"
|
||||
HOMEPAGE="http://qwt.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="qwt mathml? ( LGPL-2.1 Nokia-Qt-LGPL-Exception-1.1 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
SLOT="6"
|
||||
IUSE="doc examples mathml static-libs svg"
|
||||
|
||||
DEPEND="
|
||||
!<x11-libs/qwt-5.2.3
|
||||
dev-qt/designer:4
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
doc? ( !<media-libs/coin-3.1.3[doc] )
|
||||
svg? ( dev-qt/qtsvg:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
DOCS="README"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-6.0.2-invalid-read.patch
|
||||
"${FILESDIR}"/${P}-pc-destdir.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cat > qwtconfig.pri <<-EOF
|
||||
QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)"
|
||||
QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6"
|
||||
QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}"
|
||||
QWT_CONFIG += QwtPlot QwtWidgets QwtDesigner QwtPkgConfig
|
||||
VERSION = ${PV/_*}
|
||||
QWT_VERSION = ${PV/_*}
|
||||
QWT_INSTALL_PLUGINS = "${EPREFIX}/usr/$(get_libdir)/qt4/plugins/designer"
|
||||
QWT_INSTALL_FEATURES = "${EPREFIX}/usr/share/qt4/mkspecs/features"
|
||||
EOF
|
||||
|
||||
use mathml && echo "QWT_CONFIG += QwtMathML" >> qwtconfig.pri
|
||||
use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri
|
||||
|
||||
cat > qwtbuild.pri <<-EOF
|
||||
QWT_CONFIG += qt warn_on thread release no_keywords
|
||||
EOF
|
||||
|
||||
sed \
|
||||
-e 's/target doc/target/' \
|
||||
-e "/^TARGET/s:(qwt):(qwt6):g" \
|
||||
-i src/src.pro || die
|
||||
|
||||
sed \
|
||||
-e '/qwtAddLibrary/s:(qwt):(qwt6):g' \
|
||||
-i qwt.prf designer/designer.pro examples/examples.pri \
|
||||
textengines/mathml/qwtmathml.prf textengines/textengines.pri || die
|
||||
|
||||
MULTIBUILD_VARIANTS=( )
|
||||
use static-libs && MULTIBUILD_VARIANTS+=( static )
|
||||
MULTIBUILD_VARIANTS+=( shared )
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
multibuild_copy_sources
|
||||
preparation() {
|
||||
[[ ${MULTIBUILD_VARIANT} == shared ]] && \
|
||||
echo "QWT_CONFIG += QwtDll" >> "${BUILD_DIR}"/qwtconfig.pri
|
||||
}
|
||||
|
||||
multibuild_foreach_variant preparation
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_parallel_foreach_variant run_in_build_dir qt4-r2_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant run_in_build_dir qt4-r2_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
cd examples || die
|
||||
eqmake4 examples.pro
|
||||
emake
|
||||
}
|
||||
multibuild_foreach_variant run_in_build_dir testing
|
||||
}
|
||||
|
||||
src_install () {
|
||||
rm -f doc/man/*/{_,deprecated}* || die
|
||||
multibuild_foreach_variant run_in_build_dir qt4-r2_src_install
|
||||
|
||||
use doc && dohtml -r doc/html/*
|
||||
|
||||
if use examples; then
|
||||
# don't build examples - fix the qt files to build once installed
|
||||
cat > examples/examples.pri <<-EOF
|
||||
include( qwtconfig.pri )
|
||||
TEMPLATE = app
|
||||
MOC_DIR = moc
|
||||
INCLUDEPATH += "${EPREFIX}/usr/include/qwt6"
|
||||
DEPENDPATH += "${EPREFIX}/usr/include/qwt6"
|
||||
LIBS += -lqwt6
|
||||
EOF
|
||||
sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
|
||||
cp *.pri examples/ || die
|
||||
insinto /usr/share/${PN}6
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
||||
@@ -8,7 +8,7 @@ inherit eutils multibuild multilib qmake-utils
|
||||
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
|
||||
DESCRIPTION="2D plotting library for Qt4"
|
||||
DESCRIPTION="2D plotting library for Qt4 and Qt5"
|
||||
HOMEPAGE="http://qwt.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
|
||||
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multibuild qt4-r2
|
||||
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
|
||||
DESCRIPTION="2D plotting library for Qt4"
|
||||
HOMEPAGE="http://qwt.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="qwt mathml? ( LGPL-2.1 Nokia-Qt-LGPL-Exception-1.1 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
SLOT="6"
|
||||
IUSE="doc examples mathml opengl static-libs svg"
|
||||
|
||||
DEPEND="
|
||||
!<x11-libs/qwt-5.2.3
|
||||
dev-qt/designer:4
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
doc? ( !<media-libs/coin-3.1.3[doc] )
|
||||
opengl? (
|
||||
dev-qt/qtopengl:4
|
||||
virtual/opengl
|
||||
)
|
||||
svg? ( dev-qt/qtsvg:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
DOCS="README"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-6.0.2-invalid-read.patch
|
||||
"${FILESDIR}"/${PN}-6.1.1-pc-destdir.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cat > qwtconfig.pri <<-EOF
|
||||
QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)"
|
||||
QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6"
|
||||
QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}"
|
||||
QWT_CONFIG += QwtPlot QwtWidgets QwtDesigner QwtPkgConfig
|
||||
VERSION = ${PV/_*}
|
||||
QWT_VERSION = ${PV/_*}
|
||||
QWT_INSTALL_PLUGINS = "${EPREFIX}/usr/$(get_libdir)/qt4/plugins/designer"
|
||||
QWT_INSTALL_FEATURES = "${EPREFIX}/usr/share/qt4/mkspecs/features"
|
||||
EOF
|
||||
|
||||
use mathml && echo "QWT_CONFIG += QwtMathML" >> qwtconfig.pri
|
||||
use opengl && echo "QWT_CONFIG += QwtOpenGL" >> qwtconfig.pri
|
||||
use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri
|
||||
|
||||
cat > qwtbuild.pri <<-EOF
|
||||
QWT_CONFIG += qt warn_on thread release no_keywords
|
||||
EOF
|
||||
|
||||
sed \
|
||||
-e 's/target doc/target/' \
|
||||
-e "/^TARGET/s:(qwt):(qwt6):g" \
|
||||
-i src/src.pro || die
|
||||
|
||||
sed \
|
||||
-e '/qwtAddLibrary/s:qwt):qwt6):g' \
|
||||
-i qwt.prf designer/designer.pro examples/examples.pri \
|
||||
textengines/mathml/qwtmathml.prf textengines/textengines.pri \
|
||||
designer/designer.pro || die
|
||||
|
||||
MULTIBUILD_VARIANTS=( )
|
||||
use static-libs && MULTIBUILD_VARIANTS+=( static )
|
||||
MULTIBUILD_VARIANTS+=( shared )
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
multibuild_copy_sources
|
||||
preparation() {
|
||||
[[ ${MULTIBUILD_VARIANT} == shared ]] && \
|
||||
echo "QWT_CONFIG += QwtDll" >> "${BUILD_DIR}"/qwtconfig.pri
|
||||
}
|
||||
|
||||
multibuild_foreach_variant preparation
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_parallel_foreach_variant run_in_build_dir qt4-r2_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant run_in_build_dir qt4-r2_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
cd examples || die
|
||||
eqmake4 examples.pro
|
||||
emake
|
||||
}
|
||||
multibuild_foreach_variant run_in_build_dir testing
|
||||
}
|
||||
|
||||
src_install () {
|
||||
rm -f doc/man/*/{_,deprecated}* || die
|
||||
multibuild_foreach_variant run_in_build_dir qt4-r2_src_install
|
||||
|
||||
if use mathml; then
|
||||
sed \
|
||||
-e "s: -L${WORKDIR}.* -lqwt6: -lqwt6:g" \
|
||||
-i "${ED}"/usr/$(get_libdir)/pkgconfig/qwtmathml.pc || die
|
||||
fi
|
||||
|
||||
use doc && dohtml -r doc/html/*
|
||||
|
||||
if use examples; then
|
||||
# don't build examples - fix the qt files to build once installed
|
||||
cat > examples/examples.pri <<-EOF
|
||||
include( qwtconfig.pri )
|
||||
TEMPLATE = app
|
||||
MOC_DIR = moc
|
||||
INCLUDEPATH += "${EPREFIX}/usr/include/qwt6"
|
||||
DEPENDPATH += "${EPREFIX}/usr/include/qwt6"
|
||||
LIBS += -lqwt6
|
||||
EOF
|
||||
sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
|
||||
cp *.pri examples/ || die
|
||||
insinto /usr/share/${PN}6
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user