-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
56 lines (48 loc) · 1.57 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
48
49
50
51
52
53
54
55
56
from os.path import join
from setuptools import find_packages, setup
def get_version_and_cmdclass(package_path):
"""Load version.py module without importing the whole package.
Template code from miniver
"""
import os
from importlib.util import module_from_spec, spec_from_file_location
spec = spec_from_file_location("version", os.path.join(package_path, "_version.py"))
module = module_from_spec(spec)
spec.loader.exec_module(module)
return module.__version__, module.cmdclass
install_requires = [
"menpo<0.12.0",
"menpo3d",
"sanic",
"sanic-cors",
"loguru",
"joblib",
"PyYaml",
]
version, cmdclass = get_version_and_cmdclass("landmarkerio")
setup(
name="landmarkerio",
version=version,
cmdclass=cmdclass,
description="Menpo-based server for www.landmarker.io",
author="James Booth",
author_email="[email protected]",
url="https://github.com/menpo/landmarkerio-server/",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
package_data={"landmarkerio": ["default_templates/*"]},
packages=find_packages(),
install_requires=install_requires,
scripts=[
join("landmarkerio", "lmio"),
join("landmarkerio", "lmioserve"),
join("landmarkerio", "lmiocache"),
join("landmarkerio", "lmioconvert"),
],
)