-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
37 lines (28 loc) · 974 Bytes
/
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
import os
from setuptools import find_packages, setup
def fetch_version():
with open("version.txt", "r") as f:
return f.read().strip()
def fetch_requirements(file):
with open(file, "r") as f:
return [r.strip().split(" ")[0] for r in f.readlines()]
def fetch_readme():
thisdir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(thisdir, "README.md"), encoding="utf-8") as fin:
readme_text = fin.read()
return readme_text
setup(
name="cubework",
version=fetch_version(),
packages=find_packages(exclude=["benchmark"]),
description="Cubework library",
long_description=fetch_readme(),
long_description_content_type="text/markdown",
license="Apache Software License 2.0",
install_requires=fetch_requirements("requirements.txt"),
python_requires=">=3.7",
classifiers=[
"Programming Language :: Python :: 3",
"Environment :: GPU :: NVIDIA CUDA",
],
)