-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathsetup.py
74 lines (66 loc) · 2.21 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
# coding: utf-8
from pathlib import Path
from setuptools import find_packages, setup
from bookworm import app
# Invalid requirement specifier prefixes
INVALID_PREFIXES = (
"http://",
"https://",
"git+",
)
CWD = Path(__file__).parent
LONG_DESCRIPTION = "Bookworm is the universally accessible document reader.\nVisit [the project's home](https://github.com/blindpandas/bookworm) for more information."
REQUIREMENTS = []
with open(CWD / "requirements-app.txt", "r", encoding='utf-8') as reqs:
for line in reqs:
if any(line.startswith(prfx) for prfx in INVALID_PREFIXES):
continue
REQUIREMENTS.append(line)
setup(
name=app.name,
version=app.version,
author=app.author,
author_email=app.author_email,
description="The universally accessible document reader",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/mush42/bookworm/",
download_url=app.website,
license="GPL v2.0",
packages=find_packages(exclude=["tests"]),
include_package_data=True,
zip_safe=False,
entry_points={
"gui_scripts": ["bookworm=bookworm.__main__:main"],
},
install_requires=REQUIREMENTS,
platforms=["Windows", "Linux"],
keywords=[
"reader",
"document",
"eBook",
"accessibility",
"a11y",
"blind",
"pdf",
"epub",
"tts",
],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Desktop Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: Microsoft :: Windows :: Windows 8",
"Operating System :: Microsoft :: Windows :: Windows 8.1",
"Operating System :: Microsoft :: Windows :: Windows 10 ",
"Operating System :: POSIX :: Linux ",
"Programming Language :: Python :: 3.7",
"Topic :: Adaptive Technologies",
"Topic :: Desktop Environment :: Gnome",
"Topic :: Education",
],
)