Permalink
Browse files

Migrations were moved to gtdzen package.

  • Loading branch information...
1 parent b401074 commit aa2d08119b70496577988b6a36b8f9febc2a6fac @svetlyak40wt committed Jun 24, 2009
View
1 .gitignore
@@ -1,6 +1,7 @@
*.pyc
.*.swp
*.sqlite*
+*.egg-info
.vim
ctags
MANIFEST
View
2 MANIFEST.in
@@ -1,3 +1,5 @@
include README.markdown
include LICENSE
+include ChangeLog
include aliases
+recursive-include gtdzen/migrations/versions *.sql
View
3 dbmanage.py
@@ -5,7 +5,8 @@
from migrate.versioning.shell import main
import os.path
+import gtdzen
#db_url = 'sqlite:///' + os.path.expanduser('~/todo.sqlite')
db_url = 'sqlite:///todo.sqlite'
-main(url=db_url,repository='migrations')
+main(url=db_url,repository=os.path.join(os.path.dirname(gtdzen.__file__), 'migrations'))
View
8 gtdzen/__init__.py
@@ -8,19 +8,17 @@
try:
from elixir import metadata, setup_all, create_all, session
from models import *
-except ImportError:
- sys.stderr.write('error, Elixir not found')
-try:
from sqlalchemy.sql import not_
except ImportError:
- sys.stderr.write('error, SQLAlchemy not found')
+ """Ignore this imports because they may fail
+ during __version__ import."""
from utils import get_or_create, make_list
from pdb import set_trace
from exceptions import *
-__version__ = '0.1.1'
+__version__ = '0.1.2'
__all__ = ['GTD']
class GTD(object):
View
0 migrations/README → gtdzen/migrations/README
File renamed without changes.
View
0 migrations/versions/__init__.py → gtdzen/migrations/__init__.py
File renamed without changes.
View
0 migrations/manage.py → gtdzen/migrations/manage.py
File renamed without changes.
View
0 migrations/migrate.cfg → gtdzen/migrations/migrate.cfg
File renamed without changes.
View
0 migrations/versions/001_sqlite_downgrade.sql → ...rations/versions/001_sqlite_downgrade.sql
File renamed without changes.
View
0 migrations/versions/001_sqlite_upgrade.sql → ...igrations/versions/001_sqlite_upgrade.sql
File renamed without changes.
View
0 migrations/versions/002_sqlite_downgrade.sql → ...rations/versions/002_sqlite_downgrade.sql
File renamed without changes.
View
0 migrations/versions/002_sqlite_upgrade.sql → ...igrations/versions/002_sqlite_upgrade.sql
File renamed without changes.
View
0 migrations/__init__.py → gtdzen/migrations/versions/__init__.py
File renamed without changes.
View
3 setup.py
@@ -15,6 +15,8 @@
keywords = 'GTD, TODO, time management',
url = 'http://github.com/svetlyak40wt/gtdzen/',
packages = find_packages(),
+ include_package_data = True,
+ zip_safe = False,
scripts = ['gtd'],
classifiers = [
'Development Status :: 3 - Alpha',
@@ -32,6 +34,7 @@
install_requires = [
'SQLAlchemy',
'Elixir',
+ 'sqlalchemy-migrate',
],
)

0 comments on commit aa2d081

Please sign in to comment.