Skip to content

Commit

Permalink
#45: Improvements on the build to make it compatible with other Pytho…
Browse files Browse the repository at this point in the history
…n versions.
  • Loading branch information
guilhermechapiewski committed Jun 16, 2009
1 parent e4e7b00 commit 8764394
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
9 changes: 7 additions & 2 deletions Makefile
Expand Up @@ -2,15 +2,17 @@

help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " clean to clean garbage"
@echo " clean to clean garbage left by builds and installation"
@echo " test to execute all simple-db-migrate tests"
@echo " coverage to execute simple-db-migrate coverage report"
@echo " install to install simple-db-migrate"
@echo " build to build without installing simple-db-migrate"
@echo " publish to publish the package to PyPI"
@echo " "

clean:
@echo "Cleaning garbage..."
@rm -rf build dist src/simple_db_migrate.egg-info *.pyc *~
@rm -rf build dist src/simple_db_migrate.egg-info simple_db_migrate.egg-info *.pyc *~
@echo "Done."

test:
Expand All @@ -22,5 +24,8 @@ coverage:
install:
@/usr/bin/env python ./setup.py install

build:
@/usr/bin/env python ./setup.py build

publish:
@python setup.py bdist_egg upload
5 changes: 2 additions & 3 deletions setup.py
Expand Up @@ -9,8 +9,8 @@
setup(
name = "simple-db-migrate",
version = simple_db_migrate_version,
packages = find_packages("src"),
package_dir = {"":"src"},
packages = ["simple_db_migrate"],
package_dir = {"simple_db_migrate": "src/simple_db_migrate"},
scripts = ["src/db-migrate"],
author = "Guilherme Chapiewski",
author_email = "guilherme.chapiewski@gmail.com",
Expand All @@ -19,5 +19,4 @@
keywords = "database migration tool mysql",
url = "http://guilhermechapiewski.github.com/simple-db-migrate/",
long_description = "simple-db-migrate is a database versioning and migration tool inspired on Rails Migrations. This tool helps you easily refactor, manage and track your database schema. The main difference is that Rails migrations are intended to be used only on Ruby projects while simple-db-migrate makes it possible to have migrations in any language (Java, Python, Ruby, PHP, whatever). This is possible because simple-db-migrate uses database's DDL (Data Definition Language) to do the database operations, while Rails Migrations are written in a Ruby internal DSL.",
download_url = "http://github.com/guilhermechapiewski/simple-db-migrate",
)
2 changes: 1 addition & 1 deletion src/db-migrate
Expand Up @@ -4,7 +4,7 @@ from simple_db_migrate.cli import CLI
from simple_db_migrate.core import Config
from simple_db_migrate.main import Main

SIMPLE_DB_MIGRATE_VERSION = "1.2.7"
SIMPLE_DB_MIGRATE_VERSION = "1.2.7.1"

(options, args) = CLI().parse()

Expand Down

0 comments on commit 8764394

Please sign in to comment.