forked from lincolnloop/python-qrcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (55 loc) · 1.83 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
#!/usr/bin/env python
from __future__ import unicode_literals
import io
import os
from setuptools import setup, find_packages
import sys
def long_description():
"""
Build the long description from a README file located in the same directory
as this module.
"""
base_path = os.path.dirname(os.path.realpath(__file__))
content = []
for name in ('README.rst', 'CHANGES.rst'):
with io.open(os.path.join(base_path, name), encoding='utf-8') as f:
content.append(f.read())
return '\n\n'.join(content)
# Colorama is needed for proper terminal support on MS platforms
if sys.platform.startswith(('win', 'cygwin')):
dependencies = ['six', 'colorama']
else:
dependencies = ['six']
setup(
name='qrcode',
version='5.3.post',
url='https://github.com/lincolnloop/python-qrcode',
description='QR Code image generator',
license='BSD',
long_description=long_description(),
author='Lincoln Loop',
author_email='[email protected]',
platforms=['any'],
packages=find_packages(),
entry_points={
'console_scripts': [
'qr = qrcode.console_scripts:main',
],
},
install_requires=dependencies,
data_files=[('share/man/man1', ['doc/qr.1'])],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)