-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (41 loc) · 1.62 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
#!/usr/bin/env python
"""Setup script for packaging openpyxl.
Requires setuptools.
To build the setuptools egg use
python setup.py bdist_egg
and either upload it to the PyPI with:
python setup.py upload
or upload to your own server and register the release with PyPI:
python setup.py register
A source distribution (.zip) can be built with
python setup.py sdist --format=zip
That uses the manifest.in file for data files rather than searching for
them here.
"""
from setuptools import setup, Extension, find_packages
import sys
import openpyxl#to fetch __version__ etc
setup(name = 'openpyxl',
packages = find_packages('.'),
include_package_data = True,
package_dir = {'': '.'},
# Doesn't affect zip distribution. Must modify MANIFEST.in too.
package_data = {'': ['openpyxl/tests/*.xml', 'openpyxl/tests/*.xslx']},
# metadata
version = openpyxl.__version__,
description = "A Python library to read/write Excel 2007 xlsx/xlsm files",
long_description = 'openpyxl is a pure python reader and writer of '
'Excel OpenXML files. It is ported from the PHPExcel project',
author = openpyxl.__author__,
author_email = openpyxl.__author_email__,
url = openpyxl.__url__,
license = openpyxl.__license__,
download_url = openpyxl.__downloadUrl__,
test_suite = 'nose.collector',
classifiers = ['Development Status :: 4 - Beta',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python'],
)