-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (23 loc) · 784 Bytes
/
Copy pathsetup.py
File metadata and controls
28 lines (23 loc) · 784 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
"""
setup.py — makes `src` pip-installable as a local package (`pip install -e .`)
so `from src.xxx import yyy` works the same in notebooks, scripts, and
tests without sys.path hacks.
"""
from setuptools import find_packages, setup
HYPEN_E_DOT = "-e ."
def get_requirements(file_path: str):
with open(file_path) as f:
requirements = [
line.strip() for line in f.readlines()
if line.strip() and not line.strip().startswith("#")
]
if HYPEN_E_DOT in requirements:
requirements.remove(HYPEN_E_DOT)
return requirements
setup(
name="climate_visibility",
version="0.0.1",
author="PW Skills Data Science Team",
packages=find_packages(),
install_requires=[], # kept empty; use requirements.txt directly
)