This repository has been archived by the owner on Jan 5, 2018. It is now read-only.
forked from DIYBookScanner/spreads
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
117 lines (112 loc) · 4.18 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env python2.7
import os
from setuptools import setup
import spreads
if os.path.exists('README.rst'):
description_long=open('README.rst').read()
else:
description_long="""
spreads is a tool that aims to streamline your book scanning workflow. It
takes care of every step=Setting up your capturing devices, handling the
capturing process, downloading the images to your machine, post-processing them
and finally assembling a variety of output formats.
Along the way you can always fine-tune the auto-generated results either by
supplying arguments or changing the configuration beforehand, or by inspecting
the output and applying your modifications.
It is meant to be fully customizable. This means, adding support for new
devices is made as painless as possible. You can also hook into any of the
commands by implementing one of the available plugin hooks or even implement
your own custom sub-commands.
"""
setup(
name="spreads",
version=spreads.__version__,
author="Johannes Baiter",
author_email="johannes.baiter@gmail.com",
url="http://spreads.readthedocs.org",
description="Book digitization workflow suite",
long_description=description_long,
license="GNU AGPLv3",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: POSIX",
"Programming Language :: Python :: 2.7",
"Topic :: Multimedia :: Graphics :: Capture",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
],
keywords=[
"digitization",
"scanning",
"chdk",
"diybookscanner",
"bookscanning",
],
packages=[
"spreads",
"spreads.vendor",
"spreads.vendor.huey",
"spreads.vendor.huey.backends",
"spreadsplug",
"spreadsplug.dev",
"spreadsplug.gui",
"spreadsplug.web",
],
scripts=[
"spread"
],
package_data={
'spreads': ['config_default.yaml'],
'spreadsplug.gui': ['pixmaps/monk.png'],
'spreadsplug.web': ['client/index.html', 'client/spreads.css',
'client/spreads.min.js', 'client/spreads.js',
'client/foundation/css/*', 'client/foundation/fonts/*',
'client/foundation/js/foundation.js',
'client/foundation/js/foundation.min.js',
'client/fonts/*',
]
},
entry_points={
'spreadsplug.devices': [
"chdkcamera=spreadsplug.dev.chdkcamera:CHDKCameraDevice",
],
'spreadsplug.hooks': [
"autorotate =spreadsplug.autorotate:AutoRotatePlugin",
"scantailor =spreadsplug.scantailor:ScanTailorPlugin",
"pdfbeads =spreadsplug.pdfbeads:PDFBeadsPlugin",
"djvubind =spreadsplug.djvubind:DjvuBindPlugin",
"tesseract =spreadsplug.tesseract:TesseractPlugin",
"gui =spreadsplug.gui:GuiCommand",
"web =spreadsplug.web:WebCommands",
"intervaltrigger=spreadsplug.intervaltrigger:IntervalTrigger",
"hidtrigger =spreadsplug.hidtrigger:HidTrigger",
]
},
install_requires=[
"colorama>=0.2.5",
"PyYAML>=3.10",
"futures >= 2.1.4",
"blinker == 1.3",
],
extras_require={
"chdkcamera": ["pyusb >= 1.0.0b1", "jpegtran-cffi >= 0.4"],
"autorotate": ["jpegtran-cffi >= 0.4"],
"gui": ["PySide >= 1.2.1"],
"hidtrigger": ["hidapi-cffi >= 0.1"],
"scantailor": ["psutil == 2.0.0"],
"web": [
"Flask >= 0.10.1",
"jpegtran-cffi >= 0.4",
"requests >= 2.2.0",
"waitress >= 0.8.8",
"zipstream >= 1.0.2",
"tornado == 3.2"
]
}
)