Accepting request 809110 from home:mnhauke
- Update to version 1.11.1 * Update stat command parser to change osx_flags field to string * Add dmidecode command parser * Update stat command parser to add OSX support * Update netstat command parser to add -r (route) functionality for linux and OSX * Update netstat command parser to add -i (interface) functionality for linux and OSX * Remove shebang from jc/cli.py for Fedora packaging * Change file permissions for Fedora packaging * Fix ls parser issue where the first file was skipped for ls -R on some platforms * Update last parser to handle 'gone - no logout' condition * Update netstat parser to handle bluetooth section (ignore gracefully for now) * Add license info to vendorized ifconfig-parser class * Add license file to dist for Fedora RPM packaging requirements * Remove tests from package to keep from polluting the global site-packages * Requirements modifications for Fedora RPM packaging requirements * Remove homebrew shim references from du osx tests * Minor change of using sys.exit(0) instead of exit() * Add color customization via JC_COLORS env variable * Fix break on pipe error * Change colors to ansi and match jello colors * Code cleanup * Add color output by default when not piping data to another program OBS-URL: https://build.opensuse.org/request/show/809110 OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=3
This commit is contained in:
3
jc-1.11.1.tar.gz
Normal file
3
jc-1.11.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:75e9bc7ca51f1b2e85161bdd63a6a80c6da025ee1b9b8fc8fb5cd24b7d0d7c55
|
||||
size 1879850
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:997df32d650f4c82a6d89d21e7aea5599fa229304ee7918e0d6113e533826155
|
||||
size 846382
|
62
jc.changes
62
jc.changes
@@ -1,3 +1,65 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 19:29:21 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Update to version 1.11.1
|
||||
* Update stat command parser to change osx_flags field to string
|
||||
* Add dmidecode command parser
|
||||
* Update stat command parser to add OSX support
|
||||
* Update netstat command parser to add -r (route) functionality
|
||||
for linux and OSX
|
||||
* Update netstat command parser to add -i (interface)
|
||||
functionality for linux and OSX
|
||||
* Remove shebang from jc/cli.py for Fedora packaging
|
||||
* Change file permissions for Fedora packaging
|
||||
* Fix ls parser issue where the first file was skipped for
|
||||
ls -R on some platforms
|
||||
* Update last parser to handle 'gone - no logout' condition
|
||||
* Update netstat parser to handle bluetooth section (ignore
|
||||
gracefully for now)
|
||||
* Add license info to vendorized ifconfig-parser class
|
||||
* Add license file to dist for Fedora RPM packaging
|
||||
requirements
|
||||
* Remove tests from package to keep from polluting the global
|
||||
site-packages
|
||||
* Requirements modifications for Fedora RPM packaging
|
||||
requirements
|
||||
* Remove homebrew shim references from du osx tests
|
||||
* Minor change of using sys.exit(0) instead of exit()
|
||||
* Add color customization via JC_COLORS env variable
|
||||
* Fix break on pipe error
|
||||
* Change colors to ansi and match jello colors
|
||||
* Code cleanup
|
||||
* Add color output by default when not piping data to another
|
||||
program
|
||||
* Add -m option for monochrome output
|
||||
* Add axfr support for dig command parser
|
||||
* Updated arp parser to fix OSX detection for some edge cases
|
||||
* Updated file command parser to make filename splitting more
|
||||
robust
|
||||
* Added ntpq command parser
|
||||
* Added timedatectl status command parser
|
||||
* Added airport -I and airport -s command parser
|
||||
* Added file command parser
|
||||
* Optimized history command parser by
|
||||
https://github.com/philippeitis
|
||||
* Magic syntax fix for certain edge cases
|
||||
* CLI optimizations by https://github.com/philippeitis
|
||||
* Refactored magic syntax function and added tests
|
||||
(https://github.com/philippeitis)
|
||||
* Updated ls parser to fix parsing error in OSX with -lR when
|
||||
there are empty folders
|
||||
* Added blkid command parser
|
||||
* Added last and lastb command parser
|
||||
* Added who command parser
|
||||
* Added CSV file parser
|
||||
* Added /etc/passwd file parser
|
||||
* Added /etc/shadow file parser
|
||||
* Added /etc/group file parser
|
||||
* Added /etc/gshadow file parser
|
||||
* Updated ls parser to support filenames with newline characters
|
||||
* Updated ls parser to support multiple directories, globbing,
|
||||
and -R (recursive)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 16 20:24:09 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
|
18
jc.spec
18
jc.spec
@@ -1,6 +1,7 @@
|
||||
#
|
||||
# spec file for jc
|
||||
# spec file for package jc
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -12,26 +13,29 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: jc
|
||||
Version: 1.7.3
|
||||
Version: 1.11.1
|
||||
Release: 0
|
||||
Summary: JSON CLI output utility
|
||||
License: MIT
|
||||
Group: Productivity/Text/Utilities
|
||||
URL: https://github.com/kellyjonbrazil/jc
|
||||
Source: https://files.pythonhosted.org/packages/source/j/jc/jc-%{version}.tar.gz
|
||||
Source: https://github.com/kellyjonbrazil/jc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: python3-Pygments >= 2.4.2
|
||||
Requires: python3-ifconfig-parser >= 0.0.5
|
||||
Requires: python3-ruamel.yaml >= 0.15.0
|
||||
Requires: python3-xmltodict >= 0.12.0
|
||||
Recommends: jq
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: python3-Pygments >= 2.4.2
|
||||
BuildRequires: python3-ifconfig-parser >= 0.0.5
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-ruamel.yaml >= 0.15.0
|
||||
@@ -44,22 +48,20 @@ and file types for easier parsing in scripts.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
chmod -x README.md
|
||||
sed -i -e '/^#!\//, 1d' jc/cli.py
|
||||
|
||||
%build
|
||||
%python3_build
|
||||
|
||||
%install
|
||||
%python3_install
|
||||
rm -rf %{buildroot}/%{python3_sitelib}/tests
|
||||
%fdupes %{buildroot}%{python3_sitelib}
|
||||
|
||||
%check
|
||||
python3 -m pytest -v
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE.md
|
||||
%doc changelog.txt README.md
|
||||
%{_bindir}/jc
|
||||
%{python3_sitelib}/jc*
|
||||
|
||||
|
Reference in New Issue
Block a user