Skip to content

Commit 36d26a4

Browse files
committed
requirements to setup.py from requirements.txt
add six as dependency
1 parent 79bcf7a commit 36d26a4

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
* Use anonymous credentials by default instead of iam metadata (use ydb.driver.credentials_from_env_variables for creds by env var)
22
* Close grpc streams while closing readers/writers
33
* Add control plane operations for topic api: create, drop
4+
* Add six package to requirements
45

56
## 3.0.1b4 ##
67
* Initial implementation of topic reader

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
aiohttp>=3.7.4,<4.0.0
2+
enum-compat>=0.0.1
13
grpcio>=1.42.0
24
packaging
3-
protobuf>=3.13.0,<5.0.0
4-
aiohttp>=3.7.4,<4.0.0
5+
protobuf>3.13.0,<5.0.0
6+
six<2

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
with open("README.md", "r") as r:
55
long_description = r.read()
66

7+
with open("requirements.txt") as r:
8+
requirements = []
9+
for line in r.readlines():
10+
line = line.strip()
11+
if line != "":
12+
requirements.append(line)
13+
714
setuptools.setup(
815
name="ydb",
916
version="3.0.1b4", # AUTOVERSION
@@ -23,12 +30,7 @@
2330
"Programming Language :: Python :: 3",
2431
"Programming Language :: Python :: 3.6",
2532
],
26-
install_requires=(
27-
"protobuf>=3.13.0",
28-
"grpcio>=1.5.0",
29-
"enum-compat>=0.0.1",
30-
"packaging"
31-
),
33+
install_requires=requirements, # requirements.txt
3234
options={"bdist_wheel": {"universal": True}},
3335
extras_require={
3436
"yc": ["yandexcloud", ],

0 commit comments

Comments
 (0)