We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27c9995 + 9b68290 commit 0af2db8Copy full SHA for 0af2db8
setup.py
@@ -12,14 +12,14 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-import pathlib
16
import functools
17
import operator
+import pathlib
18
+import runpy
19
20
from setuptools import find_packages, setup
21
-__version__ = ''
22
-exec(open('recirq/_version.py').read())
+__version__ = runpy.run_path('recirq/_version.py')['__version__']
23
assert __version__, 'Version string cannot be empty'
24
25
description = (
0 commit comments