forked from python-excel/xlrd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (51 loc) · 1.84 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
#!/usr/bin/env python
from os import path
import sys
python_version = sys.version_info[:2]
if python_version < (2, 6):
raise Exception("This version of xlrd requires Python 2.6 or above. "
"For older versions of Python, you can use the 0.8 series.")
av = sys.argv
if len(av) > 1 and av[1].lower() == "--egg":
del av[1]
from setuptools import setup
else:
from distutils.core import setup
from xlrd.info import __VERSION__
setup(
name = 'xlrd',
version = __VERSION__,
author = 'John Machin',
author_email = '[email protected]',
url = 'http://www.python-excel.org/',
packages = ['xlrd'],
scripts = [
'scripts/runxlrd.py',
],
package_data={
'xlrd': [
'doc/*.htm*',
# 'doc/*.txt',
'examples/*.*',
],
},
description = 'Library for developers to extract data from Microsoft Excel (tm) spreadsheet files',
long_description = \
"Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards) on any platform. " \
"Pure Python (2.6, 2.7, 3.2+). Strong support for Excel dates. Unicode-aware.",
platforms = ["Any platform -- don't need Windows"],
license = 'BSD',
keywords = ['xls', 'excel', 'spreadsheet', 'workbook'],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Database',
'Topic :: Office/Business',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)