Permalink
Browse files

changed src package to be simple_db_migrate one - made it easy to use…

… editable installation
  • Loading branch information...
1 parent e5bf93b commit 0e33fdac0433c4b4d2abbb8ae108d03e7f57f2af @hltbra hltbra committed Nov 3, 2010
View
@@ -14,21 +14,21 @@ help:
clean:
@echo "Cleaning..."
- @rm -rf build dist src/simple_db_migrate.egg-info simple_db_migrate.egg-info *.pyc **/*.pyc *~ *.migration *.foo
+ @rm -rf build dist simple_db_migrate.egg-info *.pyc **/*.pyc *~ *.migration *.foo
@#removing test temp files
@rm -rf `date +%Y`*
compile: clean
@echo "Compiling source code..."
- @rm -rf src/*.pyc
+ @rm -rf simple_db_migrate/*.pyc
@rm -rf tests/*.pyc
- @python -tt -m compileall src
+ @python -tt -m compileall simple_db_migrate
@python -tt -m compileall tests
test: compile
@make clean
@echo "Starting tests..."
- @nosetests -s --verbose --with-coverage --cover-erase --cover-package=cli,config,core,helpers,main,mysql tests/*
+ @nosetests -s --verbose --with-coverage --cover-erase --cover-package=simple_db_migrate tests
@make clean
install:
View
@@ -1,13 +1,12 @@
from setuptools import setup, find_packages
import re
-import src
+import simple_db_migrate
setup(
name = "simple-db-migrate",
- version = src.SIMPLE_DB_MIGRATE_VERSION,
- packages = ["simple_db_migrate", "simple_db_migrate.core"],
- package_dir = {"simple_db_migrate": "src"},
+ version = simple_db_migrate.SIMPLE_DB_MIGRATE_VERSION,
+ packages = find_packages(),
author = "Guilherme Chapiewski",
author_email = "guilherme.chapiewski@gmail.com",
description = "simple-db-migrate is a database versioning and migration tool inspired on Rails Migrations.",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,6 +1,6 @@
import unittest
-from cli import *
+from simple_db_migrate.cli import *
class CLITest(unittest.TestCase):
View
@@ -1,7 +1,7 @@
import codecs
import unittest
-from config import *
+from simple_db_migrate.config import *
class ConfigTest(unittest.TestCase):
View
@@ -4,8 +4,8 @@
import stubs
import unittest
-from config import *
-from core import *
+from simple_db_migrate.config import *
+from simple_db_migrate.core import *
def create_file(file_name, content=None):
f = codecs.open(file_name, 'w', 'utf-8')
View
@@ -1,6 +1,6 @@
import unittest
-from helpers import *
+from simple_db_migrate.helpers import *
class ListsTest(unittest.TestCase):
View
@@ -1,8 +1,8 @@
from mox import Mox
import unittest
-from main import *
-from core import Migration
+from simple_db_migrate.main import *
+from simple_db_migrate.core import Migration
class MainTest(unittest.TestCase):
@@ -61,7 +61,7 @@ def migrate(self):
mox.VerifyAll()
def test_it_should_create_new_migration(self):
- import core
+ from simple_db_migrate import core
from time import strftime
mox = Mox()
View
@@ -2,8 +2,8 @@
import os
import unittest
-from config import *
-from mysql import *
+from simple_db_migrate.config import *
+from simple_db_migrate.mysql import *
class MySQLTest(unittest.TestCase):

0 comments on commit 0e33fda

Please sign in to comment.