Skip to content

Basic cleanups #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/backends/imagefactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ def setup_staging(self):
"VMware": {"format": "vmdk", "provider": "vmware_desktop"}
}
output = f"{_map[self.ctx.variant]['format']}" # type: ignore
provider = f"{_map[self.ctx.variant]['provider']}" # type: ignore

# pop from the options map that will be passed to the vagrant metadata.json
convert_options = _map[self.ctx.variant].pop('convertOptions') if 'convertOptions' in _map[self.ctx.variant].keys() else '' # type: ignore
Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/builders/imagebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import datetime
import logging
import os
import pathlib

from attrs import define, field
Expand Down
14 changes: 0 additions & 14 deletions iso/empanadas/empanadas/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import glob
import platform
import time
from collections import defaultdict
from attrs import define, field


Expand Down Expand Up @@ -96,21 +95,8 @@ class Color:
with open(conf, "r", encoding="utf-8") as file:
sigdict.update(yaml.safe_load(file))

# The system needs to be a RHEL-like system. It cannot be Fedora or SuSE.
# if "%rhel" in config['rlmacro']:
# raise SystemExit(Color.BOLD + 'This is not a RHEL-like system.' + Color.END
# + '\n\nPlease verify you are running on a RHEL-like system that is '
# 'not Fedora nor SuSE. This means that the %rhel macro will be '
# 'defined with a value equal to the version you are targetting. RHEL'
# ' and its derivatives have this set.')


# These will be set in their respective var files
# REVISION = rlvars['revision'] + '-' + rlvars['rclvl']
# rlvars = rldict[rlver]
# rlvars = rldict[rlmacro]
# COMPOSE_ISO_WORKDIR = COMPOSE_ROOT + "work/" + arch + "/" + date_stamp


ALLOWED_TYPE_VARIANTS = {
"Azure": ["Base", "LVM"],
Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/scripts/build_iso_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import IsoBuild

parser = argparse.ArgumentParser(description="ISO Compose")
Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/scripts/build_iso_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import LiveBuild

parser = argparse.ArgumentParser(description="Live ISO Compose")
Expand Down
2 changes: 0 additions & 2 deletions iso/empanadas/empanadas/scripts/build_iso_live_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import argparse

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import IsoBuild

parser = argparse.ArgumentParser(description="Live ISO Compose")

Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/scripts/generate_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import RepoSync
from empanadas.util import Shared

# Start up the parser baby
Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/scripts/pull_cloud_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import IsoBuild

parser = argparse.ArgumentParser(description="ISO Artifact Builder")
Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/scripts/pull_iso_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import IsoBuild

parser = argparse.ArgumentParser(description="ISO Artifact Builder")
Expand Down
1 change: 0 additions & 1 deletion iso/empanadas/empanadas/scripts/pull_unpack_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import IsoBuild

parser = argparse.ArgumentParser(description="ISO Artifact Builder")
Expand Down
2 changes: 0 additions & 2 deletions iso/empanadas/empanadas/scripts/sync_from_peridot_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# This is a testing script to ensure the RepoSync class is working as intended.

import argparse

import empanadas
from empanadas.common import *
from empanadas.util import Checks
Expand Down
4 changes: 0 additions & 4 deletions iso/empanadas/empanadas/scripts/sync_sig.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
from empanadas.util import Checks
from empanadas.util import SigRepoSync

#rlvars = rldict['9']
#r = Checks(rlvars, config['arch'])
#r.check_validity()

# Start up the parser baby
parser = argparse.ArgumentParser(description="Peridot Sync and Compose")

Expand Down
2 changes: 0 additions & 2 deletions iso/empanadas/empanadas/scripts/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

import argparse
import sys
#import createrepo_c as cr

from empanadas.common import *
from empanadas.util import Checks
from empanadas.util import RepoSync

# Start up the parser baby
parser = argparse.ArgumentParser(description="Peridot Upstream Repoclosure")
Expand Down
2 changes: 1 addition & 1 deletion iso/empanadas/empanadas/templates/isomock.tmpl.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ best=1
install_weak_deps=0
protected_packages=
module_platform_id=platform:{{ dist }}
user_agent={{ user_agent }}
user_agent={{ '{{' }} user_agent {{ '}}' }}

{% for repo in repos %}
[{{ repo.name }}]
Expand Down
Loading