Closed psss closed 3 years ago
@lachmanfrantisek, I've removed epel-7
from the .packit.yaml
but the epel-7
build seems to be included in the latest packit job. Is that expected?
@lachmanfrantisek, I've removed epel-7 from the .packit.yaml but the epel-7 build seems to be included in the latest packit job. Is that expected?
I thought we had already fixed this. (@mfocko I recall we've discussed this).
@psss It should affect only this PR and will not be used once merged...
@psss It's twice there, once for pull_request
trigger and second time for builds on push to master
(← this one I see removed in diff for PR).
We've also changed the behavior, such that we remove targets only on projects created and maintained by Packit user, so if you want to remove epel-7
from the Copr repo you own (where you build everything pushed to master
), you need to do so yourself. However it shouldn't build for it, cause it checks only if the targets from config are enabled and builds those. I won't mind if you check it ;)
@lachmanfrantisek, @mfocko, thanks for quick review and hints. I've completely forgotten that the target config is there twice. After removing the second one everything seems to be working as expected. Sorry for the noise.
Good point @jscotka , unicode(item)
raises NameError:
for python3 so except cause will be hit each time
@lukaszachy, @jscotka, good points! All should be covered now.
I think that also "class Tree(object)" should not be used inside python3 just "class Tree:"
@jscotka could you please elaborate a bit more why object
should not be used?
I think that also "class Tree(object)" should not be used inside python3 just "class Tree:"
@jscotka could you please elaborate a bit more why
object
should not be used?
I had that feeling, maybe there were some hints or docs what I've read that somewhere, now when looking inside: https://stackoverflow.com/questions/4015417/why-do-python-classes-inherit-object it seems that there were difference inside Python2, and in python3 there syntax class X:
and class X(object):
is totally equivalent, so that reason why to not use it is that you saves 8 chars.
@jscotka, thanks for clarification. Unnecessary object
strings removed from class definitions. @lukaszachy anything else to change or are we ready for squash and merge?
LGTM.
@lukaszachy, @jscotka, @FrNecas, thanks much for the review! Rebased, squashed, now waiting for tests.
Remove related stuff from the spec file. Remove Python 2 only code, disable epel-7 packit. Remove irrelevant adjust rule from unit tests. Get rid of other
unicode
related leftovers. Use default encoding for running commands. Explicitly mention theutf-8
encoding in the docs. Remove unnecessaryobject
from class definitions.