-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (42 loc) · 1.54 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
import os
import io
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with io.open(os.path.join(here, 'deepomatic', 'api', 'version.py'), 'r', encoding='utf-8') as f:
exec(f.read(), about)
with io.open(os.path.join(here, 'README.md'), 'r', encoding='utf-8') as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# Read requirements
with io.open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as f:
requirements = f.readlines()
namespaces = ['deepomatic']
setup(
name=about['__title__'],
version=about['__version__'],
description=about['__description__'],
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
project_urls=about['__project_urls__'],
license=about['__license__'],
packages=find_packages(),
namespace_packages=namespaces,
include_package_data=True,
long_description=README,
long_description_content_type='text/markdown',
data_files=[('', ['requirements.txt'])],
install_requires=requirements,
python_requires=">=3.8.*",
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
)