-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (67 loc) · 2.1 KB
/
setup.py
File metadata and controls
74 lines (67 loc) · 2.1 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
#!/usr/bin/env python
"""Setup script for SCONE."""
import os
from setuptools import setup, find_packages
# Get package version
with open(os.path.join("scone", "__init__.py"), "r") as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[1].strip().strip('"').strip("'")
break
else:
version = "0.1.0"
# Get long description
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
# Get requirements
with open("requirements.txt", "r") as f:
requirements = [line.strip() for line in f if not line.startswith("#") and line.strip()]
# Define extras
extras_require = {
"dev": [
"pytest>=7.0.0",
"black>=22.3.0",
"isort>=5.10.0",
"flake8>=4.0.0",
"mypy>=0.950",
],
"quantization": [
"bitsandbytes>=0.35.0",
],
"visualization": [
"matplotlib>=3.5.0",
"tensorboard>=2.8.0",
"wandb>=0.15.0",
],
"azure": [
"azure-storage-blob>=12.0.0",
"azureml-core>=1.40.0",
],
}
# Add all extras to "all"
extras_require["all"] = list(set(sum(extras_require.values(), [])))
setup(
name="scone",
version=version,
description="SCONE: Scaling Embedding Layers in Language Models",
long_description=long_description,
long_description_content_type="text/markdown",
author="SCONE Team",
author_email="your.email@example.com",
url="https://github.com/yourusername/scone",
packages=find_packages(),
install_requires=requirements,
extras_require=extras_require,
python_requires=">=3.8",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="nlp, language-models, embeddings, machine-learning, deep-learning",
)