forked from blindpandas/bookworm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (62 loc) · 2.04 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
#!/usr/bin/env python
from pathlib import Path
from setuptools import setup, find_packages
from bookworm import app
# Invalid requirement specifier prefixes
INVALID_PREFIXES = ('http://', 'https://', 'git+',)
CWD = Path(__file__).parent
LONG_DESCRIPTION = (CWD / "README.md").read_text()
REQUIREMENTS = []
with open(CWD / "requirements.txt", "r") 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="MIT",
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 :: MIT License",
"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",
],
)