core-admin-client/setup.py
Marek Marczykowski-Górecki 7bafd631d4
Exclude tools and events from python2 tests and packaging
Those two parts require python3.
To avoid duplicating the exclude list, run tests and pylint on a copy
installed via setuptools.
2017-04-29 01:18:25 +02:00

31 lines
926 B
Python

# vim: fileencoding=utf-8
import setuptools
import sys
exclude=[]
if sys.version_info[0:2] < (3, 5):
exclude = ['qubesmgmt.events', 'qubesmgmt.tools', 'qubesmgmt.tests.tools']
if __name__ == '__main__':
setuptools.setup(
name='qubesmgmt',
version=open('version').read().strip(),
author='Invisible Things Lab',
author_email='marmarek@invisiblethingslab.com',
description='Qubes mgmt API package',
license='LGPL2.1+',
url='https://www.qubes-os.org/',
packages=setuptools.find_packages(exclude=exclude),
entry_points={
'qubesmgmt.vm': [
'AppVM = qubesmgmt.vm:AppVM',
'TemplateVM = qubesmgmt.vm:TemplateVM',
'StandaloneVM = qubesmgmt.vm:StandaloneVM',
'AdminVM = qubesmgmt.vm:AdminVM',
'DispVM = qubesmgmt.vm:DispVM',
],
},
)