RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/python-productmd#951412fd6a6ec5a7ee444cabb261687384fcfab5
This commit is contained in:
Troy Dawson 2020-10-14 19:41:04 -07:00
parent dc60afe5e1
commit 47c3922198
4 changed files with 461 additions and 0 deletions

30
.gitignore vendored
View File

@ -0,0 +1,30 @@
/productmd-1.0.tar.bz2
/productmd-1.0.tar.gz
/productmd-1.1.tar.gz
/productmd-1.2.tar.bz2
/python-productmd-1.3.tar.gz
/python-productmd-1.4.tar.gz
/python-productmd-1.5.tar.gz
/python-productmd-1.6.tar.gz
/python-productmd-1.7.tar.gz
/python-productmd-1.8.tar.gz
/python-productmd-1.9.tar.gz
/python-productmd-1.10.tar.gz
/python-productmd-1.11.tar.gz
/productmd-1.12.tar.bz2
/productmd-1.13.tar.bz2
/productmd-1.14.tar.bz2
/productmd-1.15.tar.bz2
/productmd-1.16.tar.bz2
/productmd-1.17.tar.bz2
/productmd-1.18.tar.bz2
/productmd-1.19.tar.bz2
/productmd-1.20.tar.bz2
/productmd-1.21.tar.bz2
/productmd-1.22.tar.bz2
/productmd-1.23.tar.bz2
/productmd-1.24.tar.bz2
/productmd-1.25.tar.bz2
/productmd-1.26.tar.bz2
/productmd-1.27.tar.gz
/productmd-1.28.tar.gz

75
139.patch Normal file
View File

@ -0,0 +1,75 @@
From b091abdc917c2eca544e5928b85b2bb9270912b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= <lsedlar@redhat.com>
Date: Thu, 31 Oct 2019 14:25:18 +0100
Subject: [PATCH] Make tests pass on Python 2.6
---
tests/test_extra_files.py | 43 ++++++++++++++++++++++++++++++---------
1 file changed, 33 insertions(+), 10 deletions(-)
diff --git a/tests/test_extra_files.py b/tests/test_extra_files.py
index 54115e9..7848fd9 100755
--- a/tests/test_extra_files.py
+++ b/tests/test_extra_files.py
@@ -63,28 +63,51 @@ def _test_identity(self, modules):
def test_bad_checksums(self):
metadata = ExtraFiles()
- with self.assertRaises(TypeError):
- metadata.add("Everything", "x86_64", "path/to/file", size=1, checksums="no")
+ self.assertRaises(
+ TypeError,
+ metadata.add,
+ "Everything",
+ "x86_64",
+ "path/to/file",
+ size=1,
+ checksums="no",
+ )
def test_bad_variant(self):
metadata = ExtraFiles()
- with self.assertRaises(ValueError):
- metadata.add("", "x86_64", "path/to/file", size=1, checksums={})
+ self.assertRaises(
+ ValueError, metadata.add, "", "x86_64", "path/to/file", size=1, checksums={}
+ )
def test_bad_arch(self):
metadata = ExtraFiles()
- with self.assertRaises(ValueError):
- metadata.add("Everything", "foobar", "path/to/file", size=1, checksums={})
+ self.assertRaises(
+ ValueError,
+ metadata.add,
+ "Everything",
+ "foobar",
+ "path/to/file",
+ size=1,
+ checksums={},
+ )
def test_bad_path(self):
metadata = ExtraFiles()
- with self.assertRaises(ValueError):
- metadata.add("Everything", "foobar", "", size=1, checksums={})
+ self.assertRaises(
+ ValueError, metadata.add, "Everything", "foobar", "", size=1, checksums={}
+ )
def test_absolute_path(self):
metadata = ExtraFiles()
- with self.assertRaises(ValueError):
- metadata.add("Everything", "foobar", "/path", size=1, checksums={})
+ self.assertRaises(
+ ValueError,
+ metadata.add,
+ "Everything",
+ "foobar",
+ "/path",
+ size=1,
+ checksums={},
+ )
def test_fedora_20(self):
metadata = ExtraFiles()

355
python-productmd.spec Normal file
View File

