-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (30 loc) · 954 Bytes
/
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
import os
from setuptools import setup
properties = os.path.join(os.path.dirname(__file__), 'che', 'che.properties')
with open(properties) as f:
properties = f.readlines()
prop_version = [line for line in properties if line.startswith("version")][0].split("=")[1].strip()
prop_python = [line for line in properties if line.startswith("python")][0].split("=")[1].strip()
setup(
name='gh-che',
version=prop_version,
packages=['che', 'che.intercept'],
license='LICENCE',
author='mustafakilic',
author_email='ben@mustafakilic.com',
description='Chat History Exporter',
python_requires=f'~={prop_python}',
install_requires=[
f'mitmproxy; python_version == "{prop_python}"',
'click',
'setuptools'
],
package_data={
'che': ['*.md', "*.pac", "*.json", "*.properties"]
},
entry_points={
'console_scripts': [
"gh-che = che.main:main"
]
}
)