Would it be possible to build this package in Epel 8? I think it would be useful, for example on my CentOS 8 server. I am a Fedora packager and I have experience with Python-packaging, let me know if I can help. Tanks for considering!
tldr requires python-termcolor that is not available right now in epel8. I'm working to provide that missing dep and after I will build tldr for epel8.
Great! Also, David, if you want to help us with the maintenance, feel free to say so and I'll make you a co-maintainer.
@Mikel: Great, thanks! @Lumír: Yes, I'd like to help whenever I can!
FEDORA-EPEL-2021-8f354c4b3d has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-8f354c4b3d
FEDORA-EPEL-2021-8f354c4b3d 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-2021-8f354c4b3d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Davide, you are a co-maintainer now, thank you! Mikel, unfortunately, the update does not work because tldr needs also colorama which is not available in RHEL/EPEL. I have some good and some bad news. The good one is that colorama has no other dependencies so it should be easy to package for EPEL. The bad one is that python-colorama exists as a component in RHEL so AFAIK we cannot just create a new branch in python-colorama Fedora package and build it for EPEL. The way to go here, IMHO, is to create a new package python3-colorama and request only the epel8 branch for it. What do you think about it?
Hi Lumir, I'm confused. tldr install worked for me in a fresh CentOS8 with epel-release installed with this bodhi update (dnf install tldr -y --enablerepo=epel-testing && tldr ls). I'm having issues with EPEL7 build, as the .spec required some changes, but once I modified the spec I broke the side-tag I was working on. The build was complaining only on python-termcolor missing in CentOS7/epel7 but https://src.fedoraproject.org/rpms/python-colorama is available. My plan was to continue with epel7 build today. I'll double check the colorama issue you mention.
I am gonna try it again now.
I am sorry, I had epel repo disabled accidentally. It works.
awesome! I was able to fix the side-tag for epel7, but %pytest macro is not available for epel7 at the moment. I think it is due to missing python3-pytest-mock in epel7 , but there is an ongoing bodhi update https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-9e37bff701 for it, so I'll wait a few days and try again.
%pytest macro won't be in epel7 and it depends only on pytest. You can check what the macro does on: https://src.fedoraproject.org/rpms/python-rpm-macros/blob/master/f/macros.python3#_8 Why do you need pytest-mock for tldr?
FEDORA-EPEL-2021-b9e7c225f8 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-b9e7c225f8
I thought %pytest depended on pytest-mock, but you're right. I changed the macro to use pytest-3 directly and it works fine. Also adapted in -3 another dep that needed a change (colorama). With that I was able to build and test tldr also in EPEL7.
Wow that was fast, only two days later and I could install it from epel-testing. Works great of course, thanks Mikel! I just noticed that tldr's bash-completion does not work for me, does it work for you? Should I create a new issue for this?
bash-completion works for me on a fresh CentOS8 after installing bash-completion and trying tldr[tab][tab] in a new shell or new login.
FEDORA-EPEL-2021-b9e7c225f8 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-b9e7c225f8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Wasn't aware that you need to manually install bash-completion, that works on CentOS, thanks! For my Fedora desktop I suspect that something somewhere is broken and I'll need to do a bit of debugging...
FEDORA-EPEL-2021-8f354c4b3d has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.