change how conditional requirements are encoded
so that they can be observed for wheel installs
Markus Gerstel
5 years ago
9 | 9 | with open('HISTORY.rst') as history_file: |
10 | 10 | history = history_file.read() |
11 | 11 | |
12 | requirements = ['six'] | |
13 | if sys.platform == 'win32' and not ((2, 8) < sys.version_info < (3, 5)): | |
14 | # PyWin32 is only supported on 2.7 and 3.5+ | |
15 | requirements.append('pywin32') | |
12 | requirements = [ | |
13 | 'six', | |
14 | # PyWin32 is only supported on 2.7 and 3.5+ | |
15 | 'pywin32; sys_platform=="win32" and python_version=="2.7"', | |
16 | 'pywin32; sys_platform=="win32" and python_version>="3.5"', | |
17 | ] | |
16 | 18 | |
17 | 19 | setup_requirements = ['pytest-runner', 'six'] |
18 | 20 |