This repository has been archived by the owner on Jul 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·71 lines (62 loc) · 2.04 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ConfigParser import SafeConfigParser
from setuptools import setup, find_packages
import codecs
import os
import sys
version_config = SafeConfigParser()
version_config.readfp(open(
os.path.join(os.path.dirname(__file__), 'VERSION.cfg')))
VERSION = version_config.get('version', 'working')
DISTRIBUTION_NAME = 'excelize'
SHORT_DESCRIPTION = 'Convenience wrapper for openpyxl'
if os.path.exists("README.md"):
LONG_DESCRIPTION = codecs.open("README.md", "r", "utf-8").read()
else:
LONG_DESCRIPTION = SHORT_DESCRIPTION
PROJECT_URL = 'https://github.com/55minutes/excelize'
DOWNLOAD_URL = '{0}/archive/master.tar.gz'.format(PROJECT_URL)
REQUIRES = ['clt-utils', 'openpyxl', 'unicodecsv']
if sys.version_info < (2, 7):
REQUIRES.append('argparse')
# Setup the project directory
setup(
name=DISTRIBUTION_NAME,
version=VERSION,
author='55 Minutes',
author_email='[email protected]',
maintainer='55 Minutes',
maintainer_email='[email protected]',
url=PROJECT_URL,
description=SHORT_DESCRIPTION,
long_description=LONG_DESCRIPTION,
download_url=DOWNLOAD_URL,
platforms=['any'],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable'
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Utilties',
],
license='All Rights Reserved (c) 2012 55 Minutes',
entry_points={
'console_scripts': [
'excelize = excelize.bin.excelize:main',
]
},
packages=find_packages(),
zip_safe=False,
include_package_data=True,
dependency_links=[
('https://github.com/55minutes/clt-utils/archive/v1.0.2.tar.gz'
'#egg=clt-utils-1.0.2'),
],
install_requires=REQUIRES,
)