-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (32 loc) · 976 Bytes
/
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
#coding: utf-8
import re
from setuptools import setup
from email.utils import parseaddr
declaration = open('api/__init__.py').read()
def grep(item):
pattern = re.compile('__%s__ = \'(.*)\'' % item)
return pattern.findall(declaration)[0]
author, author_email = parseaddr(grep('author'))
setup(
name='GDUT Library API',
version=grep('version'),
author=author,
author_email=author_email,
url=grep('homepage'),
description='Provide a programmable API for GDUT library.',
long_description=open('README.mkd').read(),
license='BSD',
packages=['api', 'api.tests'],
install_requires=[
'pyquery>=1.2.4',
'requests>=1.2.3',
'nose>=1.3.0'
],
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'License :: OSI Approved :: BSD License'
]
)