-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
executable file
·50 lines (44 loc) · 1.38 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = 'https://github.com/axiaoxin/json2xls/blob/master/README.md'
with open(os.path.join(os.path.dirname(__file__),
'json2xls/__init__.py')) as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
requirements = ["click", "requests", "xlwt"]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='json2xls',
version=version,
description='generate excel by json',
long_description=readme,
author='axiaoxin',
author_email='[email protected]',
url='https://github.com/axiaoxin/json2xls',
packages=[
'json2xls',
],
package_dir={'json2xls': 'json2xls'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='json2xls',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
],
test_suite='tests',
tests_require=test_requirements,
entry_points={'console_scripts': ['json2xls = json2xls.json2xls:make']})