File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,20 @@ def build_extension(self, ext):
124124 )
125125
126126
127- requirements = open ("requirements.txt" ).readlines ()
128- dev_requirements = open ("dev-requirements.txt" ).readlines ()
127+ with open ("requirements.txt" ) as f :
128+ requirements = [
129+ line .strip () for line in f if line .strip () and not line .strip ().startswith ("#" )
130+ ]
131+ with open ("dev-requirements.txt" ) as f :
132+ dev_requirements = [
133+ line .strip () for line in f if line .strip () and not line .strip ().startswith ("#" )
134+ ]
129135
130136description = "Schrödinger and Schrödinger-Feynman simulators for quantum circuits."
131137
132138# README file as long_description.
133- long_description = open ("README.md" , encoding = "utf-8" ).read ()
139+ with open ("README.md" , encoding = "utf-8" ) as f :
140+ long_description = f .read ()
134141
135142__version__ = runpy .run_path ("qsimcirq/_version.py" )["__version__" ]
136143if not __version__ :
You can’t perform that action at this time.
0 commit comments