Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Commit ae8a21b

Browse files
committed
Merge pull request #1 from bergundy/master
setup.py now installs MySQL-python as dependency
2 parents 4ee1e52 + 20e99ea commit ae8a21b

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

src/setup.py renamed to setup.py

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/usr/bin/env python
22

33
from distutils.core import setup
4-
import PySQLPool
4+
5+
__version__ = '0.4'
6+
__author__ = 'Nick Verbeck'
7+
__author_email__ = '[email protected]'
58

69
setup(name='PySQLPool',
7-
version=PySQLPool.__version__,
8-
author=PySQLPool.__author__,
9-
author_email=PySQLPool.__author_email__,
10+
version=__version__,
11+
author=__author__,
12+
author_email=__author_email__,
1013
license='LGPL V3',
1114
platforms=['ALL'],
1215
description='Python MySQL Connection Pooling and MySQL Query management',
@@ -18,7 +21,8 @@
1821
'Programming Language :: Python',
1922
'Operating System :: OS Independent',
2023
'Development Status :: 5 - Production/Stable'],
21-
requires=['MySQL-python'],
24+
install_requires=['MySQL_python'],
2225
provides=['pysqlpool','PySQLPool'],
23-
packages=['PySQLPool']
24-
)
26+
packages=['PySQLPool'],
27+
package_dir={'PySQLPool': 'src/PySQLPool'}
28+
)

update_version.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
sed -e "s#^__version__ = .*#__version__ = '$1'#" -i src/PySQLPool/__init__.py setup.py

0 commit comments

Comments
 (0)