forked from jmcnamara/XlsxWriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (48 loc) · 1.63 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 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 < (3, 6):
warn("The minimum Python version supported by XlsxWriter is 3.6")
sys.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='3.2.0',
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-2-Clause',
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 :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
python_requires='>=3.6',
)