Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… editable installation
  • Loading branch information...
commit 0e33fdac0433c4b4d2abbb8ae108d03e7f57f2af 1 parent e5bf93b
Hugo Lopes Tavares hltbra authored
8 Makefile
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:
7 setup.py
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.",
0  src/__init__.py → simple_db_migrate/__init__.py
View
File renamed without changes
0  src/cli.py → simple_db_migrate/cli.py
View
File renamed without changes
0  src/config.py → simple_db_migrate/config.py
View
File renamed without changes
0  src/core/__init__.py → simple_db_migrate/core/__init__.py
View
File renamed without changes
0  src/core/exceptions.py → simple_db_migrate/core/exceptions.py
View
File renamed without changes
0  src/helpers.py → simple_db_migrate/helpers.py
View
File renamed without changes
0  src/log.py → simple_db_migrate/log.py
View
File renamed without changes
0  src/main.py → simple_db_migrate/main.py
View
File renamed without changes
0  src/mysql.py → simple_db_migrate/mysql.py
View
File renamed without changes
2  tests/cli_test.py
View
@@ -1,6 +1,6 @@
import unittest
-from cli import *
+from simple_db_migrate.cli import *
class CLITest(unittest.TestCase):
2  tests/config_test.py
View
@@ -1,7 +1,7 @@
import codecs
import unittest
-from config import *
+from simple_db_migrate.config import *
class ConfigTest(unittest.TestCase):
4 tests/core/core_test.py
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')
2  tests/helpers_test.py
View
@@ -1,6 +1,6 @@
import unittest
-from helpers import *
+from simple_db_migrate.helpers import *
class ListsTest(unittest.TestCase):
6 tests/main_test.py
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()
4 tests/mysql_test.py
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):
Please sign in to comment.
Something went wrong with that request. Please try again.