forked from douban/douban-sqlstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (50 loc) · 1.34 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
from setuptools import setup, find_packages
# package meta info
NAME = "DoubanSQLStore"
VERSION = "0.0.1"
DESCRIPTION = ""
AUTHOR = "Qiangning Hong"
AUTHOR_EMAIL = "[email protected]"
LICENSE = "revised BSD"
URL = "https://github.com/douban/douban-sqlstore"
KEYWORDS = "MySQL"
CLASSIFIERS = []
# package contents
MODULES = []
PACKAGES = find_packages(exclude=['tests.*',
'tests',
'examples.*',
'examples'])
ENTRY_POINTS = """
"""
# dependencies
INSTALL_REQUIRES = ['MySQL-python==1.2.4']
TESTS_REQUIRE = ['mock', 'nose']
TEST_SUITE = 'nose.collector'
here = os.path.abspath(os.path.dirname(__file__))
def read_long_description(filename):
path = os.path.join(here, filename)
if os.path.exists(path):
return open(path).read()
return ""
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=read_long_description('README.md'),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
url=URL,
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
py_modules=MODULES,
packages=PACKAGES,
install_package_data=True,
zip_safe=False,
entry_points=ENTRY_POINTS,
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
test_suite=TEST_SUITE,
)