#921 Py3 hub
Merged by mikem. Opened by tkopecek.
tkopecek/koji issue905a  into  master

Download 921.patch

:thumbsup:

rebased onto aaf70aabd3737037f49603a494767058fa77f87c

rebased onto f271a53203bbe8be57e1c404a1246d30ae0c3a3c

rebased

:thumbsup:

I get a unit test failure with the current version

  File "/tmp/tmpKZhq0j/tests/test_hub/test_rpmdiff.py", line 93
    defattr = [19L, 33188, 1531970408, 0, 0, 2, 1, -1, -1, 'root', 'root', '02d2c91b']
                 ^
SyntaxError: invalid syntax

I guess the jenkins tests are not running all the py3 tests?

Fixed. Problem with jenkins is that it is not running py3 tests at all. I've to figure out, how to run both and don't mix results.

1 new commit added

  • fix new test

@tkopecek
I found koji.get_rpm_header() will return different result between py2 and py3, because of the differences of the string/byte types.
like the case in PR #1068, should we make the result to only contain strings?

@julian8628 - I've more related changes here https://pagure.io/fork/tkopecek/koji/c/13d956f0a6069ce08fb91019aff7bdf782f54a5e?branch=builder-py3 It probably makes sense to pull it out and create separate PR for that (correct decoding of headers and unified usage of that)

^ PR #1070 / issue #1069

rebased onto b4e031923a197328556dea1480939bc1f8f3d638

rebase

This seems to break the upgrade path. Rpm doesn't know that python2-koji-hub should replace koji-hub

1 new commit added

  • Add provides koji-hub to spec

Is there a reason we should be shipping both versions of the hub? To me, it makes sense to only ship Python 3 components when Python 3 is enabled for stuff that isn't importable modules.

And doing so will drastically simplify the packaging...

What's the status here? Moving to python3 would be very welcome because of the python2 deprecation in F30.

/cc @churchyard

...and yum removal.

rebased onto 60132d25f4002a444b754a3dd6f1a20afec5b95b

I've incorporated few more fixes and revamped packaging for cleaner upgrade path. @mikem, can you check it?

14 new commits added

  • spec changes for py3 hub
  • fix new test
  • fix import
  • fix bytes/str in rpm header
  • fix test
  • fix code inspects
  • marshaller update
  • rename masked rpm variable
  • db ordering fixes
  • convert py2 sorting to py3
  • fix encoding
  • encode xmlrpc responses correctly
  • fix file handling
  • six.moves xmlrpc_client, parse_qs

14 new commits added

  • spec changes for py3 hub
  • fix new test
  • fix import
  • fix bytes/str in rpm header
  • fix test
  • fix code inspects
  • marshaller update
  • rename masked rpm variable
  • db ordering fixes
  • convert py2 sorting to py3
  • fix encoding
  • encode xmlrpc responses correctly
  • fix file handling
  • six.moves xmlrpc_client, parse_qs

14 new commits added

  • spec changes for py3 hub
  • fix new test
  • fix import
  • fix bytes/str in rpm header
  • fix test
  • fix code inspects
  • marshaller update
  • rename masked rpm variable
  • db ordering fixes
  • convert py2 sorting to py3
  • fix encoding
  • encode xmlrpc responses correctly
  • fix file handling
  • six.moves xmlrpc_client, parse_qs

The spec isn't quite where I want it, but I'm going to merge this as-is and deal with that in a separate PR once I merge all three of the main py3 changes.

Commit 2460a001 fixes this pull-request

Pull-Request has been merged by mikem

Metadata