This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (60 loc) · 2.07 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 -- Lars Heuer - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# License: BSD License
#
"""\
Setup script.
:author: Lars Heuer (heuer[at]semagia.com)
:organization: Semagia - http://www.semagia.com/
:license: BSD License
"""
from __future__ import absolute_import, unicode_literals
from setuptools import setup, find_packages
import os
import io
import re
def read(*filenames, **kwargs):
base_path = os.path.dirname(os.path.realpath(__file__))
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(os.path.join(base_path, filename), encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
version = re.search(r'''^__version__ = ["']([^'"]+)['"]''',
read('segno_mimos/__init__.py'), flags=re.MULTILINE).group(1)
setup(
name='segno-mimos',
version=version,
url='https://github.com/heuer/segno-mimos/',
description='Emulating PyQRCode and qrcode API using the Segno (Micro) QR Code generator',
long_description=read('README.rst', 'CHANGES.rst'),
license='BSD',
author='Lars Heuer',
author_email='heuer@semagia.com',
platforms=['any'],
packages=find_packages(exclude=['docs', 'tests']),
install_requires=['segno'],
include_package_data=True,
keywords=['QR Code', 'Micro QR Code', 'ISO/IEC 18004',
'ISO/IEC 18004:2006(E)', 'ISO/IEC 18004:2015(E)'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Graphics',
'Topic :: Printing',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)