{ "info": { "author": "Javier Buzzi", "author_email": "buzzi.javier@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "django-squash\n========================\n\n|Travis CI| |codecov|\n\ndjango-squash is a migration squashing replacement that cares more about keeping migrations small and precise.\n\n\nSetup\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n1. ``pip install django-squash``\n\n2. Add ``django_squash`` to your ``INSTALLED_APPS``.\n\n3. Profit!\n\n\nWhat this does\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nLet's say you have an app for a couple of years, with lots of changes to the app's ``migrations`` folder would look something like this:\n\n.. code-block::\n\n app/migrations/__init__.py\n app/migrations/0001_initial.py\n app/migrations/0002_changes.py\n ...\n app/migrations/0400_changes.py\n\nYou can run ``python manage.py squash_migrations`` and then it will look like this:\n\n.. code-block::\n\n app/migrations/__init__.py\n app/migrations/0001_initial.py\n app/migrations/0002_changes.py\n ...\n app/migrations/0400_changes.py\n app/migrations/0401_squashed.py\n\nInside the ``0401_squashed.py``, you will find all you migrations including all your ``RunPython`` and ``RunSQL`` that are `elidable`.\n\nAfter you know that all the migrations from ``0001`` to ``0401`` have been applied, run ``python manage.py delete_squashed_migrations``.\n\n\nRun tests\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: shell\n\n pip install -e '.[test]'\n coverage run setup.py test\n coverage report -m\n\n\n.. |Travis CI| image:: https://travis-ci.com/kingbuzzman/django-squash.svg?branch=develop\n :target: https://travis-ci.com/kingbuzzman/django-squash\n\n.. |codecov| image:: https://codecov.io/gh/kingbuzzman/django-squash/branch/develop/graph/badge.svg\n :target: https://codecov.io/gh/kingbuzzman/django-squash\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kingbuzzman/django-squashing", "keywords": "django migration squashing squash", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-squash", "package_url": "https://pypi.org/project/django-squash/", "platform": "any", "project_url": "https://pypi.org/project/django-squash/", "project_urls": { "Homepage": "https://github.com/kingbuzzman/django-squashing" }, "release_url": "https://pypi.org/project/django-squash/0.0.1/", "requires_dist": [ "django (>=2.0)", "isort ; extra == 'test'", "flake8 ; extra == 'test'", "ipdb ; extra == 'test'", "coverage ; extra == 'test'" ], "requires_python": "!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "A migration squasher that doesn't care how humpty dumpty was put together.", "version": "0.0.1" }, "last_serial": 5319443, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6d0c83ba79341242c67625aabe025e82", "sha256": "5b77daf53b767cc5e538a091b95ff4d4c0a431f221eaa6b199f7cceddcaaa773" }, "downloads": -1, "filename": "django_squash-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6d0c83ba79341242c67625aabe025e82", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 14397, "upload_time": "2019-05-26T17:41:42", "url": "https://files.pythonhosted.org/packages/ce/66/4095e778649c8ff92222cdda74232a16f0af369a4aa98646e97b755483cb/django_squash-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce754d455de9170f214cf59afa582746", "sha256": "7670bde0505a1aa59ffe7fcf95c9984f8c240035f9228459c40ab0d86847445d" }, "downloads": -1, "filename": "django_squash-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ce754d455de9170f214cf59afa582746", "packagetype": "sdist", "python_version": "source", "requires_python": "!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 11060, "upload_time": "2019-05-26T17:41:44", "url": "https://files.pythonhosted.org/packages/b3/74/cea0617c108ae339145d16f5b9cc9a5c1e7e018ebf1b75f940843cfbee6e/django_squash-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6d0c83ba79341242c67625aabe025e82", "sha256": "5b77daf53b767cc5e538a091b95ff4d4c0a431f221eaa6b199f7cceddcaaa773" }, "downloads": -1, "filename": "django_squash-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6d0c83ba79341242c67625aabe025e82", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 14397, "upload_time": "2019-05-26T17:41:42", "url": "https://files.pythonhosted.org/packages/ce/66/4095e778649c8ff92222cdda74232a16f0af369a4aa98646e97b755483cb/django_squash-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce754d455de9170f214cf59afa582746", "sha256": "7670bde0505a1aa59ffe7fcf95c9984f8c240035f9228459c40ab0d86847445d" }, "downloads": -1, "filename": "django_squash-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ce754d455de9170f214cf59afa582746", "packagetype": "sdist", "python_version": "source", "requires_python": "!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 11060, "upload_time": "2019-05-26T17:41:44", "url": "https://files.pythonhosted.org/packages/b3/74/cea0617c108ae339145d16f5b9cc9a5c1e7e018ebf1b75f940843cfbee6e/django_squash-0.0.1.tar.gz" } ] }