Skip to content

Commit efbde14

Browse files
Add dependencies to setup.py
1 parent 0503fa5 commit efbde14

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

setup.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
import setuptools
22

3+
try:
4+
# for pip >= 10
5+
from pip._internal.req import parse_requirements
6+
except ImportError:
7+
# for pip <= 9.0.3
8+
from pip.req import parse_requirements
9+
10+
def load_requirements(fname):
11+
reqs = parse_requirements(fname, session="test")
12+
return [str(ir.requirement) for ir in reqs]
13+
314
with open("README.md", "r") as fh:
415
long_description = fh.read()
516

617
setuptools.setup(
718
name="dweather_client",
19+
install_requires=load_requirements("requirements.txt"),
820
version="1.0",
9-
author="Arbol Inc",
21+
author="Arbol",
1022
author_email="[email protected]",
1123
description="Python client for interacting with weather data on IPFS.",
1224
long_description=long_description,

0 commit comments

Comments
 (0)