Skip to content

Commit 3cb21ba

Browse files
committed
Be more Pythonic writing requirements.txt; add more supported python versions
1 parent 8371049 commit 3cb21ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
and sys.version_info[1] < 3):
2121
requirements.append('ipaddress')
2222
if os.environ.get('SNYK_TOKEN'):
23-
f = open('requirements.txt', 'w')
24-
[f.write(r + '\n') for r in requirements]
23+
with open('requirements.txt', 'w') as f:
24+
for r in requirements:
25+
f.write(r + '\n')
2526

2627
compile_args = ['-Wall', '-Wextra']
2728

@@ -145,6 +146,8 @@ def run_setup(with_cext):
145146
'Programming Language :: Python :: 3.3',
146147
'Programming Language :: Python :: 3.4',
147148
'Programming Language :: Python :: 3.5',
149+
'Programming Language :: Python :: 3.6',
150+
'Programming Language :: Python :: 3.7',
148151
'Programming Language :: Python',
149152
'Topic :: Internet :: Proxy Servers',
150153
'Topic :: Internet',

0 commit comments

Comments
 (0)