Skip to content

src/cmd-koji-upload: port to Python3#729

Merged
cgwalters merged 5 commits intocoreos:masterfrom
darkmuggle:koji-py3
Sep 4, 2019
Merged

src/cmd-koji-upload: port to Python3#729
cgwalters merged 5 commits intocoreos:masterfrom
darkmuggle:koji-py3

Conversation

@darkmuggle
Copy link
Copy Markdown
Contributor

The latest Koji packages in Fedora just work with Kerberos authentication for Koji. This drops the Python2 for Python3.

@darkmuggle darkmuggle added the WIP PR still being worked on label Aug 28, 2019
@darkmuggle
Copy link
Copy Markdown
Contributor Author

This is a WIP for now, but I wanted to socialize the thinking in light of #720. I've included some of @cgwalters's changes.

This is functional, but a full-end-to-end run has not been done.

Comment thread src/cmdlib.py Outdated
@cgwalters
Copy link
Copy Markdown
Member

Oh man if it's this easy, great!

@cgwalters
Copy link
Copy Markdown
Member

Quoth travis:

Error: Unable to find a match: python3-koji-plugins

...

sudo yum search python koji | head -20
Last metadata expiration check: 0:33:43 ago on Thu 29 Aug 2019 01:45:39 PM UTC.
===================== Name & Summary Matched: python, koji =====================
python3-koji-web.noarch : Koji Web UI
python3-koji-hub.noarch : Koji XMLRPC interface
python2-koji.noarch : Build system tools python library
python3-koji.noarch : Build system tools python library
python3-koji-hub-plugins.noarch : Koji hub plugins
python2-koji-cli-plugins.noarch : Koji client plugins
python3-koji-cli-plugins.noarch : Koji client plugins
python3-atomic-reactor-koji.noarch : Koji plugin for Atomic Reactor
python2-koji-containerbuild-cli.noarch : CLI that communicates with Koji to
     ...: control building layered container images
python3-koji-containerbuild-cli.noarch : CLI that communicates with Koji to
     ...: control building layered container images

Did you mean python3-koji-cli-plugins?

Comment thread src/cmdlib.py Outdated
Comment thread src/cmd-koji-upload

# os.path.getsize uses 1kB instead of 1KB. So we use stat instead.
fsize = subprocess.check_output(["stat", "--dereference", "--format", '%s', lpath])
fsize = '{}'.format(os.stat(lpath).st_size)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread src/cmd-koji-upload
Copy link
Copy Markdown
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, otherwise LGTM!

Comment thread src/cmdlib.py
@cgwalters cgwalters merged commit 39a8703 into coreos:master Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP PR still being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants