Commit 57e7d5e2 authored by Merlijn Wajer's avatar Merlijn Wajer
Browse files

setup: initial attempt at pypi packaging

parent 27230602
COPYING
\ No newline at end of file
__version__ = '1.1.7' __version__ = '1.1.8'
[metadata]
description-file = README.rst
...@@ -6,17 +6,30 @@ ver_path = convert_path('hocr/version.py') ...@@ -6,17 +6,30 @@ ver_path = convert_path('hocr/version.py')
with open(ver_path) as ver_file: with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns) exec(ver_file.read(), main_ns)
setup(name='hocr', version = main_ns['__version__']
version=main_ns['__version__'], setup(name='archive-hocr-tools',
version=version,
packages=['hocr'],
description='hOCR (streaming) parsers and writers', description='hOCR (streaming) parsers and writers',
author='Merlijn Boris Wolf Wajer', author='Merlijn Boris Wolf Wajer',
author_email='merlijn@archive.org', author_email='merlijn@archive.org',
packages=['hocr'], url='https://github.com/internetarchive/archive-hocr-tools',
download_url='https://github.com/internetarchive/archive-hocr-tools/archive/%s.tar.gz' % version,
keywords=['hOCR', 'Internet Archive'],
license='AGPL-3.0',
scripts=['bin/hocr-combine-stream', 'bin/hocr-fold-chars', scripts=['bin/hocr-combine-stream', 'bin/hocr-fold-chars',
'bin/hocr-text', 'bin/fts-text-annotate', 'bin/hocr-text', 'bin/fts-text-annotate',
'bin/fts-text-match', 'bin/hocr-lookup-check', 'bin/fts-text-match', 'bin/hocr-lookup-check',
'bin/hocr-lookup-create', 'bin/hocr-lookup-reconstruct', 'bin/hocr-lookup-create', 'bin/hocr-lookup-reconstruct',
'bin/hocr-text-paragraphs', 'bin/hocr-extract-page', 'bin/hocr-text-paragraphs', 'bin/hocr-extract-page',
'bin/abbyy-to-hocr'], 'bin/abbyy-to-hocr'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python :: 3',
],
python_requires='>=3.6',
include_package_data=True, include_package_data=True,
install_requires=['lxml-4.6.3'],
package_data={'hocr': ['data/*']}) package_data={'hocr': ['data/*']})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment