-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (31 loc) · 1.25 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
#!/usr/bin/env python
"""Setup script for the ml-pretrained project."""
import re
from setuptools import setup
with open("README.md", "r", encoding="utf-8") as f:
long_description: str = f.read()
with open("pretrained/__init__.py", "r", encoding="utf-8") as fh:
version_re = re.search(r"^__version__ = \"([^\"]*)\"", fh.read(), re.MULTILINE)
assert version_re is not None, "Could not find version in pretrained/__init__.py"
version: str = version_re.group(1)
setup(
name="ml-pretrained",
version=version,
description="ML project template repository",
author="Benjamin Bolte",
url="https://github.com/codekansas/ml-pretrained",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
],
python_requires=">=3.10",
install_requires=["ml-starter", "safetensors"],
tests_require=["ml-starter[dev]"],
extras_require={"dev": ["ml-starter[dev]"], "docs": ["ml-starter[docs]"]},
package_data={"pretrained": ["py.typed"]},
)