Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (69 loc) · 2.2 KB
/
Copy pathsetup.py
File metadata and controls
74 lines (69 loc) · 2.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
from setuptools import setup, find_packages
import re
# Get version from __init__.py
with open('hfdl/__init__.py', 'r') as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string in hfdl/__init__.py")
# Define requirements directly
core_requirements = [
"huggingface_hub>=0.28.1",
"tqdm>=4.67.1",
"pydantic>=2.10.6",
"requests>=2.32.3"
]
test_requirements = [
"pytest>=8.3.4",
"pytest-mock>=3.14.0",
"types-requests>=2.32.0",
"types-tqdm>=4.67.0"
]
dev_requirements = [
"black>=25.1.0",
"isort>=6.0.0",
"mypy>=1.15.0",
"flake8>=7.1.1"
]
setup(
name="hfdl",
version=version,
description="Fast and reliable downloader for Hugging Face models and datasets",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author="Mubarak H. Alketbi",
author_email="mubarak.harran@gmail.com",
url="https://github.com/MubarakHAlketbi/hfdl",
packages=find_packages(),
entry_points={
'console_scripts': [
'hfdl=hfdl.cli:main',
],
},
install_requires=core_requirements,
extras_require={
'test': test_requirements,
'dev': test_requirements + dev_requirements,
},
python_requires='>=3.10',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='huggingface download models datasets machine-learning',
project_urls={
'Bug Reports': 'https://github.com/MubarakHAlketbi/hfdl/issues',
'Source': 'https://github.com/MubarakHAlketbi/hfdl',
},
include_package_data=True,
zip_safe=False,
)