-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (29 loc) · 1002 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 setuptools
NAME = 'knife'
AUTHOR = 'Jean-Baptiste Skutnik'
AUTHOR_EMAIL = '[email protected]'
DESCRIPTION = 'Recipe manager'
VERSION = "0.3"
MODULES = ["knife", "knife.models", "knife.drivers"]
PACKAGES = {}
for name in MODULES:
PACKAGES[name] = name.replace(".", "/")
DEPENDENCIES = []
DEPENDENCY_FILE_PATH = "./requirements.txt"
try:
with open(DEPENDENCY_FILE_PATH, 'r') as dependency_file:
DEPENDENCIES = dependency_file.readlines()
except Exception as err:
print(
f"Failed to lookup dependencies from {DEPENDENCY_FILE_PATH}: {str(err)}",
file=sys.stderr)
setuptools.setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
scripts=['scripts/knife'],
install_requires=DEPENDENCIES,
packages=list(PACKAGES.keys()),
package_dir=PACKAGES)
#cmdclass={'install': Install})