-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (39 loc) · 1.3 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
import sys
PY3 = sys.version_info[0] == 3
if not PY3:
raise RuntimeError("tgit supports python3 only")
import re
import ast
from setuptools import setup, find_packages
_version_re = re.compile(r'__VERSION__\s+=\s+(.*)')
with open('tgit/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))
def read(fname, split=True):
with open(fname, 'r') as f:
content = f.read()
return content.split('\n') if split else content
setup(
name='tgit',
version=version,
author='Fabian Sandoval Saldias',
author_email='[email protected]',
description="A simple git GUI for tagging commits.",
license='GPLv3',
keywords='git tagging',
url='https://www.github.com/ambrosys/tgit',
packages=['tgit', 'tgit.img', 'tgit.cli'],
include_package_data=True,
install_requires=read('requirements.txt'),
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
entry_points={
'console_scripts': [
'tgit = tgit.cli.tgit:main',
'tgit-show-colors = tgit.cli.show_colors:main',
]
},
)