Skip to content

Commit

Permalink
reactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Aug 2, 2010
1 parent d1db510 commit 4cd53fa
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 7 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include AUTHORS
include LICENSE
include README.txt
include requirements.txt

recursive-include docs *
16 changes: 9 additions & 7 deletions README.md → README.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
__*NOTE*__: I am no longer maintaining this in favor of using [South](http://south.aeracode.org/).


# Nashvegas
=========
Nashvegas
=========

The purpose of this app is to enable a plug and play method for managing database changes.

Expand All @@ -12,22 +11,25 @@ Database migrations is a large topic with a lot of different approaches. This a
worked well for my needs so I thought I'd put it out on the "Interwebs" and let the
community judge it for it's usefulness.

# How to Use
How to Use
----------

* Add the application to your PYTHON_PATH
* Add the application to your INSTALLED_APPS list in your settings.py file.
* Execute the command line:

$ ./manage.py upgradedb --list|--execute [--path /path/to/scripts]

# Options
Options
-------

* --list - Lists all the scripts that will need to be executed.
* --execute - Executes all the scripts that need to be executed.
* --path - The fully qualified path to the where the database scripts are located.
This defaults to {{ PROJECT_PATH }}/db

# Conventions
Conventions
-----------

Part of the simplicity of this solution is based on the naming conventions of the sql
scripts. They should be named:
Expand Down
Empty file added docs/conf.py
Empty file.
Empty file added docs/index.txt
Empty file.
16 changes: 16 additions & 0 deletions nashvegas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VERSION = (0, 1, 0, "a", 1) # following PEP 386
DEV_N = 1


def get_version():
version = "%s.%s" % (VERSION[0], VERSION[1])
if VERSION[2]:
version = "%s.%s" % (version, VERSION[2])
if VERSION[3] != "f":
version = "%s%s%s" % (version, VERSION[3], VERSION[4])
if DEV_N:
version = "%s.dev%s" % (version, DEV_N)
return version


__version__ = get_version()
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Django
33 changes: 33 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import os
from setuptools import setup, find_packages


VERSION = __import__('nashvegas').__version__

def read(*path):
return open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *path)).read()


setup(
name='nashvegas',
version=VERSION,
description='nashvegas is a management command for managing Django database migrations',
long_description=read('README.txt'),
author='Patrick Altman',
author_email='paltman@gmail.com',
maintainer='Patrick Altman',
maintainer_email='paltman@gmail.com',
url='http://github.com/paltman/nashvegas/',
packages=find_packages(),
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Framework :: Django',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
],
)

0 comments on commit 4cd53fa

Please sign in to comment.