File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ setuptools >= 65
1
2
grpcio-tools
Original file line number Diff line number Diff line change @@ -114,6 +114,17 @@ def run(self):
114
114
super (BuildPyCommand , self ).run ()
115
115
116
116
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
+
117
128
setuptools .setup (
118
129
name = __package_name__ ,
119
130
license = __license__ ,
@@ -136,6 +147,6 @@ def run(self):
136
147
"Programming Language :: Python :: 3" ,
137
148
],
138
149
python_requires = '>=3.7' ,
139
- install_requires = [ 'grpcio-tools' ] ,
150
+ install_requires = install_requires ,
140
151
setup_requires = ['grpcio-tools' ],
141
152
)
You can’t perform that action at this time.
0 commit comments