diff -Nru migrate-0.12.0/AUTHORS migrate-0.13.0/AUTHORS --- migrate-0.12.0/AUTHORS 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/AUTHORS 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,65 @@ +Alex Favaro +Andreas Jaeger +Anusree +Bob Farrell +Brant Knudson +Chih-Hsuan Yen +Chris Withers +Corey Bryant +Cyril Roelandt +Dan Prince +David Ripton +Domen Kožar +Dustin J. Mitchell +Eric Harney +Gabriel +Haikel Guemar +Ihar Hrachyshka +Jan Dittberner +Jan Dittberner +Jan Dittberner +Jason Michalski +Jeremy Stanley +Jonathan Herlin +Josip Delic +Longgeek +Matt Riedemann +Matt Riedemann +Mike Bayer +Monty Taylor +Nicola Soranzo +Pete Keen +Peter Conerly +Pádraig Brady +Pádraig Brady +Qin Zhao +Rahul Priyadarshi +Rick Copeland +Roman Podoliaka +Roman Podolyaka +Sascha Peilicke +Sascha Peilicke +Sean Dague +Sean Dague +Sean Mooney +Sheng Bo Hou +Thomas Goirand +Thomas Goirand +Thuy Christenson +Tony Breeds +Victor Stinner +Yuval Langer +al.yazdi@gmail.com +asuffield@gmail.com +ches.martin +christian.simms +chrisw +dineshbhor +emil.kroymann +hudson@fubarite.fubar.si +iElectric +jan.dittberner +markbmc@gmail.com +percious17 +root@fubarite.fubar.si +wyuenho@gmail.com diff -Nru migrate-0.12.0/bindep.txt migrate-0.13.0/bindep.txt --- migrate-0.12.0/bindep.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/bindep.txt 2019-10-22 21:14:37.000000000 +0000 @@ -0,0 +1,16 @@ +# This is a cross-platform list tracking distribution packages needed for install and tests; +# see https://docs.openstack.org/infra/bindep/ for additional information. + +# NOTE(mriedem): This list is woefully incomplete but is just listing mysql +# and postgresql binary dependencies to make tools/test-setup.sh work. + +libmysqlclient-dev [platform:dpkg] +libpq-dev [platform:dpkg test] +mysql [platform:rpm] +mysql-client [platform:dpkg] +mysql-devel [platform:rpm test] +mysql-server +postgresql +postgresql-client [platform:dpkg] +postgresql-devel [platform:rpm test] +postgresql-server [platform:rpm] diff -Nru migrate-0.12.0/ChangeLog migrate-0.13.0/ChangeLog --- migrate-0.12.0/ChangeLog 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/ChangeLog 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,583 @@ +CHANGES +======= + +0.13.0 +------ + +* remove inspect.getargspec deprecation warning +* Use engine.connect(); don't use private \_run\_visitor method +* Claim support for python 3.6 +* Claim support for python 3.5 +* Remove test-requirements-py\*.txt files +* Add bindep support +* Remove py26 tox targets +* Import zuul jobs +* Fix docs build +* OpenDev Migration Patch + +0.12.0 +------ + +* Change title in README.rst +* Don't use deprecated / non-functional "force" parameter +* Use mysqlclient +* Use legacy\_alter\_table ON in sqlite recreate\_table +* Remove py26 support +* Add .eggs in .gitignore +* Import MutableMapping from the correct Python module +* Update mailinglist from dev to discuss +* Get rid of psycopg2 warnings by disabling wheels +* Enforce that pbr used is >= 1.8 + +0.11.0 +------ + +* Use a modern PBR package +* Prepare for using standard python tests +* Fix spelling mistake +* Set autoincrement to False when modifying to non-Integer datatype +* Raise VersionNotFoundError instead of KeyError +* Fix DeprecationWarning on setuptools >= 11.3 +* Update .gitreview for new namespace + +0.10.0 +------ + +* Update URLs in documentation +* Add VerNum.\_\_index\_\_() for Python 3 support +* Fixes usage function for Py3 +* Unblock migrate (py26 and py3\* testing issues) + +0.9.7 +----- + +* Revert "Revert "uncap pbr and sqla requirements"" +* Update flake8 related dependencies +* Revert "uncap pbr and sqla requirements" +* uncap pbr and sqla requirements +* Update tests and reqs for SQLA 1.0 +* Ignore stderr output when invoking migrate script in tests +* Add Python 3 classifiers + +0.9.6 +----- + +* Fix ibmdb2 index name handling + +0.9.5 +----- + +* Don't run the test if \_setup() fails +* Correcting minor typo +* Fix .gitignore for .tox and .testrepository +* allow dropping fkeys with sqlite +* Add pretty\_tox setup +* script: strip comments in SQL statements + +0.9.4 +----- + +* Remove svn version tag setting + +0.9.3 +----- + +* Ignore transaction management statements in SQL scripts +* Use native sqlalchemy 0.9 quote attribute with ibmdb2 +* Don't add warnings filter on import +* Replace assertNotEquals with assertNotEqual +* Update requirements file matching global requ +* Work toward Python 3.4 support and testing +* pep8: mark all pep8 checks that currently fail as ignored + +0.9.2 +----- + +* SqlScript: execute multiple statements one by one +* Make sure we don't throw away exception on SQL script failure +* Pin testtools to < 0.9.36 +* Fix ibmdb2 unique constraint handling for sqlalchemy 0.9 +* Fixes the auto-generated manage.py + +0.9.1 +----- + +* Move patch from oslo to drop unique constraints with sqlite +* Port to Python3 +* tests: Replace "self.assert\_" by "self.assertTrue" + +0.9 +--- + +* turn on testing for sqla 0.9 +* Replace AbstractType by TypeEngine +* fix scripttest compat +* Use native quote attribute introduced in sqla 0.9 +* Fix genmodel for SQLA 0.9 +* Conditionally import ibmdb2/ibm\_db\_sa +* migrate needs subunit >= 0.0.18 +* UniqueConstraint named and escaped twice +* Fix 3 files with Windows line endings to Unix line endings +* Eradicate trailing whitespace +* Convert tabs to spaces in a couple of rst files + +0.8.4 +----- + + +0.8.5 +----- + +* uncap SQLA in requirements.txt +* Add DB2 10.5 Support +* Sync with global requirements +* Fix broken development version link in README + +0.8.2 +----- + +* Un-break the version in migrate/\_\_init\_\_.py +* Fix the version number to match the last release + +0.8.1 +----- + +* Remove the tag\_build line from setup.cfg +* Drop setuptools\_git test requirement + +0.8 +--- + +* Fix int overflow exception in unittest +* Fix dropping of indexed columns in sqlite/sa08 +* Run tests on PostgreSQL and MySQL too +* Update tox requirements +* Stop using the d2to1-based pbr +* decouple index name generation from sqlalchemy version +* Run tests with different SQLAlchemy versions +* Add a workaround for pytz and pip>=1.4 +* Add a reqs files for RTFD +* Fix exceptions for SQLAlchemy 0.8 +* added bugfixes for 0.8 +* Updated to OpenStack Build stuff +* Removed hg and google code references +* Initial changes to import into StackForge +* update changelog +* fix error, Text columns have no width +* fix deprecation warning by using MetaData.reflect +* update credits and changelog +* Import correct exceptions module (Fixes issue 154) +* update changelog and credits +* apply patch for issue #72 by asuffield@gmail.com +* update changelog and credits +* Fix excludeTablesgetDiffOfModelAgainstModel is not passing excludeTables correctly +* start next development iteration +* Added signature for changeset ad06c76fc174 +* tag for release 0.7.2 + +0.7.2 +----- + +* finalize changelog for 0.7.2 +* add credits for contributors +* bump SQLAlchemy dependency to >= 0.6 add build-req.pip with build requirements +* update changelog fix issue numbers (use trac issue prefix for pre 0.3 versions) +* add glossary update documentation meta data, rewrap index.rst +* add more developer related information +* rewrap README +* update sqlalchemy documentation links use explicit code-block markup +* update intersphinx configuration, add sphinxcontrib.issuetracker configuration +* ignore vim swap files and docs/\_static +* document adding/droping columns (fixes issue 104) +* PEP-8 compliant script templates +* add regression test (fixes issue 105) +* fix issues with ConfigParser and existing repositories (fixes issue 115) +* give credits to Benoît Allard +* remove obsolete manage.py\_tmpl (related to issue 121) +* update changelog (add issue 121 bugfix) +* generate if \_\_name\_\_ == "\_\_main\_\_" in manage.py (fixes issue 121) +* update changelog (include #125 fix) +* merge e5bd2821eea8 from https://code.google.com/r/alyazdi-patches/ (fixes issue 125) +* update changelog +* merge fixes by wyenho +* drop SQLAlchemy < 0.6 compatibility code +* ignore PyCharm project files +* fix SQLAlchemy 0.6.x compatibility of issue 128 patch +* update changelog (drop support for SQLAlchemy 0.5.x, Python 2.4 and 2.5) +* fix issue 128: "table rename failure with sqlalchemy 0.7.x" +* changelog updates +* Fix for issue #125, create the table on the same connection as the ALTER and INSERT happen +* fixed issue 129 +* fixed issue 83 +* remove unused import +* Fix issue 124: ignore sqlite\_sequence in comparing db to model +* Use two models in generated migrations. Test column addition and removal +* Put constraints (positional) before args (keywords) +* Output has changed even without the SQLa patch, update #122 tests +* Fix and test issue 118. Clarify genmodel transformations +* Fix column creation in make\_update\_script\_for\_model +* More concise declarative output +* More pep8 compliant declarative output +* Fix some tests that broke when adding descriptions for sql scripts +* Allow descriptions in sql change script filenames +* Optionally number versions with timestamps instead of sequences +* start next development iteration +* Added signature for changeset fbb2817a1e3f +* Added tag v0.7.1 for changeset fbb2817a1e3f + +0.7.1 +----- + +* Added signature for changeset 35038c66152b +* set migrate.\_\_version\_\_ to 0.7.1 +* finalize changelog for 0.7.1 +* fix issue tracking and source code URLs +* fix column.create() properly +* start next development iteration +* Release 0.7 + +0.7 +--- + +* update version number in docs/conf.py +* add migrate.\_\_version\_\_ (Fixes issue 111) +* update changelog and version information +* bump version number to 0.7 to indicate SQLA 0.7 compatibility +* no special treatment for SQLA 0.7 required in migrate.changeset.ansisql +* remove commented code +* fix unit test for adding new columns with foreign keys +* use DatabaseError instead of ProgrammingError because behaviour seems to be database dependent (addresses issue 122) +* table.drop() raises ProgrammingError in SQLAlchemy 0.7 instead of SQLError (addresses #112) +* SQLAlchemy 0.7's column.foreign\_keys is a set and has no \_list (addresses #112) +* use proper encoding instead of True (addresses #112) +* fix one more test (addresses #112) +* use Table.\_columns to remove columns (addresses #112) +* psycopg2 downloads from initrd.org work without workaround +* add Developing with migrations tutorial link +* merge +* add elixir tutorial to docs +* start next iteration +* update version in docs/conf.py +* Added tag v0.6.1 for changeset c2526dce0768 + +0.6.1 +----- + +* finalize changelog for 0.6.1 +* Bring back alter\_metadata on ColumnDelta: it seems intertwined with a lot of the tests. So, it's a private API now.. +* try to get firebird stuff working with 0.6.6 +* remove the alter\_metadata feature +* work around firebird's insistence that indexes and constraints are dropped before columns that are references by them +* fix sqlite column dropper now that the table is only modified after the visitor is run +* firebird can only drop named foreign keys +* These drop indexes appear to only be for firebird. Once firebird is fixed, they're not needed +* Only alter the SA objects after running the visitor, so the visitor may inspect +* fix py2.4 and py2.5 +* merge +* use mirrored copy of kinterbasedb to cope with SourceForge reliability problems +* fixes #107 +* fixes #106 +* fixes #105 +* merge +* adding faq section to docs +* make migrate.changeset.constraint.ForeignKeyConstraint.autoname work with SQLAlchemy 0.5 and 0.6 +* use \_index\_identifier instead of \_validate\_identifier if \_validate\_identifier does not exist in migrate/changeset/ansisql.py +* use absolute imports of exception classes (fixes tests) +* fix generation of foreign key constraint name in migrate.changeset.constraint.ForeignKeyConstraint.autoname +* merge +* update changelog +* implement column type diff'ing +* update changelog +* fixed #92 +* restore missing table header for column diffs +* rewrite of schemadiff internals +* preserve the original stack strace +* don't stop if one db fails, run for all so we can tell how badly things went wrong on Hudson +* remove reference to ficticious command +* clear out the test db for each test, making tests more isolated +* for when logging is just annoying ;-) +* silence logger that SA adds +* give better feedback when errors occur in \_setup or \_teardown +* quit screwing with the testing frameworks.. +* update feature matrix +* correct change log structure +* Fix issue 94 - it was impossible to add a column with a non-unique index +* implement column adding with foreign keys on sqlite +* Fix bug with column dropping involving foreign keys. Bonus: remove\_from\_table now understands foreign keys +* fix for issue 96: deleting a column in sqlite shouldn't delete all indexes bonus: remove\_from\_table now removes indexes +* another py2.4 fixture +* dammit! +* attempt at improving the api docs a little +* improve docs +* hopefully fix test failures +* another Py2.4 fix +* fix docs +* another attempt to get around the initd.org problems +* looks like init.org might be back +* disable psycopg install while initd.org is offline +* silence console output +* hopefully make py2.4 compatible +* - capture deprecation warnings and assert they re as they should be - re-word alter\_column deprecation warning to make more sense +* remove default of dropping on pdb on test error or failure +* fix last exception import +* move all exception classes to migrate.exceptions +* update todo and test-req.pip +* use if main conditional in manage.py script +* correct case for dependencies in setup.py +* fixes issue #88 +* merge +* fix tests on python2.7 +* bump version to 0.6.1 to indicate that trunk is newer than release 0.6 +* exclude .hgtags from release tarballs +* merge +* update TODO +* link to mercurial instead of SVN +* fix links in doc +* update sphinx config +* Added signature for changeset 65742e996d94 +* Added tag v0.6 for changeset cb01bf174b05 + +0.6 +--- + +* update changelog +* small doc correction; fixes #67 +* merge +* better document summary of changeset actions +* adding connection keyword to ORM methods +* use migrate.tests.\* instead of tests.\* in find\_packages argument +* use stdout for logging.INFO and lower; for the rest use stderr +* fix deprecation warning when using old script synta +* update README and fix last bugs +* add documentation generation date +* add MIT licence file +* changed documentation layout +* add descriptions of modules in docs +* change dialect table from ugly format to list table +* restructure changelog and minor modifications to documentation +* log database name when running tests; firebug does not support DROP CONSTRAINT CASCADE +* remove test dependencies information from setup.py +* found that bugger. ScriptTest 1.0.1 removes the functonality we need. rollback to 1.0 +* fix SA06 compatibility in tests +* fix unittests +* move to unittest2, update README for testing instructions +* update test-req.pip +* merge with https://robertanthonyfarrell-0point6-release-patches.googlecode.com/hg/ +* move tests/ directory into migrate/tests (much better form) and fix all import lines and other minor issues +* note about scripttest==1.0.1 +* remove debug output and swearing +* make tests use a virtualenv for 'migrate' shell command +* change print statements to log.info +* add more recent version of kinterbadb due to soureforge not being maintained anymore. Thanks btami\! +* add firebird to test\_db.cfg.tmpl; fix bug when dropping a column in firebird: also drop related constraint or index +* revert 2688cdb980 +* update setup.py +* run shell diff tests with correct environment +* debugging fix +* skip runpy tests on python2.4 +* fix SA05 tests for autoincrement diff +* fix MySQL failing tests with autoincrement +* docs link correction +* SA06 tests fix, thanks to Mike Bayer +* unified warnings, use compare columns in tests +* move warning exceptions to right module +* update documenatation +* deprecate two columns alter +* update postgres url name +* fix python2.4 error +* update TODO +* added 0.6 TODO, all api now uses engine.dispose() to handle pool correctly +* add pysqlite for test dep +* removing mx.DateTime from test deps because pip crashes +* add mx.DateTime to test dep +* add mysql driver test deps +* change test\_db database name to more verbose name +* partly fix SA0.6 tests on postgres +* fix docs +* fix documentation meta.bind(engine) -> meta.bind = engine; thanks mvt +* add .coverage and test\_db.cfg to .hgignore +* more import fixes +* fixing models import +* rename test package to tests (problems with pytest dist) +* eliminate unicode usage at help +* last but not least SA06 test fixes +* more SA06 fixes +* SA06 fixes +* adding test-requirements.pip for running tests +* updating MANIFEST.in, fixing virtualenv tests usage, 2 failed tests +* apply Emil Kroymann's patch for Issue 75 +* apply patch by Jason Newton +* remove bad reference to migrate\_engine +* Add table declarations for tables with diff +* Add support for ALTER TABLE add/drop columns in make\_update\_script\_for\_model +* adding sql\_script template customizations, removing unneeded imports, updating docs +* merge +* remove versioning.base in favor of versioning.config +* removing deprecated logger module +* fix small bug introduced in last commit, add description to migrate help +* we are using Tempita for templates; adding most basic pylons template +* add option to customize templates and use multiple themes +* applying patch for issue #61 by Michael Bayer +* add disable\_logging option +* use logging module for output, fixes #26 +* add tests for plain API, fixed some small bugs +* separating test\_shell and test\_api, replacing shell hacks with ScriptTest +* add populate\_default kwarg to column.create, fixes issue #50 +* adding .hgignore +* convert svn to hg +* applying patch for issue #60 from entequak +* add support for SA 0.6 by Michael Bayer +* removing old changelog +* change dev location +* update changelog internal links +* updated changeset documentation, added alter\_metadata to all schema classes +* add not supported exceptions for sqlite constraints +* always return delta when using alter constructs +* - completely refactored ColumnDelta to extract differences between columns/parameters (also fixes issue #23) - fixed some bugs (passing server\_default) on column.alter - updated tests, specially ColumnDelta and column.alter - introduced alter\_metadata which can preserve altering existing objects if False (defaults to True) - updated documentation +* adding basic support for firebird, fixes #55 +* finally, tests pass for all supported dialects +* add ability to download development version from pypi +* fix syntax error +* some more PEP8 love +* fix bug when initializing CheckConstraint +* updated changeset tests. whole package is finally PEP8. fixed mysql tests&bugs. updated docs where apropriate. changeset test coverage almost at 100% +* - refactor migrate.changeset; - visitors are refactored to be more unified - constraint module is refactored, CheckConstraint is added - documentation is partialy updated, dialect support table is added (unfinished) - test\_constraint was updated NOTE: oracle and mysql were not tested, \*may be broken\* +* update docs, delete obsolete code in constraints +* update documentation +* removed magical behavior with importing migrate\_engine, now engine is passed to upgrade/downgrade functions +* use sqlalchemy preparer to do SQL quote formatting. this is a raw change, tests are yet to be written +* lipstick changes +* update tests for schema, refactor a bit +* update README, add docs to repository.py and schema.py +* fix setup.py +* updated migrate.versioning.repository tests and docs, update README +* update tests and docs for migrate.versioning.script.\* +* change isinstance(obj, (str, unicode)) to isinstance(obj, basestring) as suggested by Piotr Ożarowski +* start work on 0.5.5 +* add changelog, update util.py docs +* rearange tests +* update documentation +* added tests for versioning.version.py, refactored the module +* add tests for low level util.py +* make @usedb work correctly +* Issue 34; preview\_sql now correctly displays SQL on python and SQL scripts. (tests added, docs still missing) +* use unittest.TestCase for tests +* use entrypoints terminology to parse dotted model class names +* remove the duplicate +* extras\_require is a bit tricky, use tests\_require instead +* fix typechecking +* update CHANGELOG +* Issue 38; add ability to pass arguments/dict for create\_engine func +* refactor api.py a bit, lots of PEP8 love +* add asbool function to make api parsing easier +* some more PEP8 love all over the files +* apply some PEP8 love to template.py +* apply PEP8 to version.py, fixed notification of missing test\_db.cfg +* apply option parsing patch for Issue 54 by iElectric +* start work on 0.5.4 +* fix Issue 52 by removing unneeded parameters from object.\_\_new\_\_ calls +* update CHANGELOG, set version to 0.5.3 +* apply patch for Issue 29 by Jonathan Ellis +* add support for ondelete and oncascade to ANSI-SQL foreign key creation +* unignore \_build, recreate \_build and ignore everything below it (fixes Issue 49) +* update CHANGELOG, set version to 0.5.2 +* mark ALTER TABLE ADD FOREIGN KEY as unsupported by SQLite update corresponding test case +* integrate unit test fix by Adam Lowry +* integrate test case fix by Adam Lowry +* whoops, needed to update setup.cfg too for Sphinx build location +* add Sphinx Makefile, and use underscore prefixes for some Sphinx stuff to be more Windows-friendly +* integrate patch for Issue 36, update CHANGELOG +* fix Issue 47 by moving sphinx and nose dependencies to extras\_require +* fix upload +* prepare release 0.5.1.1 +* removed misleading docs/Makefile +* updated versioning.rst to reflect reality +* apply patch by Toshio Kuratomi to fix some unit tests with Python 2.6 +* migrate.versioning.schema and schemadiff PEP-8 clean, added to api.rst +* migrate.versioning.repository PEP-8 clean, added to api.rst +* migrate.versioning PEP-8 improvements, more documentation +* correct all links in rst docs +* PEP-8 clean migrate.changeset, updated CHANGELOG, updated api.rst +* cleanup in migrate.changeset.ansisql and api doc update +* revert stupid test case breaking change +* make migrate.changeset.databases PEP-8 clean and add it to the API docs +* move .. automodule stuff to docs/api.rst +* start proper API documentation +* make migrate.schema.ansisql PEP8 clean and add some sphinx docstrings +* add sphinx to setup dependencies +* switch from pudge to sphinx +* first sphinx docstrings +* first take at sphinx based documentation +* reformatted download.rst for sphinx +* reformatted index.rst for sphinx +* add sphinx build files +* updated CHANGELOG +* updated project documentation +* tagging version 0.5.1 to match sa version +* support for SA 0.5.1 +* fix for changeset test +* integrate patch for supporting CheckConstraints by srittau +* Depend on SQLAlchemy >= 0.5 at runtime and nose for setup +* apply patch for Issue #43 (better SQLite support) by Florian Apolloner +* switch to nosetests +* fixed bug in create column where foreign keys were being left out +* more migrate deprecation removal fixes +* all tests pass except for a couple of mysql related failures in 2.6, SA 0.5rc4 +* print statement removal +* fixed a number of shell-related failures +* hopefully the last of migrate.run +* more "run" removal +* fixes to postgres, shell. removal of "run" module +* print statement removal +* removed driver deprecation, since that was deprecated in 0.4 +* now all databases are running at once +* all tests pass with postgres now +* only 2 failing tests, the tests that remain failures are mysql related +* most of the tests are now working with nose +* initial py.test removal +* added an echo option for all manage commands +* removed dependency on py.test modified downgrade so that migrate.py downgrade x works just like: migrate.py downgrade --version=x +* modified altering of columns to support postgres +* missed a postgres identifier quoting on renaming +* added hook functions which allow the dialects to specify how to indicate identifiers, as this is different in postgres +* integrate patch for Issue 33 +* add --declarative option to create\_model to generate new declarative style +* get test\_changeset working in oracle - just more server\_default issues +* add support for SA 0.5 +* - integrate patch by Toshio Kuratomi sent to migrate-users 2008/07/30 06:08 (GMT+01:00) - pylint clean migrate/versioning/migrate\_repository.py +* \* create bugfix branch for 0.4.4 \* prepare trunk for new development +* \* add 0.4.5 changes to CHANGELOG +* applied patch for shell test by Toshio Kuramoti +* support default for sql scripts +* add unit test to make sure we can handle more than 999 revisions +* finish implementing repository migration script +* make repository format flatter and get rid of commit command +* \* applied a slightly modified version of the patch for issue #20 by Christophe de Vienne which uses a logger for 'migrate.versioning' instead of the root logger +* almost done issue 12: generate downgrade method for schema migration +* fix issue 18 by applying given patch +* enhance command update\_db\_from\_model to bump db\_version to latest in repository +* improve diff unit tests to make sure they don't drop data when column type changes; make the code pass the tests +* make diff unit tests more robust +* Change make\_update\_script\_for\_model shell command to compare two versions of Python model (issue #12); add shell test for new diff'ing apis +* - merged CHANGELOG from bugfix branch +* - release 0.4.4 +* r1081@denkpolster: jan | 2008-04-04 18:48:20 +0200 - fix for SQLAlchemy deprecation warning when creating version table +* r1035@denkpolster: jan | 2008-04-02 14:39:05 +0200 - fix unit tests with py-0.9.1, fixes #17 +* code reorg: create new utility method loadModel for db diffing +* - patch by pwannygoodness for Issue #15 integrated +* - merge CHANGELOG from branch bugfix-0\_4\_2 to trunk - increase trunk and branch bugfix-0\_4\_2 version numbers - rename branch bugfix-0\_4\_2 to bugfix-0\_4\_3 +* Execute sqlite-specific code to alter a table inside one transaction so that we can't leave the database in a nasty state +* When running schemadiff tests exclude table migrate\_version because it's left around after a previous round of tests +* rename model/db sync commands and add new command update\_db\_from\_model +* add experimental support for comparing metadata against database (issue #12) +* - make test\_shell not assume Python code is compiled - update results in test\_shell so that it works in Postgresql - make Oracle changesets generate valid sql syntax when a modified column's default value changes to NULL +* \* integrate patch for Issue #14 by Kevin Dangoor \* merge CHANGELOG from bugfix\_0\_4\_2 branch +* \* fixed package name +* \* prepare work on 0.4.3 +* make import of sqlalchemy's SchemaGenerator work regardless of previous imports +* - 0.4.1 changes added to CHANGELOG +* - integrate setuptools patch by Kevin Dangoor - bump version to 0.4.2dev (0.4.1 will be released from branch bugfix-0\_4\_0) +* - prepare for new development +* - prepare for release 0.4.0 +* integrated patch by Christian Simms posted at http://groups.google.com/group/migrate-users/browse\_thread/thread/952a2185baf70c4d fix all test cases for sqlalchemy>=0.4 and still works with sqlalchemy>=0.3.10 fixes #9 +* moved trunk, branches and tags to project root fixes Issue #5 diff -Nru migrate-0.12.0/debian/changelog migrate-0.13.0/debian/changelog --- migrate-0.12.0/debian/changelog 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/changelog 2020-02-14 17:50:22.000000000 +0000 @@ -1,3 +1,17 @@ +migrate (0.13.0-0ubuntu1) focal; urgency=medium + + * d/gbp.conf: Update gbp configuration file. + * d/control: Update Vcs-* links and maintainers. + * d/watch: Switch to pypi.debian.net as new release is not available + from github. + * New upstream release. + * d/control: Align (Build-)Depends with upstream. + * d/p/*: Rebased. + * d/test.sh: Drop use of mysql_install_db as it has been dropped in MySQL 8. + Use mysqld to initialize instead. + + -- Corey Bryant Fri, 14 Feb 2020 12:50:22 -0500 + migrate (0.12.0-3) unstable; urgency=medium * Uploading to unstable. diff -Nru migrate-0.12.0/debian/control migrate-0.13.0/debian/control --- migrate-0.12.0/debian/control 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/control 2020-02-14 17:50:22.000000000 +0000 @@ -1,7 +1,8 @@ Source: migrate Section: python Priority: optional -Maintainer: Debian OpenStack +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian OpenStack Uploaders: Thomas Goirand , Jan Dittberner , @@ -9,9 +10,9 @@ debhelper (>= 10), dh-python, openstack-pkg-tools, - python3-sphinx, + python3-sphinx (>= 1.1.2), python3-all, - python3-pbr, + python3-pbr (>= 1.8), python3-setuptools, Build-Depends-Indep: default-mysql-client | mysql-client, @@ -19,24 +20,24 @@ python3-coverage, python3-decorator, python3-feedparser, - python3-fixtures, - python3-mock, + python3-fixtures (>= 0.3.14), + python3-mock (>= 1.2), python3-mysqldb, python3-psycopg2, python3-scripttest, - python3-six, - python3-sqlalchemy, + python3-six (>= 1.7.0), + python3-sqlalchemy (>= 0.9.6), python3-sqlparse, - python3-subunit, - python3-tempita, - python3-testtools, - python3-tz, + python3-subunit (>= 0.0.18), + python3-tempita (>= 0.4), + python3-testtools (>= 0.9.34), + python3-tz (>= 2010h), subunit, testrepository, Standards-Version: 4.3.0 Homepage: https://github.com/openstack/sqlalchemy-migrate -Vcs-Git: https://salsa.debian.org/openstack-team/libs/migrate.git -Vcs-Browser: https://salsa.debian.org/openstack-team/libs/migrate +Vcs-Git: https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/migrate +Vcs-Browser: https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/migrate Package: python-migrate-doc Section: doc @@ -66,11 +67,11 @@ Architecture: all Depends: python3-decorator, - python3-pbr, - python3-six, - python3-sqlalchemy, + python3-pbr (>= 1.8), + python3-six (>= 1.7.0), + python3-sqlalchemy (>= 0.9.6), python3-sqlparse, - python3-tempita, + python3-tempita (>= 0.4), ${misc:Depends}, ${python3:Depends}, Suggests: diff -Nru migrate-0.12.0/debian/gbp.conf migrate-0.13.0/debian/gbp.conf --- migrate-0.12.0/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/debian/gbp.conf 2020-02-14 17:50:22.000000000 +0000 @@ -0,0 +1,7 @@ +[DEFAULT] +debian-branch = master +upstream-tag = %(version)s +pristine-tar = True + +[buildpackage] +export-dir = ../build-area diff -Nru migrate-0.12.0/debian/patches/disable_issuetracker.patch migrate-0.13.0/debian/patches/disable_issuetracker.patch --- migrate-0.12.0/debian/patches/disable_issuetracker.patch 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/patches/disable_issuetracker.patch 2020-02-14 17:50:22.000000000 +0000 @@ -3,16 +3,7 @@ Forwarded: not-needed --- a/doc/source/conf.py +++ b/doc/source/conf.py -@@ -28,7 +28,7 @@ - - # Add any Sphinx extension module names here, as strings. They can be extensions - # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. --extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinxcontrib.issuetracker'] -+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] - - # link to sqlalchemy docs - intersphinx_mapping = { -@@ -96,8 +96,8 @@ +@@ -97,8 +97,8 @@ # Options for sphinxcontrib.issuetracker # -------------------------------------- diff -Nru migrate-0.12.0/debian/patches/remove-tempest-lib-build-depends-from-upstream.patch migrate-0.13.0/debian/patches/remove-tempest-lib-build-depends-from-upstream.patch --- migrate-0.12.0/debian/patches/remove-tempest-lib-build-depends-from-upstream.patch 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/patches/remove-tempest-lib-build-depends-from-upstream.patch 2020-02-14 17:50:22.000000000 +0000 @@ -3,13 +3,13 @@ Forwarded: no Last-Update: 2018-04-27 ---- migrate-0.11.0.orig/test-requirements.txt -+++ migrate-0.11.0/test-requirements.txt -@@ -16,7 +16,6 @@ sphinx>=1.1.2,<1.2 +--- a/test-requirements.txt ++++ b/test-requirements.txt +@@ -17,7 +17,6 @@ sphinxcontrib_issuetracker testrepository>=0.0.17 testtools>=0.9.34,<0.9.36 -tempest-lib>=0.1.0 - scripttest - # NOTE(rpodolyaka): This version identifier is currently necessary as + # db2 support + ibm_db_sa>=0.3.0;python_version<'3.0' diff -Nru migrate-0.12.0/debian/patches/use-local-intersphinx.patch migrate-0.13.0/debian/patches/use-local-intersphinx.patch --- migrate-0.12.0/debian/patches/use-local-intersphinx.patch 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/patches/use-local-intersphinx.patch 2020-02-14 17:50:22.000000000 +0000 @@ -2,7 +2,7 @@ Author: Jan Dittberner --- a/doc/source/conf.py +++ b/doc/source/conf.py -@@ -32,8 +32,7 @@ +@@ -33,8 +33,7 @@ # link to sqlalchemy docs intersphinx_mapping = { diff -Nru migrate-0.12.0/debian/test.sh migrate-0.13.0/debian/test.sh --- migrate-0.12.0/debian/test.sh 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/test.sh 2020-02-14 17:50:22.000000000 +0000 @@ -19,7 +19,7 @@ # --force is needed because buildd's can't resolve their own hostnames to ips echo "===> Preparing MySQL temp folder" -mysql_install_db --no-defaults --datadir=${MYTEMP_DIR} ${MYSQL_INSTALL_DB_OPT} --user=${ME} +/usr/sbin/mysqld --no-defaults --datadir=${MYTEMP_DIR} ${MYSQL_INSTALL_DB_OPT} --user=${ME} --initialize chown -R ${ME} ${MYTEMP_DIR} echo "===> Starting MySQL" /usr/sbin/mysqld --no-defaults --skip-grant-tables --user=${ME} --socket=${MYTEMP_DIR}/mysql.sock --datadir=${MYTEMP_DIR} --skip-networking & diff -Nru migrate-0.12.0/debian/watch migrate-0.13.0/debian/watch --- migrate-0.12.0/debian/watch 2019-07-16 16:12:38.000000000 +0000 +++ migrate-0.13.0/debian/watch 2020-02-14 17:50:22.000000000 +0000 @@ -1,3 +1,3 @@ version=3 -opts="uversionmangle=s/\.(b|rc)/~$1/" \ -https://github.com/stackforge/sqlalchemy-migrate/tags .*/(\d[\d\.]+)\.tar\.gz +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/sqlalchemy-migrate/sqlalchemy-migrate-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) diff -Nru migrate-0.12.0/doc/requirements.txt migrate-0.13.0/doc/requirements.txt --- migrate-0.12.0/doc/requirements.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/doc/requirements.txt 2019-10-22 21:14:37.000000000 +0000 @@ -0,0 +1 @@ +sphinx>=1.6.2,!=1.6.6 # BSD diff -Nru migrate-0.12.0/doc/source/conf.py migrate-0.13.0/doc/source/conf.py --- migrate-0.12.0/doc/source/conf.py 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/doc/source/conf.py 2019-10-22 21:14:37.000000000 +0000 @@ -28,7 +28,8 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinxcontrib.issuetracker'] +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.intersphinx'] # link to sqlalchemy docs intersphinx_mapping = { @@ -128,7 +129,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +# html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff -Nru migrate-0.12.0/doc/source/download.rst migrate-0.13.0/doc/source/download.rst --- migrate-0.12.0/doc/source/download.rst 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/doc/source/download.rst 2019-10-22 21:14:37.000000000 +0000 @@ -2,7 +2,7 @@ -------- You can get the latest version of SQLAlchemy Migrate from the -`project's download page`_, the `cheese shop`_, pip_ or via easy_install_:: +the `cheese shop`_, pip_ or via easy_install_:: $ easy_install sqlalchemy-migrate diff -Nru migrate-0.12.0/doc/source/index.rst migrate-0.13.0/doc/source/index.rst --- migrate-0.12.0/doc/source/index.rst 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/doc/source/index.rst 2019-10-22 21:14:37.000000000 +0000 @@ -55,7 +55,7 @@ .. list-table:: :header-rows: 1 - :widths: 25 10 10 10 10 10 11 + :widths: 25 10 10 10 10 10 11 10 * - Operation / Dialect - :ref:`sqlite ` @@ -72,6 +72,7 @@ - yes - no - not supported + - unknown * - :ref:`ALTER TABLE RENAME COLUMN ` - yes (workaround) [#1]_ - yes @@ -79,6 +80,7 @@ - yes - yes - not supported + - unknown * - :ref:`ALTER TABLE ADD COLUMN ` - yes (workaround) [#2]_ - yes @@ -86,6 +88,7 @@ - yes - yes - not supported + - unknown * - :ref:`ALTER TABLE DROP COLUMN ` - yes (workaround) [#1]_ - yes @@ -93,6 +96,7 @@ - yes - yes - not supported + - unknown * - :ref:`ALTER TABLE ALTER COLUMN ` - yes (workaround) [#1]_ - yes @@ -100,6 +104,7 @@ - yes (with limitations) [#3]_ - yes [#4]_ - not supported + - unknown * - :ref:`ALTER TABLE ADD CONSTRAINT ` - partial (workaround) [#1]_ - yes @@ -107,6 +112,7 @@ - yes - yes - not supported + - unknown * - :ref:`ALTER TABLE DROP CONSTRAINT ` - partial (workaround) [#1]_ - yes @@ -114,6 +120,7 @@ - yes - yes - not supported + - unknown * - :ref:`RENAME INDEX ` - no - yes @@ -121,6 +128,7 @@ - yes - yes - not supported + - unknown .. [#1] Table is renamed to temporary table, new table is created followed by diff -Nru migrate-0.12.0/.gitignore migrate-0.13.0/.gitignore --- migrate-0.12.0/.gitignore 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/.gitignore 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -.eggs/ -AUTHORS -ChangeLog -.tox -.testrepository/ -*.pyc -*data/* -*build/* -*dist/* -*ez_setup.py -*.egg/* -*egg-info/* -*bin/* -*include/* -*lib/* -lib64 -sa06/* -.idea/* -.coverage -test_db.cfg -nosexcover -.ropeproject -.*.swp -docs/_static diff -Nru migrate-0.12.0/.gitreview migrate-0.13.0/.gitreview --- migrate-0.12.0/.gitreview 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/.gitreview 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -[gerrit] -host=review.openstack.org -port=29418 -project=openstack/sqlalchemy-migrate.git diff -Nru migrate-0.12.0/migrate/changeset/databases/visitor.py migrate-0.13.0/migrate/changeset/databases/visitor.py --- migrate-0.12.0/migrate/changeset/databases/visitor.py 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/migrate/changeset/databases/visitor.py 2019-10-22 21:14:37.000000000 +0000 @@ -73,7 +73,7 @@ with support for migrate visitors. """ if connection is None: - conn = engine.contextual_connect(close_with_result=False) + conn = engine.connect() else: conn = connection visitor = visitorcallable(engine.dialect, conn) diff -Nru migrate-0.12.0/migrate/changeset/schema.py migrate-0.13.0/migrate/changeset/schema.py --- migrate-0.12.0/migrate/changeset/schema.py 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/migrate/changeset/schema.py 2019-10-22 21:14:37.000000000 +0000 @@ -138,7 +138,7 @@ delta = ColumnDelta(*p, **k) visitorcallable = get_engine_visitor(engine, 'schemachanger') - engine._run_visitor(visitorcallable, delta) + _run_visitor(engine, visitorcallable, delta) return delta @@ -167,6 +167,20 @@ return ret +def _run_visitor( + connectable, visitorcallable, element, connection=None, **kwargs +): + if connection is not None: + visitorcallable( + connection.dialect, connection, **kwargs).traverse_single(element) + else: + conn = connectable.connect() + try: + visitorcallable( + conn.dialect, conn, **kwargs).traverse_single(element) + finally: + conn.close() + # Python3: if we just use: # @@ -574,7 +588,7 @@ self.add_to_table(table) engine = self.table.bind visitorcallable = get_engine_visitor(engine, 'columngenerator') - engine._run_visitor(visitorcallable, self, connection, **kwargs) + _run_visitor(engine, visitorcallable, self, connection, **kwargs) # TODO: reuse existing connection if self.populate_default and self.default is not None: @@ -595,7 +609,7 @@ self.table = table engine = self.table.bind visitorcallable = get_engine_visitor(engine, 'columndropper') - engine._run_visitor(visitorcallable, self, connection, **kwargs) + _run_visitor(engine, visitorcallable, self, connection, **kwargs) self.remove_from_table(self.table, unset_table=False) self.table = None return self @@ -689,7 +703,7 @@ engine = self.table.bind self.new_name = name visitorcallable = get_engine_visitor(engine, 'schemachanger') - engine._run_visitor(visitorcallable, self, connection, **kwargs) + _run_visitor(engine, visitorcallable, self, connection, **kwargs) self.name = name diff -Nru migrate-0.12.0/migrate/versioning/script/py.py migrate-0.13.0/migrate/versioning/script/py.py --- migrate-0.12.0/migrate/versioning/script/py.py 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/migrate/versioning/script/py.py 2019-10-22 21:14:37.000000000 +0000 @@ -141,8 +141,14 @@ script_func = self._func(funcname) # check for old way of using engine - if not inspect.getargspec(script_func)[0]: - raise TypeError("upgrade/downgrade functions must accept engine" + arg_spec = None + if six.PY2: + arg_spec = inspect.getargspec(script_func) + else: + arg_spec = inspect.getfullargspec(script_func) + if not arg_spec[0]: + raise TypeError( + "upgrade/downgrade functions must accept engine" " parameter (since version 0.5.4)") script_func(engine) diff -Nru migrate-0.12.0/PKG-INFO migrate-0.13.0/PKG-INFO --- migrate-0.12.0/PKG-INFO 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/PKG-INFO 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,71 @@ +Metadata-Version: 1.1 +Name: sqlalchemy-migrate +Version: 0.13.0 +Summary: Database schema migration for SQLAlchemy +Home-page: http://www.openstack.org/ +Author: OpenStack +Author-email: openstack-discuss@lists.openstack.org +License: UNKNOWN +Description: SQLAlchemy Migrate + ================== + + Fork from http://code.google.com/p/sqlalchemy-migrate/ to get it working with + SQLAlchemy 0.8. + + Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with + database schema changes in `SQLAlchemy `_ projects. + + Migrate extends SQLAlchemy to have database changeset handling. It provides a + database change repository mechanism which can be used from the command line as + well as from inside python code. + + Help + ---- + + Sphinx documentation is available at the project page `readthedocs.org + `_. + + Users and developers can be found at #openstack-dev on Freenode IRC + network and at the public users mailing list `migrate-users + `_. + + New releases and major changes are announced at the public announce mailing + list `openstack-dev + `_ + and at the Python package index `sqlalchemy-migrate + `_. + + Homepage is located at `stackforge + `_ + + You can also clone a current `development version + `_ + + Tests and Bugs + -------------- + + To run automated tests: + + * install tox: ``pip install -U tox`` + * run tox: ``tox`` + * to test only a specific Python version: ``tox -e py27`` (Python 2.7) + + Please report any issues with sqlalchemy-migrate to the issue tracker at + `Launchpad issues + `_ + + +Platform: UNKNOWN +Classifier: Environment :: OpenStack +Classifier: Intended Audience :: Information Technology +Classifier: Intended Audience :: System Administrators +Classifier: License :: OSI Approved :: Apache Software License +Classifier: Operating System :: POSIX :: Linux +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 diff -Nru migrate-0.12.0/playbooks/sqlalchemy-migrate-devstack-dsvm/post.yaml migrate-0.13.0/playbooks/sqlalchemy-migrate-devstack-dsvm/post.yaml --- migrate-0.12.0/playbooks/sqlalchemy-migrate-devstack-dsvm/post.yaml 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/playbooks/sqlalchemy-migrate-devstack-dsvm/post.yaml 2019-10-22 21:14:37.000000000 +0000 @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff -Nru migrate-0.12.0/playbooks/sqlalchemy-migrate-devstack-dsvm/run.yaml migrate-0.13.0/playbooks/sqlalchemy-migrate-devstack-dsvm/run.yaml --- migrate-0.12.0/playbooks/sqlalchemy-migrate-devstack-dsvm/run.yaml 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/playbooks/sqlalchemy-migrate-devstack-dsvm/run.yaml 2019-10-22 21:14:37.000000000 +0000 @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-sqlalchemy-migrate-devstack-dsvm from old job gate-sqlalchemy-migrate-devstack-dsvm-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + https://opendev.org \ + openstack/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="x/sqlalchemy-migrate $PROJECTS" + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/sqlalchemy-migrate + sudo -H pip install . + } + export -f pre_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff -Nru migrate-0.12.0/setup.cfg migrate-0.13.0/setup.cfg --- migrate-0.12.0/setup.cfg 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/setup.cfg 2019-10-22 21:15:46.000000000 +0000 @@ -1,34 +1,41 @@ [metadata] name = sqlalchemy-migrate summary = Database schema migration for SQLAlchemy -description-file = - README.rst +description-file = + README.rst author = OpenStack author-email = openstack-discuss@lists.openstack.org home-page = http://www.openstack.org/ -classifier = - Environment :: OpenStack - Intended Audience :: Information Technology - Intended Audience :: System Administrators - License :: OSI Approved :: Apache Software License - Operating System :: POSIX :: Linux - Programming Language :: Python - Programming Language :: Python :: 2 - Programming Language :: Python :: 2.7 - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.3 - Programming Language :: Python :: 3.4 +classifier = + Environment :: OpenStack + Intended Audience :: Information Technology + Intended Audience :: System Administrators + License :: OSI Approved :: Apache Software License + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 [files] -packages = - migrate +packages = + migrate [entry_points] -console_scripts = - migrate = migrate.versioning.shell:main - migrate-repository = migrate.versioning.migrate_repository:main +console_scripts = + migrate = migrate.versioning.shell:main + migrate-repository = migrate.versioning.migrate_repository:main [build_sphinx] all_files = 1 build-dir = doc/build source-dir = doc/source + +[egg_info] +tag_build = +tag_date = 0 + diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/dependency_links.txt migrate-0.13.0/sqlalchemy_migrate.egg-info/dependency_links.txt --- migrate-0.12.0/sqlalchemy_migrate.egg-info/dependency_links.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/dependency_links.txt 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1 @@ + diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/entry_points.txt migrate-0.13.0/sqlalchemy_migrate.egg-info/entry_points.txt --- migrate-0.12.0/sqlalchemy_migrate.egg-info/entry_points.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/entry_points.txt 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,4 @@ +[console_scripts] +migrate = migrate.versioning.shell:main +migrate-repository = migrate.versioning.migrate_repository:main + diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/not-zip-safe migrate-0.13.0/sqlalchemy_migrate.egg-info/not-zip-safe --- migrate-0.12.0/sqlalchemy_migrate.egg-info/not-zip-safe 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/not-zip-safe 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1 @@ + diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/pbr.json migrate-0.13.0/sqlalchemy_migrate.egg-info/pbr.json --- migrate-0.12.0/sqlalchemy_migrate.egg-info/pbr.json 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/pbr.json 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1 @@ +{"git_version": "5d1f322", "is_release": true} \ No newline at end of file diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/PKG-INFO migrate-0.13.0/sqlalchemy_migrate.egg-info/PKG-INFO --- migrate-0.12.0/sqlalchemy_migrate.egg-info/PKG-INFO 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/PKG-INFO 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,71 @@ +Metadata-Version: 1.1 +Name: sqlalchemy-migrate +Version: 0.13.0 +Summary: Database schema migration for SQLAlchemy +Home-page: http://www.openstack.org/ +Author: OpenStack +Author-email: openstack-discuss@lists.openstack.org +License: UNKNOWN +Description: SQLAlchemy Migrate + ================== + + Fork from http://code.google.com/p/sqlalchemy-migrate/ to get it working with + SQLAlchemy 0.8. + + Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with + database schema changes in `SQLAlchemy `_ projects. + + Migrate extends SQLAlchemy to have database changeset handling. It provides a + database change repository mechanism which can be used from the command line as + well as from inside python code. + + Help + ---- + + Sphinx documentation is available at the project page `readthedocs.org + `_. + + Users and developers can be found at #openstack-dev on Freenode IRC + network and at the public users mailing list `migrate-users + `_. + + New releases and major changes are announced at the public announce mailing + list `openstack-dev + `_ + and at the Python package index `sqlalchemy-migrate + `_. + + Homepage is located at `stackforge + `_ + + You can also clone a current `development version + `_ + + Tests and Bugs + -------------- + + To run automated tests: + + * install tox: ``pip install -U tox`` + * run tox: ``tox`` + * to test only a specific Python version: ``tox -e py27`` (Python 2.7) + + Please report any issues with sqlalchemy-migrate to the issue tracker at + `Launchpad issues + `_ + + +Platform: UNKNOWN +Classifier: Environment :: OpenStack +Classifier: Intended Audience :: Information Technology +Classifier: Intended Audience :: System Administrators +Classifier: License :: OSI Approved :: Apache Software License +Classifier: Operating System :: POSIX :: Linux +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/requires.txt migrate-0.13.0/sqlalchemy_migrate.egg-info/requires.txt --- migrate-0.12.0/sqlalchemy_migrate.egg-info/requires.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/requires.txt 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,6 @@ +pbr>=1.8 +SQLAlchemy>=0.9.6 +decorator +six>=1.7.0 +sqlparse +Tempita>=0.4 diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/SOURCES.txt migrate-0.13.0/sqlalchemy_migrate.egg-info/SOURCES.txt --- migrate-0.12.0/sqlalchemy_migrate.egg-info/SOURCES.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/SOURCES.txt 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1,136 @@ +.testr.conf +.zuul.yaml +AUTHORS +COPYING +ChangeLog +MANIFEST.in +README.rst +TODO +bindep.txt +doc-requirements.txt +requirements.txt +setup.cfg +setup.py +test-requirements.txt +test_db.cfg +test_db_py3.cfg +tox.ini +doc/requirements.txt +doc/source/Makefile +doc/source/api.rst +doc/source/changelog.rst +doc/source/changeset.rst +doc/source/conf.py +doc/source/credits.rst +doc/source/download.rst +doc/source/faq.rst +doc/source/glossary.rst +doc/source/index.rst +doc/source/tools.rst +doc/source/versioning.rst +doc/source/historical/ProjectDesignDecisionsAutomation.trac +doc/source/historical/ProjectDesignDecisionsScriptFormat.trac +doc/source/historical/ProjectDesignDecisionsVersioning.trac +doc/source/historical/ProjectDetailedDesign.trac +doc/source/historical/ProjectGoals.trac +doc/source/historical/ProjectProposal.txt +doc/source/historical/RepositoryFormat.trac +doc/source/historical/RepositoryFormat2.trac +doc/source/theme/almodovar.css +doc/source/theme/layout.css +doc/source/theme/layout.html +migrate/__init__.py +migrate/exceptions.py +migrate/changeset/__init__.py +migrate/changeset/ansisql.py +migrate/changeset/constraint.py +migrate/changeset/schema.py +migrate/changeset/util.py +migrate/changeset/databases/__init__.py +migrate/changeset/databases/firebird.py +migrate/changeset/databases/ibmdb2.py +migrate/changeset/databases/mysql.py +migrate/changeset/databases/oracle.py +migrate/changeset/databases/postgres.py +migrate/changeset/databases/sqlite.py +migrate/changeset/databases/visitor.py +migrate/tests/__init__.py +migrate/tests/changeset/__init__.py +migrate/tests/changeset/test_changeset.py +migrate/tests/changeset/test_constraint.py +migrate/tests/changeset/databases/__init__.py +migrate/tests/changeset/databases/test_ibmdb2.py +migrate/tests/fixture/__init__.py +migrate/tests/fixture/base.py +migrate/tests/fixture/database.py +migrate/tests/fixture/models.py +migrate/tests/fixture/pathed.py +migrate/tests/fixture/shell.py +migrate/tests/fixture/warnings.py +migrate/tests/integrated/__init__.py +migrate/tests/integrated/test_docs.py +migrate/tests/versioning/__init__.py +migrate/tests/versioning/test_api.py +migrate/tests/versioning/test_cfgparse.py +migrate/tests/versioning/test_database.py +migrate/tests/versioning/test_genmodel.py +migrate/tests/versioning/test_keyedinstance.py +migrate/tests/versioning/test_pathed.py +migrate/tests/versioning/test_repository.py +migrate/tests/versioning/test_runchangeset.py +migrate/tests/versioning/test_schema.py +migrate/tests/versioning/test_schemadiff.py +migrate/tests/versioning/test_script.py +migrate/tests/versioning/test_shell.py +migrate/tests/versioning/test_template.py +migrate/tests/versioning/test_util.py +migrate/tests/versioning/test_version.py +migrate/versioning/__init__.py +migrate/versioning/api.py +migrate/versioning/cfgparse.py +migrate/versioning/config.py +migrate/versioning/genmodel.py +migrate/versioning/migrate_repository.py +migrate/versioning/pathed.py +migrate/versioning/repository.py +migrate/versioning/schema.py +migrate/versioning/schemadiff.py +migrate/versioning/shell.py +migrate/versioning/template.py +migrate/versioning/version.py +migrate/versioning/script/__init__.py +migrate/versioning/script/base.py +migrate/versioning/script/py.py +migrate/versioning/script/sql.py +migrate/versioning/templates/__init__.py +migrate/versioning/templates/manage/default.py_tmpl +migrate/versioning/templates/manage/pylons.py_tmpl +migrate/versioning/templates/repository/__init__.py +migrate/versioning/templates/repository/default/README +migrate/versioning/templates/repository/default/__init__.py +migrate/versioning/templates/repository/default/migrate.cfg +migrate/versioning/templates/repository/default/versions/__init__.py +migrate/versioning/templates/repository/pylons/README +migrate/versioning/templates/repository/pylons/__init__.py +migrate/versioning/templates/repository/pylons/migrate.cfg +migrate/versioning/templates/repository/pylons/versions/__init__.py +migrate/versioning/templates/script/__init__.py +migrate/versioning/templates/script/default.py_tmpl +migrate/versioning/templates/script/pylons.py_tmpl +migrate/versioning/templates/sql_script/default.py_tmpl +migrate/versioning/templates/sql_script/pylons.py_tmpl +migrate/versioning/util/__init__.py +migrate/versioning/util/importpath.py +migrate/versioning/util/keyedinstance.py +playbooks/sqlalchemy-migrate-devstack-dsvm/post.yaml +playbooks/sqlalchemy-migrate-devstack-dsvm/run.yaml +sqlalchemy_migrate.egg-info/PKG-INFO +sqlalchemy_migrate.egg-info/SOURCES.txt +sqlalchemy_migrate.egg-info/dependency_links.txt +sqlalchemy_migrate.egg-info/entry_points.txt +sqlalchemy_migrate.egg-info/not-zip-safe +sqlalchemy_migrate.egg-info/pbr.json +sqlalchemy_migrate.egg-info/requires.txt +sqlalchemy_migrate.egg-info/top_level.txt +tools/pretty_tox.sh +tools/test-setup.sh \ No newline at end of file diff -Nru migrate-0.12.0/sqlalchemy_migrate.egg-info/top_level.txt migrate-0.13.0/sqlalchemy_migrate.egg-info/top_level.txt --- migrate-0.12.0/sqlalchemy_migrate.egg-info/top_level.txt 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/sqlalchemy_migrate.egg-info/top_level.txt 2019-10-22 21:15:46.000000000 +0000 @@ -0,0 +1 @@ +migrate diff -Nru migrate-0.12.0/test-requirements-py2.txt migrate-0.13.0/test-requirements-py2.txt --- migrate-0.12.0/test-requirements-py2.txt 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/test-requirements-py2.txt 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -ibm_db_sa>=0.3.0 -MySQL-python diff -Nru migrate-0.12.0/test-requirements-py3.txt migrate-0.13.0/test-requirements-py3.txt --- migrate-0.12.0/test-requirements-py3.txt 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/test-requirements-py3.txt 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -ibm-db-sa-py3 diff -Nru migrate-0.12.0/test-requirements.txt migrate-0.13.0/test-requirements.txt --- migrate-0.12.0/test-requirements.txt 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/test-requirements.txt 2019-10-22 21:14:37.000000000 +0000 @@ -10,6 +10,7 @@ fixtures>=0.3.14 mock>=1.2 mox>=0.5.3 +mysqlclient psycopg2 python-subunit>=0.0.18 sphinx>=1.1.2,<1.2 @@ -18,6 +19,10 @@ testtools>=0.9.34,<0.9.36 tempest-lib>=0.1.0 +# db2 support +ibm_db_sa>=0.3.0;python_version<'3.0' +ibm-db-sa-py3;python_version>='3.0' + scripttest # NOTE(rpodolyaka): This version identifier is currently necessary as # pytz otherwise does not install on pip 1.4 or higher diff -Nru migrate-0.12.0/tox.ini migrate-0.13.0/tox.ini --- migrate-0.12.0/tox.ini 2019-01-22 14:02:49.000000000 +0000 +++ migrate-0.13.0/tox.ini 2019-10-22 21:14:37.000000000 +0000 @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = py27,py27sa07,py27sa08,py27sa09,py33,py34,pep8 +envlist = py27,py27sa07,py27sa08,py27sa09,py33,py34,py35,py36,pep8 [testenv] usedevelop = True @@ -13,65 +13,49 @@ -r{toxinidir}/test-requirements.txt commands = bash tools/pretty_tox.sh '{posargs}' -[testenv:py26] -deps = sqlalchemy>=0.9 - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt - [testenv:py27] deps = sqlalchemy>=0.9 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt - -[testenv:py26sa07] -basepython = python2.6 -deps = sqlalchemy>=0.7,<=0.7.99 - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt - -[testenv:py26sa08] -basepython = python2.6 -deps = sqlalchemy>=0.8,<=0.8.99 - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt - -[testenv:py26sa09] -basepython = python2.6 -deps = sqlalchemy>=0.9,<=0.9.99 - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py27sa07] basepython = python2.7 deps = sqlalchemy>=0.7,<=0.7.99 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py27sa08] basepython = python2.7 deps = sqlalchemy>=0.8,<=0.8.99 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py27sa09] basepython = python2.7 deps = sqlalchemy>=0.9,<=0.9.99 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py2.txt [testenv:py33] deps = sqlalchemy>=0.9 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py3.txt [testenv:py34] deps = sqlalchemy>=0.9 -r{toxinidir}/test-requirements.txt - -r{toxinidir}/test-requirements-py3.txt + +[testenv:py35] +deps = sqlalchemy>=0.9 + -r{toxinidir}/test-requirements.txt + +[testenv:py36] +deps = sqlalchemy>=0.9 + -r{toxinidir}/test-requirements.txt [testenv:pep8] commands = flake8 +[testenv:docs] +basepython = python3 +deps = -r{toxinidir}/doc/requirements.txt +commands = sphinx-build doc/source doc/build/html + [testenv:venv] commands = {posargs} @@ -135,3 +119,15 @@ show-source = true builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,build + +[testenv:bindep] +# Do not install any requirements. We want this to be fast and work even if +# system dependencies are missing, since it's used to tell you what system +# dependencies are missing! This also means that bindep must be installed +# separately, outside of the requirements files, and develop mode disabled +# explicitly to avoid unnecessarily installing the checked-out repo too (this +# further relies on "tox.skipsdist = True" above). +usedevelop = False +deps = bindep +commands = + bindep test diff -Nru migrate-0.12.0/.zuul.yaml migrate-0.13.0/.zuul.yaml --- migrate-0.12.0/.zuul.yaml 1970-01-01 00:00:00.000000000 +0000 +++ migrate-0.13.0/.zuul.yaml 2019-10-22 21:14:37.000000000 +0000 @@ -0,0 +1,37 @@ +- project: + templates: + - docs-on-readthedocs + - openstack-python-jobs + - openstack-python35-jobs + - openstack-python36-jobs + vars: + rtd_webhook_id: '61274' + check: + jobs: + - sqlalchemy-migrate-tox-py27sa07 + - sqlalchemy-migrate-devstack: + voting: false + gate: + jobs: + - sqlalchemy-migrate-tox-py27sa07 + +- job: + name: sqlalchemy-migrate-tox-py27sa07 + parent: tox + description: | + Run tests for sqlalchemy-migrate project. + + Uses tox with the ``py27sa07`` environment. + vars: + tox_envlist: py27sa07 + +- job: + name: sqlalchemy-migrate-devstack + parent: legacy-dsvm-base + run: playbooks/sqlalchemy-migrate-devstack-dsvm/run.yaml + post-run: playbooks/sqlalchemy-migrate-devstack-dsvm/post.yaml + timeout: 10800 + required-projects: + - openstack/devstack + - openstack/devstack-gate + - x/sqlalchemy-migrate