{ "info": { "author": "Simplon B.V. - Wichert Akkerman", "author_email": "wichert@wiggy.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\nThis package implements a very minimal upgrade framework for use in Python\napplications. Its design consists of three parts:\n\n\n1. *context providers*, which are responsible for setting up the context\n required for an upgrade step. For example establishing a connection to\n a SQL server or configuring SQLALchemy.\n2. *upgrade steps*, which are functions that perform the actual upgrade\n steps.\n3. a *commandline tool* to run the *upgrade steps* and required *context\n providers*.\n\nIn order to keep the framework minimal there are a few things which are\ndeliberately not supported:\n\n* No versioning of the environment is done; the tool will always run all\n all upgrade steps. Each step must support being run multiple times\n without unexpected results.\n* Downgrades are not supported.\n* Depdendencies between upgrade steps are not supported.\n\nHere is a basic context provider which configures SQLAlchemy::\n\n @upgrade_context('sql')\n def setup_sqlalchemy(options):\n engine = create_engine('postgresql:///projectA')\n return {'sql-engine': engine}\n\nHere is an example upgrade step to add missing tables and indices in a project\nusing SQLALchemy::\n\n @upgrade_step(require=['sql'])\n def add_missing_tables(environment):\n meta.metadata.create_all(environment['sql-engline'])\n\nAnd this is how you run the upgrade::\n\n $ bin/upgrade --scan my.package", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://readthedocs.org/builds/s4uupgrade/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "s4u.upgrade", "package_url": "https://pypi.org/project/s4u.upgrade/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/s4u.upgrade/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://readthedocs.org/builds/s4uupgrade/" }, "release_url": "https://pypi.org/project/s4u.upgrade/1.3/", "requires_dist": null, "requires_python": null, "summary": "2Style4You upgrade framework", "version": "1.3" }, "last_serial": 948997, "releases": { "1.2": [ { "comment_text": "", "digests": { "md5": "2a8809272aeda2be7e3bf18aa266f7ad", "sha256": "3f6a27e190294b8bf5882ce7563c88ffaba60d6b9df67f42981ec0dfea522f70" }, "downloads": -1, "filename": "s4u.upgrade-1.2.tar.gz", "has_sig": false, "md5_digest": "2a8809272aeda2be7e3bf18aa266f7ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11082, "upload_time": "2013-01-08T11:57:30", "url": "https://files.pythonhosted.org/packages/25/d5/421df98237b2b83ed9e1b1132db285866374507537395f330a04cec08fb7/s4u.upgrade-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "fe0eae21f00cea6a4f60270b6faf4b8a", "sha256": "8064f7724c93f35658c17103eae2d4be2159b3254a44c501a27d5f1e3c422d66" }, "downloads": -1, "filename": "s4u.upgrade-1.3.tar.gz", "has_sig": false, "md5_digest": "fe0eae21f00cea6a4f60270b6faf4b8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11749, "upload_time": "2013-12-19T20:10:51", "url": "https://files.pythonhosted.org/packages/e0/1f/052a553d3192189bee513260d549a586c593c77eea602912033801efd78b/s4u.upgrade-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fe0eae21f00cea6a4f60270b6faf4b8a", "sha256": "8064f7724c93f35658c17103eae2d4be2159b3254a44c501a27d5f1e3c422d66" }, "downloads": -1, "filename": "s4u.upgrade-1.3.tar.gz", "has_sig": false, "md5_digest": "fe0eae21f00cea6a4f60270b6faf4b8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11749, "upload_time": "2013-12-19T20:10:51", "url": "https://files.pythonhosted.org/packages/e0/1f/052a553d3192189bee513260d549a586c593c77eea602912033801efd78b/s4u.upgrade-1.3.tar.gz" } ] }