-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the remote spawner an optional plugin with RPM packaging
Signed-off-by: Cleber Rosa <crosa@redhat.com>
- Loading branch information
Showing
5 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
102.0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/env python3 | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# | ||
# See LICENSE for more details. | ||
# | ||
# Copyright: Red Hat Inc. 2023 | ||
# Author: Cleber Rosa <crosa@redhat.com> | ||
|
||
import os | ||
|
||
from setuptools import setup | ||
|
||
# Handle systems with setuptools < 40 | ||
try: | ||
from setuptools import find_namespace_packages | ||
except ImportError: | ||
packages = ["avocado_spawner_remote"] | ||
else: | ||
packages = find_namespace_packages(include=["avocado_spawner_remote"]) | ||
|
||
BASE_PATH = os.path.dirname(__file__) | ||
with open(os.path.join(BASE_PATH, "VERSION"), "r", encoding="utf-8") as version_file: | ||
VERSION = version_file.read().strip() | ||
|
||
|
||
setup( | ||
name="avocado-framework-plugin-spawner-remote", | ||
version=VERSION, | ||
description="Remote (host) based spawner", | ||
author="Avocado Developers", | ||
author_email="avocado-devel@redhat.com", | ||
url="http://avocado-framework.github.io/", | ||
packages=packages, | ||
include_package_data=True, | ||
install_requires=[f"avocado-framework=={VERSION}", "aexpect>=1.6.2"], | ||
test_suite="tests", | ||
entry_points={ | ||
"avocado.plugins.init": ["remote = avocado_spawner_remote:RemoteSpawnerInit"], | ||
"avocado.plugins.spawner": ["remote = avocado_spawner_remote:RemoteSpawner"], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters