Compare commits

...

8 Commits

Author SHA1 Message Date
soksanichenko 43d4275830 - The version is bumped
- The changelog is updated
2022-03-22 14:45:20 +02:00
Stepan Oksanichenko 30414cc748 Merge pull request 'ALBS-226: Patch pungi/lorax for building AL9' (#3) from ALBS-226 into aln9
Reviewed-on: #3
2022-03-21 15:52:50 +00:00
soksanichenko a83be2fbb2 ALBS-226: Patch pungi/lorax for building AL9
- Unit tests are fixed
2022-03-19 03:32:43 +02:00
soksanichenko acfdfcef15 ALBS-226: Patch pungi/lorax for building AL9
- Unit tests are fixed
2022-03-19 03:26:10 +02:00
soksanichenko 700ae3cbac ALBS-226: Patch pungi/lorax for building AL9
- Defaults modules can be empty, but pungi detects
  empty folder while copying and raises the exception in this case
2022-03-18 23:43:33 +02:00
Stepan Oksanichenko f2deb8b7c9 Merge pull request 'ALBS-186: Move pungi to our gitea and build it for AL9' (#1) from ALBS-186 into aln9
Reviewed-on: #1
2022-03-07 11:17:52 +00:00
soksanichenko 19cad92ff3 ALBS-186: Move pungi to our gitea and build it for AL9
- Required package `python3-dataclasses` is not needed because py3.9 has built-in module `dataclasses`
2022-02-25 16:00:32 +02:00
soksanichenko dfa191caec ALBS-186: Move pungi to our gitea and build it for AL9
- Required package `python3-dataclasses` is not needed because py3.9 has built-in module `dataclasses`
- Version is bumped
- Changelog is updated
2022-02-25 15:25:12 +02:00
4 changed files with 15 additions and 6 deletions

View File

@ -1,7 +1,7 @@
%{?python_enable_dependency_generator}
Name: pungi
Version: 4.2.15
Version: 4.2.17
Release: 1%{?dist}.cloudlinux
Summary: Distribution compose tool
@ -39,7 +39,6 @@ BuildRequires: python3-createrepo_c
BuildRequires: python3-dogpile-cache
BuildRequires: python3-parameterized
BuildRequires: python3-gobject-base
BuildRequires: python3-dataclasses
#deps for doc building
BuildRequires: python3-sphinx
@ -48,7 +47,6 @@ Requires: python3-kobo-rpmlib >= 0.18.0
Requires: python3-productmd >= 1.33
Requires: python3-kickstart
Requires: python3-requests
Requires: python3-dataclasses
Requires: createrepo_c
Requires: koji >= 1.10.1-13
Requires: python3-koji-cli-plugins
@ -160,6 +158,11 @@ python3 -m pytest
%changelog
* Tue Mar 22 2022 stepan_oksanichenko <soksanichenko@cloudlinux.com> - 4.2.17-1
- ALBS-226: Patch pungi/lorax for building AL9
* Thu Feb 25 2022 stepan_oksanichenio <soksanichenko@cloudlinux.com> - 4.2.16-1
- ALBS-186: Move pungi to our gitea and build it for AL9
* Thu Dec 30 2021 stepan_oksanichenio <soksanichenko@cloudlinux.com> - 4.2.15-1
- ALBS-97: The scripts `gather_modules` and `generate_packages_json` support LZMA compression

View File

@ -12,6 +12,9 @@ import createrepo_c as cr
from typing.io import BinaryIO
EMPTY_FILE = '.empty'
def _is_compressed_file(first_two_bytes: bytes, initial_bytes: bytes):
return binascii.hexlify(first_two_bytes) == initial_bytes
@ -65,6 +68,9 @@ def collect_modules(modules_paths: List[BinaryIO], target_dir: str):
module_defaults_path = os.path.join(target_dir, 'module_defaults')
os.makedirs(modules_path, exist_ok=True)
os.makedirs(module_defaults_path, exist_ok=True)
# Defaults modules can be empty, but pungi detects
# empty folder while copying and raises the exception in this case
Path(os.path.join(module_defaults_path, EMPTY_FILE)).touch()
for module_file in modules_paths:
data = module_file.read()

View File

@ -25,7 +25,7 @@ packages = sorted(packages)
setup(
name="pungi",
version="4.2.15",
version="4.2.17",
description="Distribution compose tool",
url="https://pagure.io/pungi",
author="Dennis Gilmore",

View File

@ -3,7 +3,7 @@ import gzip
import os
from io import StringIO
import yaml
from pungi.scripts.gather_modules import collect_modules
from pungi.scripts.gather_modules import collect_modules, EMPTY_FILE
import unittest
from pyfakefs.fake_filesystem_unittest import TestCase
@ -106,7 +106,7 @@ class TestModulesYamlParser(TestCase):
self.assertEqual(['mariadb-devel-10.3_1-8010020200108182321.cdc1202b',
'javapackages-tools-201801-8000020190628172923.b07bea58'],
os.listdir(os.path.join(PATH_TO_KOJI, 'modules/x86_64')))
self.assertEqual(['ant.yaml'],
self.assertEqual([EMPTY_FILE, 'ant.yaml'],
os.listdir(os.path.join(PATH_TO_KOJI, 'module_defaults')))
# check that modules were exported