forked from hnesk/browse-ocrd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (56 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
61
# -*- coding: utf-8 -*-
import codecs
import subprocess
import setuptools
from setuptools import setup
from ocrd_browser import __version__
install_requires = open('requirements.txt').read().split('\n')
print("Generating gresource bundle")
subprocess.call(
[
"glib-compile-resources",
"--sourcedir=gresources",
"--target=ocrd_browser/ui.gresource",
"gresources/ocrd-browser.gresource.xml",
]
)
setup(
name='browse-ocrd',
version=__version__,
author='Johannes Künsebeck',
author_email='[email protected]',
description='An extensible viewer for OCR-D workspaces',
license='MIT License',
long_description=codecs.open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url="https://github.com/hnesk/browse-ocrd",
packages=setuptools.find_packages(),
install_requires=install_requires,
include_package_data=True,
setup_requires=['wheel'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: GTK',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Image Recognition'
],
keywords=['OCR', 'OCR-D', 'mets', 'PAGE Xml'],
entry_points={
'console_scripts': [
'browse-ocrd = ocrd_browser.main:main',
],
'ocrd_browser_view': [
'xml = ocrd_browser.view:ViewXml',
'html = ocrd_browser.view:ViewHtml',
'text = ocrd_browser.view:ViewText',
'images = ocrd_browser.view:ViewImages'
],
},
package_data={
'' : ['*.gresource','*.ui', '*.xml']
},
)