-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
64 lines (49 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
57
58
59
60
61
62
63
64
from time import time
from setuptools import find_packages, setup
from tf_bodypix.utils.dist import (
get_requirements_with_groups,
get_required_and_extras
)
with open('requirements.txt', 'r', encoding='utf-8') as f:
REQUIRED_PACKAGES = f.readlines()
with open('requirements.tflite.txt', 'r', encoding='utf-8') as f:
TFLITE_REQUIRED_PACKAGES = f.readlines()
with open('README.md', 'r', encoding='utf-8') as f:
LONG_DESCRIPTION = '\n'.join([
line.rstrip()
for line in f
if not line.startswith('[![')
])
def local_scheme(version):
if not version.distance and not version.dirty:
return ""
return str(int(time()))
DEFAULT_REQUIRED_PACKAGES, EXTRAS = get_required_and_extras(
get_requirements_with_groups(REQUIRED_PACKAGES)
)
ALL_EXTRAS = {
**EXTRAS,
'tflite': TFLITE_REQUIRED_PACKAGES
}
packages = find_packages(exclude=["tests", "tests.*"])
setup(
name="tf-bodypix",
use_scm_version={
"local_scheme": local_scheme
},
setup_requires=['setuptools_scm'],
author="Daniel Ecer",
url="https://github.com/de-code/python-tf-bodypix",
install_requires=DEFAULT_REQUIRED_PACKAGES,
extras_require=ALL_EXTRAS,
packages=packages,
include_package_data=True,
description='Python implemention of the TensorFlow BodyPix model.',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)