forked from KichangKim/DeepDanbooru
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
51 lines (44 loc) · 1.37 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import setuptools
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
with open('deepdanbooru/__main__.py', encoding='utf-8') as f:
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1) # type: ignore
install_requires = [
'Click>=7.0',
'numpy>=1.16.2',
'scikit-image>=0.15.0',
'requests>=2.22.0',
'six>=1.13.0',
]
tensorflow_pkg = 'tensorflow>=2.1.0'
setuptools.setup(
name="deepdanbooru",
version=version,
author="Kichang Kim",
author_email="admin@kanotype.net",
description="DeepDanbooru is AI based multi-label girl image classification system, "
"implemented by using TensorFlow.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KichangKim/DeepDanbooru",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=install_requires,
extras_require={
'tensorflow': [tensorflow_pkg],
'test': ['pytest', 'flake8', 'mypy']
},
entry_points={
"console_scripts": [
"deepdanbooru=deepdanbooru.__main__:main",
]
},
)