-
Notifications
You must be signed in to change notification settings - Fork 52
/
setup.py
57 lines (51 loc) · 1.78 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
import re
from setuptools import setup
from os import path
DEFAULT_BRANCH = "2.x"
BASE_GITHUB_URL = "https://github.com/vit-project/vit/blob"
MARKUP_LINK_REGEX = r"\[([^]]+)\]\(([\w]+\.md)\)"
FILE_DIR = path.dirname(path.abspath(path.realpath(__file__)))
with open(path.join(FILE_DIR, 'README.md')) as f:
readme_contents = f.read()
markup_link_substitution = '[\\1](%s/%s/\\2)' % (BASE_GITHUB_URL, DEFAULT_BRANCH)
README = re.sub(MARKUP_LINK_REGEX, markup_link_substitution, readme_contents, flags=re.MULTILINE)
with open(path.join(FILE_DIR, 'requirements.txt')) as f:
INSTALL_PACKAGES = f.read().splitlines()
with open(path.join(FILE_DIR, 'vit', 'version.py')) as f:
VERSION = re.match(r"^VIT = '([\w\.]+)'$", f.read().strip())[1]
setup(
name='vit',
packages=['vit', 'vit.config', 'vit.formatter', 'vit.keybinding', 'vit.theme'],
description="Visual Interactive Taskwarrior full-screen terminal interface",
long_description=README,
long_description_content_type='text/markdown',
install_requires=INSTALL_PACKAGES,
version=VERSION,
url='https://github.com/vit-project/vit',
author='Chad Phillips',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'Natural Language :: English',
'Topic :: Text Processing :: General',
],
keywords=[
'taskwarrior',
'console',
'tui',
'text-user-interface',
],
tests_require=[
],
entry_points = {
'console_scripts': [
'vit=vit.command_line:main',
],
},
include_package_data=True,
python_requires='>=3.7',
zip_safe=False
)