-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
45 lines (35 loc) · 1.16 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
from time import time
from setuptools import find_packages, setup
with open('requirements.txt', 'r', encoding='utf-8') as f:
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()))
packages = find_packages(exclude=["tests", "tests.*"])
setup(
name="layered-vision",
use_scm_version={
"local_scheme": local_scheme
},
setup_requires=['setuptools_scm'],
author="Daniel Ecer",
url="https://github.com/de-code/layered-vision",
install_requires=REQUIRED_PACKAGES,
packages=packages,
include_package_data=True,
description='Compose final output(s), out of layers of images, videos or similar.',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)