-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (51 loc) Β· 1.8 KB
/
setup.py
File metadata and controls
61 lines (51 loc) Β· 1.8 KB
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
import re
from setuptools import setup, find_packages
REPO_NAME = 'UltraLight'
PACKAGE_NAME = REPO_NAME.lower()
URL = f'https://github.com/abionics/{REPO_NAME}'
def get_version() -> str:
code = read_file(f'{PACKAGE_NAME}/__init__.py')
return re.search(r'__version__ = \'(.+?)\'', code).group(1)
def load_readme() -> str:
return read_file('README.md')
def read_file(filename: str) -> str:
with open(filename, encoding='utf-8') as file:
return file.read()
setup(
name=PACKAGE_NAME,
version=get_version(),
description='Ultra Light Fast Generic Face Detector π¨βπ©βπ§βπ¦πΌ',
long_description=load_readme(),
long_description_content_type='text/markdown',
author='Alex Ermolaev',
author_email='abionics.dev@gmail.com',
url=URL,
license='MIT',
keywords='face detection ai ultra light',
install_requires=[
'numpy',
'numexpr',
'opencv-python',
'requests',
'tqdm',
'onnxruntime',
],
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Image Processing',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Software Development :: Libraries :: Python Modules',
'Typing :: Typed',
],
packages=find_packages(exclude=['models', 'samples']),
zip_safe=False,
)