Skip to content

Commit 74f31ac

Browse files
committed
Fix ResourceWarning
1 parent a59d6db commit 74f31ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,13 @@ def run(self):
7272
with open('README.rst') as f:
7373
README = f.read()
7474

75+
with open('VERSION') as f:
76+
VERSION = f.read().strip()
77+
78+
7579
setup(
7680
name='cypari2',
77-
version=open("VERSION").read().strip(),
81+
version=VERSION,
7882
description='An interface to the number theory library libpari',
7983
long_description=README,
8084
url='https://github.com/defeo/cypari2',

0 commit comments

Comments
 (0)