Skip to content

Commit 994e09a

Browse files
Require setuptools>=65 (#22) (#28) (#29)
Signed-off-by: PeganovAnton <[email protected]> Signed-off-by: PeganovAnton <[email protected]> Signed-off-by: PeganovAnton <[email protected]> Co-authored-by: PeganovAnton <[email protected]> Signed-off-by: PeganovAnton <[email protected]> Co-authored-by: PeganovAnton <[email protected]>
1 parent 7b74ab2 commit 994e09a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
setuptools>=65
12
grpcio-tools

setup.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,17 @@ def run(self):
114114
super(BuildPyCommand, self).run()
115115

116116

117+
def req_file(filename):
118+
with open(filename, encoding='utf-8') as f:
119+
content = f.readlines()
120+
# you may also want to remove whitespace characters
121+
# Example: `\n` at the end of each line
122+
return [x.strip() for x in content]
123+
124+
125+
install_requires = req_file("requirements.txt")
126+
127+
117128
setuptools.setup(
118129
name=__package_name__,
119130
license=__license__,
@@ -136,6 +147,6 @@ def run(self):
136147
"Programming Language :: Python :: 3",
137148
],
138149
python_requires='>=3.7',
139-
install_requires=['grpcio-tools'],
150+
install_requires=install_requires,
140151
setup_requires=['grpcio-tools'],
141152
)

0 commit comments

Comments
 (0)