forked from jwilk/didjvu
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
76 lines (69 loc) · 2.26 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
# Copyright © 2010-2018 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of didjvu.
#
# didjvu is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# didjvu is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
from setuptools import setup, find_packages
from pathlib import Path
ROOT_DIRECTORY = Path(__file__).parent.resolve()
def get_version():
changelog = ROOT_DIRECTORY / 'doc' / 'changelog'
with open(changelog, mode='r') as fd:
line = fd.readline()
return line.split()[1].strip('()')
setup(
name='didjvu',
description='DjVu encoder with foreground/background separation (Python 3 fork) ',
version=get_version(),
license='GNU GPL 2',
long_description=(ROOT_DIRECTORY / 'README.rst').read_text(encoding='utf-8'),
long_description_content_type='text/x-rst',
author='Jakub Wilk, FriedrichFröbel (Python 3)',
url='https://github.com/FriedrichFroebel/didjvu/',
packages=find_packages(
where='.',
exclude=['tests', 'tests.*', 'private', 'private.*']
),
include_package_data=True,
python_requires=">=3.6, <4",
install_requires=[
'gamera>=4.0.0',
'Pillow',
],
extras_require={
'dev': [
'coverage',
'flake8',
'pep8-naming',
],
'docs': [
'docutils',
'pygments',
]
},
entry_points={
'console_scripts': [
'didjvu=didjvu.__main__:main',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Text Processing',
'Topic :: Multimedia :: Graphics',
]
)