-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
35 lines (32 loc) · 1.43 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
27
28
29
30
31
32
33
34
35
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="dbmigrate-treebo", # Replace with your own username
version="0.0.1",
author="Rohit Jain",
author_email="rohit.jain@treebohotels.com",
description="Package to manage database migration",
long_description="""This package is to manage database migration of a Python project. It includes:
- Command to generate blank migration file
- Command to initialize the migration one or more fresh databases
- Command to apply the unapplied migrations on one or more databases.
- Command to rollback the last applied migration
- Command to dump the current table structure of the database
This package takes care of generating a migration file in a specific template, which is understood by the package,
to apply the migration. It's suggested to not generate a migration file manually, or tweak the migration file
template that is generated.
""",
long_description_content_type="text/markdown",
url="git@bitbucket.org:treebo/dbmigrate.git",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
entry_points={
'console_scripts': ['dbmigrate=dbmigrate.cli:main']
}
)