1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/usr/bin/env python3
# This file is part of Build Your Own Virtual machine.
#
# Copyright 2018 Vincent Ladeuil.
# Copyright 2014, 2015, 2016 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 3, as published by the
# Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
# SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
import os
import setuptools
import byov
class CleanCommand(setuptools.Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./byov.egg-info')
setuptools.setup(
name='byov',
version=byov.version(),
description=('Build Your Own Virtual machine.'),
long_description=open('./README.rst').read(),
author='Vincent Ladeuil',
author_email='v.ladeuil+lp@free.fr',
url='https://launchpad.net/byov',
license='GPLv3',
install_requires=['python3-byoc', 'pexpect'],
packages=['byov', 'byov.tests', 'byov.vms'],
# FIXME: byovm is kept for backwards compatibility, remove it for 3.0
# -- vila 2022-03-09
entry_points=dict(console_scripts=['byov=byov.commands:run',
'byovm=byov.commands:run']),
# FIXME: Broke when upgrading to recent python versions (from 3.5
# :-). setup.py use is somehow discouraged without really providing easy
# alternatives. -- vila 2023-11-04
# cmdclass=dict(clean=CleanCommand),
)
|