Skip to content

Commit 77423be

Browse files
authored
Fix dependencies of setup.py and bump version (#40)
1 parent b162f88 commit 77423be

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Diff for: setup.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,20 @@ def get_long_description():
1919
return f.read()
2020

2121

22+
def get_install_requires():
23+
install_requires = []
24+
with open("requirements.txt", "r") as f:
25+
for line in f:
26+
dependency = line.rstrip()
27+
if not dependency:
28+
break
29+
install_requires.append(dependency)
30+
return install_requires
31+
32+
2233
setup(
2334
name="centraldogma-python",
24-
version="0.2.0",
35+
version="0.3.0",
2536
description="Python client library for Central Dogma",
2637
long_description=get_long_description(),
2738
long_description_content_type="text/markdown",
@@ -30,13 +41,7 @@ def get_long_description():
3041
author_email="[email protected]",
3142
license="Apache License 2.0",
3243
packages=["centraldogma", "centraldogma.data"],
33-
install_requires=[
34-
"httpx",
35-
"marshmallow",
36-
"dataclasses-json",
37-
"pydantic",
38-
"python-dateutil",
39-
],
44+
install_requires=get_install_requires(),
4045
python_requires=">=3.7",
4146
keywords="centraldogma",
4247
classifiers=[

0 commit comments

Comments
 (0)