-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (54 loc) · 2.05 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
52
53
54
55
56
57
58
59
60
61
from setuptools import find_packages, setup
def get_version() -> str:
rel_path = "src/aihubkr/__init__.py"
with open(rel_path, "r", encoding="utf-8") as fp:
for line in fp.read().splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
install_requires = [
"requests",
"tqdm",
"natsort",
# CLI
"prettytable",
# GUI
"PyQt6",
]
setup(
name="aihubkr",
version=get_version(),
author="LimeOrangePie",
author_email="[email protected]",
description="(비공식) NIPA AIHub (aihub.or.kr) Downloader CLI & GUI 유틸리티",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
keywords="aihub AI허브 model-hub machine-learning models natural-language-processing deep-learning pytorch pretrained-models",
license="Apache",
url="https://github.com/jungin500/aihubkr",
package_dir={"": "src"},
packages=find_packages("src"),
entry_points={
"console_scripts": ["aihubkr-gui=aihubkr.gui.main:main", "aihubkr-dl=aihubkr.cli.main:main"],
},
python_requires=">=3.8.0",
install_requires=install_requires,
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
include_package_data=True,
)