forked from guilhermechapiewski/simple-db-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·26 lines (22 loc) · 1.44 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from setuptools import setup, find_packages
import re
f = open("src/db-migrate")
content = f.read()
f.close()
simple_db_migrate_version = re.match(r".*SIMPLE_DB_MIGRATE_VERSION = \"(.*)\"\n.*", content, re.S).group(1)
setup(
name = "simple-db-migrate",
version = simple_db_migrate_version,
packages = find_packages("src"),
package_dir = {"":"src"},
scripts = ["src/db-migrate"],
install_requires = ["mysql-python>=1.2.2"],
author = "Guilherme Chapiewski",
author_email = "[email protected]",
description = "simple-db-migrate is a database versioning and migration tool inspired on Rails Migrations.",
license = "Apache License 2.0",
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",
)