Skip to content

Commit

Permalink
rename project and update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
valdergallo committed May 6, 2016
1 parent c1b7233 commit 43be57b
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 17 deletions.
56 changes: 56 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Django reset migrations
=======================

Add one command to reset the django migrations.

Sometimes you have one app that had a lot migrations in development
process. And this migrations could be deleted, because anybody will need
this in the future.

Soo, could be stressfull delete the files, reset the database and create
the first migration again ... to start to developer again and bla bla
bla ...

Because this, I made this command to reset the migrations and start the
first migration.

I hope be usefull to you 2 :D

To install
----------

::

pip install django-reset-migrations

Install package in your INSTALL\_APPS

::

settings.py

INSTALL_APPS = (
...
'resetmigrations',
.....
)

Usage
-----

::

python manage.py reset_migration crm

or

python manage.py reset_migration app1 app2

or

python manage.py reset_migration app1 app2 --cached

Options
-------

**--cached**: Don´t delete the migrations files in apps
File renamed without changes.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions resetmigrations/tests.py

This file was deleted.

24 changes: 10 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-

import os
from setuptools import setup, find_packages
from setuptools import setup

import resetmigrations
import reset_migrations


def readme():
Expand All @@ -20,31 +20,27 @@ def readme():
'django>=1.7',
]

tests_require = [
'pytest',
'pytest-django',
'pytest-cov',
]


setup(
name='django-reset-migrations',
url='https://github.com/valdergallo/django_reset_migrations',
download_url='https://github.com/valdergallo/django_reset_migrations/tarball/%s/' % resetmigrations.__version__,
download_url='https://github.com/valdergallo/django_reset_migrations/tarball/%s/' % reset_migrations.__version__,
author="valdergallo",
author_email='valdergallo@gmail.com',
keywords='Django reset migrations',
description='Add one command to reset the migrations of one or more app',
license='Apache Version 2',
long_description=readme(),
tests_require=tests_require,
classifiers=[
'Framework :: Django',
'Operating System :: OS Independent',
'Topic :: Utilities'
],
version=resetmigrations.__version__,
version=reset_migrations.__version__,
install_requires=install_requires,
package_dir={'': '.'},
packages=find_packages('.', exclude=['tests', '*.tests', 'docs', 'example', 'media']),
include_package_data=True,
packages=[
'reset_migrations',
'reset_migrations.management',
'reset_migrations.management.commands',
],
)

0 comments on commit 43be57b

Please sign in to comment.