Hello community, here is the log from the commit of package python-South for openSUSE:Factory checked in at 2014-07-24 06:58:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-South (Old) and /work/SRC/openSUSE:Factory/.python-South.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-South" Changes: -------- --- /work/SRC/openSUSE:Factory/python-South/python-South.changes 2014-03-15 07:47:57.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-South.new/python-South.changes 2014-07-24 06:58:57.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Jul 23 10:44:04 UTC 2014 - mci...@suse.cz + +- Update to version 1.0: + + Last release to support migration to Django native migrations + +------------------------------------------------------------------- Old: ---- South-0.8.4.tar.gz New: ---- South-1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-South.spec ++++++ --- /var/tmp/diff_new_pack.MdmmjN/_old 2014-07-24 06:58:58.000000000 +0200 +++ /var/tmp/diff_new_pack.MdmmjN/_new 2014-07-24 06:58:58.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-South -Version: 0.8.4 +Version: 1.0 Release: 0 Url: http://south.aeracode.org/ Summary: South: Migrations for Django ++++++ South-0.8.4.tar.gz -> South-1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/South-0.8.4/PKG-INFO new/South-1.0/PKG-INFO --- old/South-0.8.4/PKG-INFO 2013-11-21 11:39:01.000000000 +0100 +++ new/South-1.0/PKG-INFO 2014-07-01 09:01:07.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: South -Version: 0.8.4 +Version: 1.0 Summary: South: Migrations for Django Home-page: http://south.aeracode.org/ Author: Andrew Godwin & Andy McCurdy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/South-0.8.4/South.egg-info/PKG-INFO new/South-1.0/South.egg-info/PKG-INFO --- old/South-0.8.4/South.egg-info/PKG-INFO 2013-11-21 11:39:01.000000000 +0100 +++ new/South-1.0/South.egg-info/PKG-INFO 2014-07-01 09:01:07.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: South -Version: 0.8.4 +Version: 1.0 Summary: South: Migrations for Django Home-page: http://south.aeracode.org/ Author: Andrew Godwin & Andy McCurdy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/South-0.8.4/south/__init__.py new/South-1.0/south/__init__.py --- old/South-0.8.4/south/__init__.py 2013-11-21 11:38:28.000000000 +0100 +++ new/South-1.0/south/__init__.py 2014-07-01 09:00:28.000000000 +0200 @@ -2,7 +2,7 @@ South - Useable migrations for Django apps """ -__version__ = "0.8.4" +__version__ = "1.0" __authors__ = [ "Andrew Godwin <and...@aeracode.org>", "Andy McCurdy <a...@andymccurdy.com>" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/South-0.8.4/south/db/__init__.py new/South-1.0/south/db/__init__.py --- old/South-0.8.4/south/db/__init__.py 2013-08-09 16:41:11.000000000 +0200 +++ new/South-1.0/south/db/__init__.py 2014-01-23 13:50:43.000000000 +0100 @@ -23,6 +23,7 @@ 'doj.backends.zxjdbc.postgresql': 'postgresql_psycopg2', #django-jython 'doj.backends.zxjdbc.mysql': 'mysql', #django-jython 'doj.backends.zxjdbc.oracle': 'oracle', #django-jython + 'mysql.connector.django': 'mysql', # MySQL Connector/Python } # First, work out if we're multi-db or not, and which databases we have diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/South-0.8.4/south/migration/base.py new/South-1.0/south/migration/base.py --- old/South-0.8.4/south/migration/base.py 2012-12-08 21:59:20.000000000 +0100 +++ new/South-1.0/south/migration/base.py 2014-07-01 08:45:25.000000000 +0200 @@ -138,7 +138,15 @@ if app_label in settings.SOUTH_MIGRATION_MODULES: # There's an override. return settings.SOUTH_MIGRATION_MODULES[app_label] - return self._application.__name__ + '.migrations' + # We see if the south_migrations module exists first, and + # use that if we find it. + module_name = self._application.__name__ + '.south_migrations' + try: + importlib.import_module(module_name) + except ImportError: + return self._application.__name__ + '.migrations' + else: + return module_name def get_application(self): return self._application diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/South-0.8.4/south/migration/migrators.py new/South-1.0/south/migration/migrators.py --- old/South-0.8.4/south/migration/migrators.py 2013-11-21 11:34:02.000000000 +0100 +++ new/South-1.0/south/migration/migrators.py 2014-07-01 08:43:13.000000000 +0200 @@ -31,7 +31,7 @@ def print_title(self, target): if self.verbosity: print(self.title(target)) - + @staticmethod def status(target): raise NotImplementedError() @@ -99,7 +99,7 @@ except: print("Error during commit in migration: %s" % migration) raise - + def run(self, migration, database): # Get the correct ORM. @@ -161,7 +161,8 @@ if self.verbosity: print(" - Migration '%s' is marked for no-dry-run." % migration) return - south.db.db.dry_run = True + for name, db in south.db.dbs.iteritems(): + 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) if self._ignore_fail: @@ -180,7 +181,8 @@ if self._ignore_fail: south.db.db.debug = old_debug south.db.db.clear_run_data(pending_creates) - south.db.db.dry_run = False + for name, db in south.db.dbs.iteritems(): + south.db.dbs[name].dry_run = False # restore the preserved constraint cache from before dry run was # executed south.db.db._constraint_cache = constraint_cache -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org