|
19 | 19 | if sys.version_info[0] == 2 or (sys.version_info[0] == 3 |
20 | 20 | and sys.version_info[1] < 3): |
21 | 21 | requirements.append('ipaddress') |
| 22 | + if os.environ.get('SNYK_TOKEN'): |
| 23 | + with open('requirements.txt', 'w') as f: |
| 24 | + for r in requirements: |
| 25 | + f.write(r + '\n') |
22 | 26 |
|
23 | 27 | compile_args = ['-Wall', '-Wextra'] |
24 | 28 |
|
|
37 | 41 | # Cargo cult code for installing extension with pure Python fallback. |
38 | 42 | # Taken from SQLAlchemy, but this same basic code exists in many modules. |
39 | 43 | ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) |
40 | | -if sys.platform == 'win32': |
41 | | - # 2.6's distutils.msvc9compiler can raise an IOError when failing to |
42 | | - # find the compiler |
43 | | - ext_errors += (IOError, ) |
44 | 44 |
|
45 | 45 |
|
46 | 46 | class BuildFailed(Exception): |
@@ -141,12 +141,13 @@ def run_setup(with_cext): |
141 | 141 | 'Intended Audience :: Developers', |
142 | 142 | 'Intended Audience :: System Administrators', |
143 | 143 | 'License :: OSI Approved :: Apache Software License', |
144 | | - 'Programming Language :: Python :: 2.6', |
145 | 144 | 'Programming Language :: Python :: 2.7', |
146 | 145 | 'Programming Language :: Python :: 3', |
147 | 146 | 'Programming Language :: Python :: 3.3', |
148 | 147 | 'Programming Language :: Python :: 3.4', |
149 | 148 | 'Programming Language :: Python :: 3.5', |
| 149 | + 'Programming Language :: Python :: 3.6', |
| 150 | + 'Programming Language :: Python :: 3.7', |
150 | 151 | 'Programming Language :: Python', |
151 | 152 | 'Topic :: Internet :: Proxy Servers', |
152 | 153 | 'Topic :: Internet', |
|
0 commit comments