-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
39 lines (34 loc) · 1.01 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
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import os
import sys
import glob
from setuptools import setup
from hlutils import __version__ as VERSION
NAME = 'hlutils'
DESCRIPTION = 'Useful python functions and scripts written by James Hu.'
LICENSE = 'Apache License 2.0'
PLATFORMS = ['win32']
consoles = []
for f in os.listdir("hlutils/tools"):
if f.endswith(".py") and f != "__init__.py":
consoles.append("{0} = hlutils.tools.{0}:main".format(f[:-3]))
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
license=LICENSE,
platforms=PLATFORMS,
url='',
author='James Hu',
author_email='huleiak47@gmail.com',
packages=['hlutils', 'hlutils.tools'],
package_dir={'hlutils': './hlutils', 'hlutils.tools': './hlutils/tools'},
package_data={"hlutils.tools": ["*.html", "*.docx", "*.vim"]},
entry_points={
"console_scripts": consoles,
},
install_requires=["prompt_toolkit>=2.0",
"ply>=3.0",
"texttable>=0.8"],
)