@ -0,0 +1,355 @@
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_without python2
%else
%bcond_with python2
%endif
%bcond_without python3
%global srcname productmd
Name: python-%{srcname}
Version: 1.28
Release: 2%{?dist}
Summary: Library providing parsers for metadata related to OS installation
License: LGPLv2+
URL: https://github.com/release-engineering/productmd
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%global _description \
Python library providing parsers for metadata related to composes\
and installation media.
%description %_description
%if 0%{?with_python2}
%package -n python2-%{srcname}
Summary: %summary
Obsoletes: productmd <= %{version}-%{release}
Provides: productmd = %{version}-%{release}
BuildRequires: python2-devel
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python-setuptools
BuildRequires: python-six
Requires: python-six
%else
BuildRequires: python2-setuptools
BuildRequires: python2-six
Requires: python2-six
%endif
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname} %_description
%endif
%if 0%{?with_python3}
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-six
%description -n python%{python3_pkgversion}-%{srcname} %_description
%endif
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%if 0%{?with_python2}
%py2_build
%endif
%if 0%{?with_python3}
%py3_build
%endif
%install
%if 0%{?with_python2}
%py2_install
%endif
%if 0%{?with_python3}
%py3_install
%endif
%check
%if 0%{?with_python2}
%{__python2} ./setup.py test
%endif
%if 0%{?with_python3}
%{__python3} ./setup.py test
%endif
%if 0%{?with_python2}
%files -n python2-%{srcname}
%license LICENSE
%doc AUTHORS
%{python2_sitelib}/productmd/
%{python2_sitelib}/productmd-%{version}-py?.?.egg-info
%endif
%if 0%{?with_python3}
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc AUTHORS
%{python3_sitelib}/productmd/
%{python3_sitelib}/productmd-%{version}-py%{python3_version}.egg-info
%endif
%changelog
* Tue Sep 29 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.28-2
- Fix Python 2 conditional for ELN
* Fri Sep 25 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.28-1
- New upstream release
* Wed Aug 19 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.27-1
- New upstream release 1.27
- Switch sources to tar.gz
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.26-2
- Rebuilt for Python 3.9
* Thu Apr 09 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.26-1
- New upstream release 1.26
* Mon Mar 23 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.25-1
- New upstream release 1.25
* Fri Feb 07 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.24-1
- New upstream release 1.24
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 01 2019 Lubomír Sedlář <lsedlar@redhat.com> - 1.23-1
- Add class for representing extra files in the compose (lsedlar@redhat.com)
- Add tests for multiple variants in one .treeinfo (riehecky@fnal.gov)
* Wed Sep 04 2019 Lubomír Sedlář <lsedlar@redhat.com> - 1.22-1
- Fix parsing composeinfo with almost conflicting UIDs (lsedlar@redhat.com)
- Improve error message for invalid metadata (lsedlar@redhat.com)
- Fix image format for vpc (lsedlar@redhat.com)
- Set up test infrastructure (lsedlar@redhat.com)
- Add missing parts to the TreeInfo documentation (jkonecny@redhat.com)
- Add a comment explaining the 'tar-gz' type (awilliam@redhat.com)
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.21-3
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Mar 11 2019 Lubomír Sedlář <lsedlar@redhat.com> - 1.21-1
- Include typo fix from upstream
* Sat Mar 09 2019 Kevin Fenzi <kevin@scrye.com> - 1.20-3
- Fix typo in image names: s/vabrant/vagrant/ (Rawhide)
- Rebuilt to change main python from 3.4 to 3.6 (EPEL 7)
* Thu Mar 07 2019 Lubomír Sedlář <lsedlar@redhat.com> - 1.20-2
- Disable python 2 subpackage on F>=31
* Tue Mar 05 2019 Lubomír Sedlář <lsedlar@redhat.com> - 1.20-1
- Improve getting sync between image types and formats
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jan 24 2019 Lubomír Sedlář <lsedlar@redhat.com> - 1.19-1
- Fix get_minor_version on inputs with more that two components
- Add new release types
- Add __version__ attribute
- Documentation improvements
* Fri Nov 23 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.18-1
- Add SecurityFix label
- Fix get_major_version on inputs with more than two components
* Fri Oct 05 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.17-1
- Do not use custom repr for objects with no compose
- Add additional_variants attribute to unified images
* Tue Aug 14 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.16-1
- Allow module metadata with empty modules
* Fri Jul 20 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.15-4
- Use python2_sitelib instead of python_sitelib
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 22 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.15-2
- Rebuilt for Python 3.7
* Wed Jun 20 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.15-1
- Add missing _modules attribute to Compose
- composeinfo: add docs for Compose class
- rpms: add doc example for using the Rpms class
- common: document parse_nvra() return value elements
- common: explain filename handling for parse_nvra()
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.14-2
- Rebuilt for Python 3.7
* Fri May 11 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.14-1
- Add rhevm-ova as valid type
* Thu May 10 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.13-1
- Add vsphere-ova as valid image type
* Mon May 07 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.12-1
- Add vpc/vhd as known image type/format
* Wed Apr 04 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.11-2
- Stop using Tito from upstream
* Thu Mar 29 2018 Lubomír Sedlář <lsedlar@redhat.com> 1.11-1
- New class for processing modules (onosek@redhat.com)
- packaging: fixes (ignatenko@redhat.com)
* Wed Jan 17 2018 Lubomír Sedlář <lsedlar@redhat.com> 1.10-1
- Drop Fedora 25 build (lsedlar@redhat.com)
- Drop RHEL compatibility from spec (lsedlar@redhat.com)
- Use more relaxed release type checks (lholecek@redhat.com)
- Fix parse release id with dash in type (lsedlar@redhat.com)
- Add tests for parse_release_id() (lholecek@redhat.com)
- Update dependencies to include Python version (#97)
* Tue Oct 24 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.9-1
- add updates-testing as a valid compose type (#96)
(dgilmore@fedoraproject.org)
- Update tito configuration (lsedlar@redhat.com)
* Wed Oct 11 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.8-1
- Report better error on parsing invalid JSON (#95) (lubomir.sedlar@gmail.com)
- Python 2 binary package renamed to python2-productmd (zbyszek@in.waw.pl)
- Sync spec file with Fedora (#94) (lubomir.sedlar@gmail.com)
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7-3
- Python 2 binary package renamed to python2-productmd
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Apr 19 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.7-1
- common: omit context kwarg to urlopen on old Python (lsedlar@redhat.com)
* Thu Apr 06 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.6-1
- Add a new image type dvd-debuginfo (lsedlar@redhat.com)
- Add Tito release for F26 (lsedlar@redhat.com)
* Tue Apr 04 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.5-1
- Add 'unified' to unique image attributes (lsedlar@redhat.com)
- Add EA - Early Access label (lkocman@redhat.com)
- Correctly parse type from ci compose (lsedlar@redhat.com)
- Simplify tests for creating compose id (lsedlar@redhat.com)
- Sync spec file with Fedora (enable Py3 for EPEL) (#79) (awilliam@redhat.com)
- Support 'unique image identifier' concept, enforce on 1.1+
(awilliam@redhat.com)
* Wed Feb 15 2017 Adam Williamson <awilliam@redhat.com>
- Restore compatibility cruft for pure-RHEL builds
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Feb 10 2017 Adam Williamson <awilliam@redhat.com> - 1.4-2
- Enable Python 3 build for EL 6+
* Tue Jan 10 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.4-1
- Fix loading variants from legacy composeinfo. (dmach@redhat.com)
- Fix sorting composes (lsedlar@redhat.com)
- Compose: scan all subdirs under compose_path for metadata.
(dmach@redhat.com)
- Add Python 3.6 on Travis (lsedlar@redhat.com)
- tests: add tests for ComposeInfo.get_variants() (kdreyer@redhat.com)
- tests: composeinfo variant arches are sets (kdreyer@redhat.com)
- composeinfo: py3 support for sort in get_variants() (kdreyer@redhat.com)
- composeinfo: py3 support for iter in get_variants() (kdreyer@redhat.com)
- composeinfo: check variant arches as a set (kdreyer@redhat.com)
- composeinfo: fix arch kwarg handling in get_arches() (kdreyer@redhat.com)
- Configure bztar with setup.cfg (lsedlar@redhat.com)
- Remove requirements.txt (lsedlar@redhat.com)
- Include requirements.txt in tarball (lsedlar@redhat.com)
- Move %%license definition just before %%files (lsedlar@redhat.com)
- Remove builder.test from releasers.conf (lsedlar@redhat.com)
- Install deps with setup.py on Travis (lsedlar@redhat.com)
* Wed Nov 23 2016 Lubomír Sedlář <lsedlar@redhat.com> 1.3-1
- new package built with tito
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Jun 02 2016 Lubomír Sedlář <lsedlar@redhat.com> - 1.2-1
- New upstream release
- Update source url to point to PyPI
- Allow numbers in variant IDs. (dmach)
- Add support for top-level variant UIDs with dashes. (dmach)
- Change JSON separators to unify behavior on py2 and py3. (dmach)
- Move src images under binary arches. (dmach)
- Silence flake8 by moving module imports to top. (dmach)
- Forbid 'src' arch in images.json and rpms.json. (dmach)
- Include tests/images data in MANIFEST.in. (dmach)
- Add docstring to Header class (lsedlar)
* Mon Apr 25 2016 Lubomír Sedlář <lsedlar@redhat.com> - 1.1-1
- new upstream release
- use .tar.gz tarball from github
- removed patches as they are merged upstream
* Fri Mar 11 2016 Dennis Gilmore <dennsi@ausil.us> - 1.0-13
- add patch for supporting subvariant
* Thu Feb 18 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-12
- add a patch to make rawhide as a version consistently an option
* Thu Feb 18 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-11
- update from git to allow us to use rawhide as the version
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jan 26 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-10
- provide python2-productmd
- remove defattr
* Fri Dec 11 2015 Daniel Mach <dmach@redhat.com> - 1.0-9
- Use v1.0 tarball from github
- Fix spec for el6 (license macro)
- Add dependency on python(3)-six
* Wed Dec 09 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-8.git3b72969
- enable building only on python 2 on epel
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7.git3b72969
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Tue Nov 03 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-6.git3b72969
- update git snapshot
- rebuild for python-3.5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5.gitec8c627
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Jun 07 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-4.gitec8c627
- update git snapshot to latest git head with fixes for pungi
* Fri Mar 13 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-3.git57efab
- rename to python-productmd
* Wed Mar 11 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-2.git57efab
- update git tarball so we can run tests at build time
* Tue Mar 10 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-1
- Initial packaging

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (productmd-1.28.tar.gz) = 463907d775bbbf233d8fd8310b22fb3c2db6d7bb09e425c6628a02019359e7f4377b6b6722d347723034ecbade2a7cffbe00f1dc176aac05440eca443b80d87f