forked from Apkawa/xlsx2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (69 loc) · 2.17 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# coding: utf-8
# !/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
version = '0.2.2'
if sys.argv[-1] == 'publish':
try:
import wheel
print("Wheel version: ", wheel.__version__)
except ImportError:
print('Wheel library missing. Please run "pip install wheel"')
sys.exit()
os.system('python setup.py clean')
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
sys.exit()
if sys.argv[1] == 'bumpversion':
print("bumpversion")
try:
part = sys.argv[2]
except IndexError:
part = 'patch'
os.system("bumpversion --config-file setup.cfg %s" % part)
sys.exit()
__doc__ = """A generic api for oauth2"""
project_name = 'xlsx2html'
app_name = 'xlsx2html'
ROOT = os.path.dirname(__file__)
def read(fname):
return open(os.path.join(ROOT, fname)).read()
setup(
name=project_name,
version=version,
description=__doc__,
long_description=read('README.md'),
long_description_content_type='text/markdown',
url="https://github.com/Apkawa/%s" % project_name,
author="Apkawa",
author_email='[email protected]',
packages=[package for package in find_packages() if package.startswith(app_name)],
python_requires='>=3.6, <4',
install_requires=[
'six',
'openpyxl>=2.4.8',
'babel>=2.3.4',
'packaging>=20.4',
],
zip_safe=False,
include_package_data=True,
license='MIT',
keywords='converter xlsx html',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Text Processing',
'Topic :: Text Processing :: Markup :: HTML',
],
)