Skip to content

Commit d3c5a3a

Browse files
committed
PLAT-245 -- Add setup.py and tox.ini
1 parent b3bcf1b commit d3c5a3a

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

setup.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env python
2+
from codecs import open
3+
import os
4+
from setuptools import setup, find_packages
5+
6+
7+
here = os.path.abspath(os.path.dirname(__file__))
8+
9+
10+
with open(os.path.join(here, 'README.rst'), 'r', 'utf-8') as stream:
11+
readme = stream.read()
12+
13+
14+
setup(
15+
name='sqlalchemy-diff',
16+
version='0.0.1',
17+
description='Compare two database schemas using sqlalchemy.',
18+
long_description=readme,
19+
author='student.com',
20+
author_email='[email protected]', # TODO - Add proper email here
21+
url='https://github.com/Overseas-Student-Living/sqlalchemy-diff',
22+
packages=find_packages(exclude=['docs', 'test', 'test.*']),
23+
install_requires=[
24+
"six==1.10.0",
25+
"mock==1.3.0",
26+
"mysql-connector-python==2.0.4",
27+
"sqlalchemy-utils==0.31.2",
28+
],
29+
extras_require={
30+
'dev': [
31+
"pytest==2.8.2",
32+
],
33+
'docs': [
34+
"Sphinx==1.3.1",
35+
],
36+
},
37+
entry_points={
38+
'pytest11': [
39+
'sqlalchemy_diff=sqlalchemydiff.pyfixtures'
40+
]
41+
},
42+
zip_safe=True,
43+
license='Apache License, Version 2.0',
44+
classifiers=[
45+
"Programming Language :: Python",
46+
"Operating System :: Linux",
47+
"Programming Language :: Python :: 2",
48+
"Programming Language :: Python :: 2.7",
49+
"Programming Language :: Python :: 3",
50+
"Programming Language :: Python :: 3.3",
51+
"Programming Language :: Python :: 3.4",
52+
"Topic :: Internet",
53+
"Topic :: Software Development :: Libraries :: Python Modules",
54+
"Intended Audience :: Developers",
55+
]
56+
)

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
envlist = py27,py33,py34
3+
skipdist=True
4+
skip_missing_interpreters=True
5+
6+
[testenv]
7+
commands =
8+
pip install -e ".[dev]" --allow-external mysql-connector-python
9+
py.test

0 commit comments

Comments
 (0)