-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (20 loc) · 746 Bytes
/
setup.py
File metadata and controls
28 lines (20 loc) · 746 Bytes
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
import os
from setuptools import find_packages, setup
ROOT = os.path.abspath(os.path.dirname(__file__))
# Use README.md as a long description.
def get_long_description() -> str:
with open(os.path.join(ROOT, "README.md"), encoding="utf-8") as f:
return f.read()
def get_install_requires():
with open(os.path.join(ROOT, "requirements.txt"), encoding="utf-8") as f:
return [
l.strip()
for l in f.readlines()
# Ignore comments and blank lines
if not (l.startswith("#") or (l.strip() == ""))
]
setup(
install_requires=get_install_requires(),
packages=find_packages(),
entry_points={"console_scripts": ["profile = kernel_profiler.entrypoint:main"]},
)