forked from jmcnamara/XlsxWriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (46 loc) · 1.54 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
import sys
import subprocess
from warnings import warn
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
if sys.version_info < (2, 5, 0):
warn("The minimum Python version supported by XlsxWriter is 2.5.")
exit()
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['python', '-m', 'unittest', 'discover'])
raise SystemExit(errno)
setup(
name='XlsxWriter',
version='1.1.1',
author='John McNamara',
author_email='[email protected]',
url='https://github.com/jmcnamara/XlsxWriter',
packages=['xlsxwriter'],
scripts=['examples/vba_extract.py'],
cmdclass={'test': PyTest},
license='BSD',
description='A Python module for creating Excel XLSX files.',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)