-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
81 lines (76 loc) · 1.89 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
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages, Extension
with open('README.rst') as readme:
long_description = readme.read()
ext_libraries = [
'zxing'
]
if sys.platform == 'darwin':
ext_libraries += [
'iconv'
]
setup(
name='zxinglight',
version='1.1.0',
description='A simple ZXing C++ wrapper',
long_description=long_description,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: C++',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Image Recognition',
],
keywords=[
'zxing',
'barcode',
'QR code'
],
author='Ľubomír Kučera',
author_email='lubomir.kucera.jr@gmail.com',
url='https://github.com/lubo/zxinglight',
license='MIT',
packages=find_packages(exclude=[
'tests'
]),
ext_modules=[
Extension(
name='zxinglight._zxinglight',
language='c++',
sources=[
'zxinglight/_zxinglight.cpp'
],
extra_compile_args=[
'-std=c++11'
],
libraries=ext_libraries,
),
],
include_package_data=True,
zip_safe=False,
setup_requires=[
'setuptools',
],
install_requires=[
'Pillow'
],
extras_require={
'docs': [
'Sphinx',
'sphinx-autobuild',
'sphinx_rtd_theme'
],
'test': [
'flake8',
'flake8-bugbear',
'nose',
'pep8-naming'
]
}
)