-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
60 lines (51 loc) · 1.72 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
def load_requirements(filename: str):
with open(filename) as req_file:
requirements = [
req for req in req_file.read().split('\n')
if '-e .' not in req
]
return requirements
dev_dependencies = load_requirements('requirements-dev.txt')
setup(
author="Marco Scheidhuber",
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
description="Processing custom tasks in the ecosystem of the [OCR-D](https://github.com/OCR-D) project.",
entry_points={
'console_scripts': [
'ocrd_butler=ocrd_butler.cli:main',
],
},
install_requires=load_requirements('requirements.txt'),
license="MIT",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='ocrd_butler',
name='ocrd_butler',
packages=find_packages(include=['ocrd_butler']),
test_suite='tests',
tests_require=dev_dependencies,
extras_require={
'dev': dev_dependencies,
},
url='https://github.com/StaatsbibliothekBerlin/ocrd_butler',
version='0.1.0',
zip_safe=False,
)