forked from skops-dev/skops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (78 loc) · 2.8 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#! /usr/bin/env python
# License: 3-clause BSD
import builtins
from setuptools import setup
# This is a bit (!) hackish: we are setting a global variable so that the
# main modelcard __init__ can detect if it is being loaded by the setup
# routine, to avoid attempting to load components.
builtins.__SKOPS_SETUP__ = True # type: ignore
import skops # noqa
import skops._min_dependencies as min_deps # noqa
VERSION = skops.__version__
DISTNAME = "skops"
DESCRIPTION = (
"A set of tools to push scikit-learn based models to and pull from Hugging Face Hub"
)
with open("README.rst") as f:
LONG_DESCRIPTION = f.read()
MAINTAINER = "Adrin Jalali"
MAINTAINER_EMAIL = "[email protected]"
URL = "http://github.com/skops-dev/skops"
DOWNLOAD_URL = "https://pypi.org/project/skops/#files"
LICENSE = "MIT"
PROJECT_URLS = {
"Bug Tracker": "http://github.com/skops-dev/skops/issues",
"Documentation": "http://github.com/skops-dev/skops",
"Source Code": "http://github.com/skops-dev/skops",
}
def setup_package():
package_data = dict(
entry_points={
"console_scripts": [
"skops = skops.cli.entrypoint:main_cli",
],
}
)
metadata = dict(
name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
project_urls=PROJECT_URLS,
version=VERSION,
long_description=LONG_DESCRIPTION,
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Development Status :: 1 - Planning",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
],
python_requires=">=3.8",
install_requires=min_deps.tag_to_packages["install"],
extras_require={
"docs": min_deps.tag_to_packages["docs"],
"tests": min_deps.tag_to_packages["tests"],
"rich": min_deps.tag_to_packages["rich"],
},
include_package_data=True,
packages=["skops"],
)
setup(**package_data, **metadata)
if __name__ == "__main__":
setup_package()