Bug 1824314 - build python-pymod2pkg for EPEL 8
Summary: build python-pymod2pkg for EPEL 8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-pymod2pkg
Version: epel8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alan Pevec (Fedora)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-15 19:46 UTC by Ken Dreyer (Red Hat)
Modified: 2020-05-01 10:53 UTC (History)
4 users (show)

Fixed In Version: python-pymod2pkg-0.17.1-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-01 10:53:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ken Dreyer (Red Hat) 2020-04-15 19:46:08 UTC
Would you please build python-pymod2pkg for EPEL 8?

I cannot install rdopkg on EPEL 8 because python-pymod2pkg is missing.

$ yum install rdopkg

 Problem: package rdopkg-1.1.1-1.el8.noarch requires python3-rdopkg = 1.1.1-1.el8, but none of the providers can be installed
  - conflicting requests
  - nothing provides python3-distroinfo >= 0.3.0 needed by python3-rdopkg-1.1.1-1.el8.noarch
  - nothing provides python3-pymod2pkg >= 0.2.1 needed by python3-rdopkg-1.1.1-1.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Comment 1 Ken Dreyer (Red Hat) 2020-04-15 20:14:58 UTC
When I use the master branch, I can build the package in an epel8 chroot, but I need to patch out these test dependencies:

git diff
diff --git a/python-pymod2pkg.spec b/python-pymod2pkg.spec
index 57c9639..8803c8d 100644
--- a/python-pymod2pkg.spec
+++ b/python-pymod2pkg.spec
@@ -46,9 +46,6 @@ Requires:         python3-pbr
 BuildRequires:    python3-setuptools
 BuildRequires:    python3-devel
 BuildRequires:    python3-pbr
-BuildRequires:    python3-stestr
-BuildRequires:    python3-testresources
-BuildRequires:    python3-testtools
 %{?python_provide:%python_provide python3-%{sname}}
 
 %description -n python3-%{sname}
@@ -72,11 +69,11 @@ This is a Python3 version.
 
 %check
 %if %{with python3}
-PYTHON=python3 stestr-3 run
+python3 tests.py
 rm -rf .testrepository
 %endif
 %if %{with python2}
-PYTHON=python2 stestr run
+python2 tests.py
 %endif
 
 %install


The upstream documentation simply recommends running "python tests.py", https://docs.openstack.org/pymod2pkg/latest/#running-the-testsuite

I don't know enough to say why pymod2pkg still BuildRequires these, but %check passes fine without them.

Comment 2 Fedora Update System 2020-04-16 08:22:49 UTC
FEDORA-EPEL-2020-2e01b78435 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-2e01b78435

Comment 3 Javier Peña 2020-04-16 08:26:27 UTC
Actually, I think the documentation is outdated, since all OpenStack projects standardized on using stestr for tests.

In any case, since removing all those test dependencies and switching to "python setup.py test" works fine, I have built the package (see the Bodhi update).

Thanks!

Comment 4 Fedora Admin XMLRPC Client 2020-04-16 16:45:54 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 5 Fedora Update System 2020-04-16 23:42:42 UTC
FEDORA-EPEL-2020-2e01b78435 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-2e01b78435

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-05-01 10:53:59 UTC
FEDORA-EPEL-2020-2e01b78435 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.