From: Michał Górny Date: Mon, 14 Aug 2017 21:23:21 +0000 (+0200) Subject: dev-python/south: Remove last-rited pkg, #482498 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=3200b8c5587d511b6c9574319acf29a52716e780;p=gentoo.git dev-python/south: Remove last-rited pkg, #482498 --- diff --git a/dev-python/south/Manifest b/dev-python/south/Manifest deleted file mode 100644 index 5ff5118eb43a..000000000000 --- a/dev-python/south/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST south-1.0.tar.gz 97890 SHA256 017ecc2d66818580e1131af61b8d96901c4a2d05b051186196d9d4f35bdbb901 SHA512 8f181e8879734ddc3bba4e6f9e0efc3d4db4783fbd629c56c4f72401d161080bed51e3955bc37b7796160145c733321f356c63aece22da752695fc3e24c9b90b WHIRLPOOL 8f7949c96394906a53ecfcedcbe3c9b9fdae32db4c28fb7f507c8529fc586947021eebee259b5caab5a03550a4003b0d8aed9a1f6bcc658fb1b48dbdd64ddf6f diff --git a/dev-python/south/files/south-1.0-3753b49c-Replace-dict.iteritems-with-six.patch b/dev-python/south/files/south-1.0-3753b49c-Replace-dict.iteritems-with-six.patch deleted file mode 100644 index 07c50edabce3..000000000000 --- a/dev-python/south/files/south-1.0-3753b49c-Replace-dict.iteritems-with-six.patch +++ /dev/null @@ -1,60 +0,0 @@ -# HG changeset patch -# User Gary Wilson Jr. -# Date 1397849538 18000 -# Branch python3-iteritems -# Node ID 3753b49ca9f3d34c94156622b380def245d88e80 -# Parent 0e17add9b5e0f30f7cf5acf47961eea6a7f4032c -Fixed a Python 3 incompatibility by replacing dict.iteritems() usage with an iteritems py3 util function from six. - -diff --git a/south/migration/migrators.py b/south/migration/migrators.py ---- a/south/migration/migrators.py -+++ b/south/migration/migrators.py -@@ -16,7 +16,7 @@ - from south.db import DEFAULT_DB_ALIAS - from south.models import MigrationHistory - from south.signals import ran_migration --from south.utils.py3 import StringIO -+from south.utils.py3 import StringIO, iteritems - - - class Migrator(object): -@@ -161,7 +161,7 @@ - if self.verbosity: - print(" - Migration '%s' is marked for no-dry-run." % migration) - return -- for name, db in south.db.dbs.iteritems(): -+ for name, db in iteritems(south.db.dbs): - south.db.dbs[name].dry_run = True - # preserve the constraint cache as it can be mutated by the dry run - constraint_cache = deepcopy(south.db.db._constraint_cache) -@@ -181,7 +181,7 @@ - if self._ignore_fail: - south.db.db.debug = old_debug - south.db.db.clear_run_data(pending_creates) -- for name, db in south.db.dbs.iteritems(): -+ for name, db in iteritems(south.db.dbs): - south.db.dbs[name].dry_run = False - # restore the preserved constraint cache from before dry run was - # executed -diff --git a/south/utils/py3.py b/south/utils/py3.py ---- a/south/utils/py3.py -+++ b/south/utils/py3.py -@@ -26,3 +26,18 @@ - def with_metaclass(meta, base=object): - """Create a base class with a metaclass.""" - return meta("NewBase", (base,), {}) -+ -+ -+def _add_doc(func, doc): -+ """Add documentation to a function.""" -+ func.__doc__ = doc -+ -+if PY3: -+ def iteritems(d, **kw): -+ return iter(d.items(**kw)) -+else: -+ def iteritems(d, **kw): -+ return iter(d.iteritems(**kw)) -+ -+_add_doc(iteritems, -+ "Return an iterator over the (key, value) pairs of a dictionary.") diff --git a/dev-python/south/metadata.xml b/dev-python/south/metadata.xml deleted file mode 100644 index b6ed7ca15fc2..000000000000 --- a/dev-python/south/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - python@gentoo.org - Python - - - south - - diff --git a/dev-python/south/south-1.0.ebuild b/dev-python/south/south-1.0.ebuild deleted file mode 100644 index c37f7b98f081..000000000000 --- a/dev-python/south/south-1.0.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_4 pypy ) - -inherit distutils-r1 - -MY_PN="South" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Intelligent schema migrations for Django apps" -HOMEPAGE="http://south.aeracode.org/" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="test" - -RDEPEND=" /dev/null - sed -i \ - -e "/^INSTALLED_APPS/a\ 'south'," \ - southtest/settings.py || die "sed failed" - echo "SKIP_SOUTH_TESTS=False" >> southtest/settings.py - "${EPYTHON}" manage.py test south || die "tests failed for ${EPYTHON}" - popd > /dev/null -} - -pkg_postinst() { - elog "In order to use the south schema migrations for your Django project," - elog "just add 'south' to your INSTALLED_APPS in the settings.py file." - elog "manage.py will now automagically offer the new functions." -} diff --git a/profiles/package.mask b/profiles/package.mask index b7e555ef272b..1b24e7ff9e93 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -248,11 +248,6 @@ sci-chemistry/icm # Fix is work in progress, see above bug. dilfridge@g.o net-vpn/kvpnc -# Pacho Ramos (14 Jul 2017) -# Doesn't work with any django version in the tree, tests fail, removal in a -# month (#482498). -dev-python/south - # Pacho Ramos (14 Jul 2017) # Doesn't compile, upstream dead, removal in 2 months (#584296). dev-util/mutrace