forked from klieret/verzettler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·83 lines (69 loc) · 2.41 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
77
78
79
80
81
82
83
#!/usr/bin/env python3
# std
from distutils.core import setup
# noinspection PyUnresolvedReferences
import setuptools # see below (1)
from pathlib import Path
# (1) see https://stackoverflow.com/questions/8295644/
# Without this import, install_requires won't work.
keywords = [
"zettelkasten"
]
description = (
"Helper scripts for markdown based Zettelkasten."
)
this_dir = Path(__file__).resolve().parent
packages = setuptools.find_packages()
with (this_dir / "README.md").open() as fh:
long_description = fh.read()
with (this_dir / "verzettler" / "version.txt").open() as vf:
version = vf.read()
with (this_dir / "requirements.txt").open() as rf:
requirements = [
req.strip()
for req in rf.readlines()
if req.strip() and not req.startswith("#")
]
setup(
name="verzettler",
version=version,
packages=packages,
install_requires=requirements,
url="https://github.com/klieret/verzettler",
project_urls={
"Bug Tracker": "https://github.com/klieret/verzettler/issues",
"Source Code": "https://github.com/klieret/verzettler/",
},
extras_require={
':sys_platform == "win32"': ['pyreadline'],
':sys_platform == "linux2"': ['readline'],
':sys_platform == "linux"': ['readline'],
':sys_platform == "darwin"': ['readline'],
},
include_package_data=True,
keywords=keywords,
description=description,
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Visualization",
],
entry_points={
"console_scripts": [
"zk_add_id = verzettler.bin.zk_add_id:cli",
"zk_find_id = verzettler.bin.zk_find_id:cli",
"zk_get_id = verzettler.bin.zk_get_id:cli",
"zk_list_tags = verzettler.bin.zk_list_tags:cli",
"zk_modify_tags = verzettler.bin.zk_modify_tags:cli",
"zk_open = verzettler.bin.zk_open:cli",
"zk_stats = verzettler.bin.zk_stats:cli",
"zk_touch = verzettler.bin.zk_touch:cli",
"zk_transform = verzettler.bin.zk_transform:cli",
"zk_web = verzettler.bin.zk_web:cli",
"zk_convert = verzettler.bin.zk_convert:cli",
"zk_server = verzettler.bin.zk_server:main",
]
}
)