Bump Python version requirement for qvm-* to 3.5

Some of qvm-* tools do use asyncio and its API have changed between 3.4
and 3.5.
This commit is contained in:
Marek Marczykowski-Górecki 2019-02-12 02:17:38 +01:00
parent b1a191446a
commit bde60c154a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 4 additions and 5 deletions

View File

@ -7,8 +7,8 @@ Compatibility
=============
Most of the API modules are compatible with Python >= 2.7.
Very few parts require Python >= 3.4:
Very few parts require Python >= 3.5:
- tools (`qvm-*`)
- qubesadmin.events module (for asyncio module)
Parts not compatible with Python < 3.4, are not installed in such environment.
Parts not compatible with Python < 3.5, are not installed in such environment.

View File

@ -6,10 +6,9 @@ import setuptools.command.install
import sys
exclude=[]
if sys.version_info[0:2] < (3, 4):
exclude += ['qubesadmin.tools', 'qubesadmin.tests.tools']
exclude += ['qubesadmin.backup', 'qubesadmin.tests.backup']
if sys.version_info[0:2] < (3, 5):
exclude += ['qubesadmin.backup', 'qubesadmin.tests.backup']
exclude += ['qubesadmin.tools', 'qubesadmin.tests.tools']
exclude += ['qubesadmin.events']
# don't import: import * is unreliable and there is no need, since this is