-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (36 loc) · 999 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
35
36
37
38
39
40
41
42
43
import os
from setuptools import setup, find_packages
import haveibeenpwned_api as module
def walker(base, *paths):
file_list = set([])
cur_dir = os.path.abspath(os.curdir)
os.chdir(base)
try:
for path in paths:
for dname, dirs, files in os.walk(path):
for f in files:
file_list.add(os.path.join(dname, f))
finally:
os.chdir(cur_dir)
return list(file_list)
setup(
name=module.__name__.replace("_", "-"),
version='0.1.0',
platforms="all",
packages=find_packages(exclude=('tests', 'scripts')),
package_data={
module.__name__: walker(
os.path.dirname(module.__file__)
),
},
entry_points={
'console_scripts': [
# FIXME: change entry-point name (this name of you main program)
'haveibeenpwned-api = {}.api:main'.format(module.__name__),
]
},
install_requires=(
'gevent',
'flask',
),
)