[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#962239: RFP: jc -- converts command output to JSON



Quick update - v1.12.1 fixes the tests when using an older version of pygments.

Any chance anyone can take this on and package it?

Thanks,
Kelly

> On Jul 10, 2020, at 4:48 PM, Kelly Brazil <kellyjonbrazil@gmail.com> wrote:
> 
> Hi Sudip,
> 
> We have updated jc to version 1.12.0 which now has a lower version requirement for pygments. 
> 
> Jc now only requires pygments version 2.3.0 and above, so it should package with the existing pygments version now.
> 
> Thanks,
> Kelly 
> 
>> On Jun 8, 2020, at 1:41 PM, Kelly Brazil <kellyjonbrazil@gmail.com> wrote:
>> 
>> Ah yes, the minimum pygments version should probably be v2.4.2.
>> 
>>> On Jun 8, 2020, at 1:37 PM, Sudip Mukherjee <sudipm.mukherjee@gmail.com> wrote:
>>> 
>>> On Thu, Jun 04, 2020 at 03:03:35PM -0700, Kelly Brazil wrote:
>>>> Package: wnpp
>>>> Severity: wishlist
>>>> 
>>>> I am the developer of jc, which is now packaged on OpenSUSE, NixOS, macOS (Homebrew), and FreeBSD (ports). jc is currently in process for packaging on Fedora.
>>>> 
>>>> jc is licensed under the MIT license.
>>>> 
>>>> https://github.com/kellyjonbrazil/jc
>>>> https://pypi.org/project/jc/
>>>> 
>>>> JSON CLI output utility
>>> 
>>> I do not use this personally, but I think this might be a good package
>>> to be in Debian. I made an initial packaging, but getting error while
>>> trying to use that.
>>> 
>>> $ ls -l /usr/bin | jc --ls
>>> 
>>> Traceback (most recent call last):
>>> File "/usr/bin/jc", line 11, in <module>
>>>  load_entry_point('jc==1.11.2', 'console_scripts', 'jc')()
>>> File "/usr/lib/python3/dist-packages/jc/cli.py", line 401, in main
>>>  json_out(result, pretty=pretty, mono=mono, piped_out=piped_output())
>>> File "/usr/lib/python3/dist-packages/jc/cli.py", line 249, in json_out
>>>  class JcStyle(Style):
>>> File "/usr/lib/python3/dist-packages/pygments/style.py", line 101, in __new__
>>>  ndef[0] = colorformat(styledef)
>>> File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
>>>  assert False, "wrong color format %r" % text
>>> AssertionError: wrong color format 'ansiblue'
>>> 
>>> I have also tried with ls -l /usr/bin | jc --ls -m
>>> 
>>> Note: This works fine when I install Pygments from pip3 (v2.6.1) rather
>>> than using the Debian version which is v2.3.1
>>> 
>>> 
>>> --
>>> Regards
>>> Sudip
>> 
> 


Reply to: