-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
39 lines (35 loc) · 1.07 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
import platform
import sys
from io import open # for Python 2 (identical to builtin in Python 3)
from setuptools import find_packages, setup, dist
def readme():
with open('README.md', encoding='utf-8') as f:
content = f.read()
return content
install_requires = [
'numpy>=1.11.1', 'torch>=1.1.0', 'easydict', 'opencv-python'
]
def get_version():
version_file = 'facemask/version.py'
with open(version_file, 'r', encoding='utf-8') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']
setup(
name='facemask',
version=get_version(),
description='Face Mask detection',
long_description=readme(),
long_description_content_type='text/markdown',
keywords='computer vision',
packages=find_packages(),
classifiers=[
'Programming Language :: Python :: 3.6',
],
license='MIT',
url='https://github.com/chenjun2hao/facemask',
author='Jun Chen',
author_email='778961303@qq.com',
install_requires=install_requires,
zip_safe=False,
data_files=['README.md']
)