Hello community, here is the log from the commit of package mwic for openSUSE:Factory checked in at 2018-12-04 20:57:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mwic (Old) and /work/SRC/openSUSE:Factory/.mwic.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mwic" Tue Dec 4 20:57:42 2018 rev:5 rq:653731 version:0.7.7 Changes: -------- --- /work/SRC/openSUSE:Factory/mwic/mwic.changes 2018-10-22 11:25:39.571017703 +0200 +++ /work/SRC/openSUSE:Factory/.mwic.new.19453/mwic.changes 2018-12-04 20:57:49.892619914 +0100 @@ -1,0 +2,7 @@ +Tue Nov 13 19:32:04 UTC 2018 - Sebastian Wagner <sebix+novell.com@sebix.at> + +- remove reproducible-manpage.patch +- update to version 0.7.7: + * no upstream changelog available + +------------------------------------------------------------------- Old: ---- mwic-0.7.6.tar.gz mwic-0.7.6.tar.gz.asc reproducible-manpage.patch New: ---- mwic-0.7.7.tar.gz mwic-0.7.7.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mwic.spec ++++++ --- /var/tmp/diff_new_pack.4ebMG8/_old 2018-12-04 20:57:50.380619376 +0100 +++ /var/tmp/diff_new_pack.4ebMG8/_new 2018-12-04 20:57:50.380619376 +0100 @@ -18,15 +18,13 @@ %{!?license: %global license %doc} Name: mwic -Version: 0.7.6 +Version: 0.7.7 Release: 0 Summary: A spellchecker with grouping support License: MIT Group: Productivity/Office/Other Url: http://jwilk.net/software/mwic Source: https://github.com/jwilk/mwic/releases/download/%{version}/mwic-%{version}.tar.gz -# PATH-FIX-UPSTREAM reproducible-manpage.patch -- make manpage reproducible https://github.com/jwilk/mwic/issues/8 -Patch0: https://github.com/jwilk/mwic/commit/b34ec23082995ef7d59fc43eb9b708c25560fb4... Source1: https://github.com/jwilk/mwic/releases/download/%{version}/mwic-%{version}.tar.gz.asc Source2: %{name}.keyring BuildRequires: python3-devel >= 3.2 @@ -43,7 +41,6 @@ %prep %setup -q -%patch0 -p1 %build sed -i '1s%^#!.*%#!/usr/bin/python3%' mwic ++++++ mwic-0.7.6.tar.gz -> mwic-0.7.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/.pylintrc new/mwic-0.7.7/.pylintrc --- old/mwic-0.7.6/.pylintrc 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/.pylintrc 2018-11-12 17:42:35.000000000 +0100 @@ -17,8 +17,12 @@ too-many-locals, too-many-statements, +[BASIC] +no-docstring-rgx = .* + [REPORTS] reports = no +score = no msg-template = {C}: {path}:{line}: {symbol} [{obj}] {msg} [FORMAT] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/doc/changelog new/mwic-0.7.7/doc/changelog --- old/mwic-0.7.6/doc/changelog 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/doc/changelog 2018-11-12 17:42:35.000000000 +0100 @@ -1,3 +1,11 @@ +mwic (0.7.7) unstable; urgency=low + + * Don't die with exception when a file cannot be opened. + (If there are many input files, it's helpful to continue when one of them + cannot be opened.) + + -- Jakub Wilk <jwilk@jwilk.net> Mon, 12 Nov 2018 17:42:25 +0100 + mwic (0.7.6) unstable; urgency=low * Improve documentation: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/doc/manpage.rst new/mwic-0.7.7/doc/manpage.rst --- old/mwic-0.7.6/doc/manpage.rst 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/doc/manpage.rst 2018-11-12 17:42:35.000000000 +0100 @@ -7,8 +7,8 @@ --------------------------- :manual section: 1 -:version: mwic 0.7.6 -:date: |date| +:version: mwic 0.7.7 +:date: 2018-10-02 Synopsis -------- @@ -160,6 +160,4 @@ http://jbr.me.uk/linux/esl.html by Justin B Rye -.. |date| date:: %Y-%m-%d - .. vim:ts=3 sts=3 sw=3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/doc/mwic.1 new/mwic-0.7.7/doc/mwic.1 --- old/mwic-0.7.6/doc/mwic.1 2018-09-06 21:24:08.000000000 +0200 +++ new/mwic-0.7.7/doc/mwic.1 2018-11-12 17:42:38.000000000 +0100 @@ -1,6 +1,6 @@ ." Man page generated from reStructuredText. . -.TH MWIC 1 "2018-09-06" "mwic 0.7.6" "" +.TH MWIC 1 "2018-10-02" "mwic 0.7.7" "" .SH NAME mwic - Misspelled Words In Context . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/lib/cli.py new/mwic-0.7.7/lib/cli.py --- old/mwic-0.7.6/lib/cli.py 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/lib/cli.py 2018-11-12 17:42:35.000000000 +0100 @@ -39,7 +39,7 @@ from . import pager from . import text -__version__ = '0.7.6' +__version__ = '0.7.7' class VersionAction(argparse.Action): @@ -100,6 +100,7 @@ ap.add_argument('--suggest', metavar='N', type=int, default=0, help='suggest up to N corrections') ap.add_argument('--debug-dict', action='store_true', help=argparse.SUPPRESS) + ap.add_argument('--traceback', action='store_true', help=argparse.SUPPRESS) options = ap.parse_args() sys.stdout = io.TextIOWrapper(sys.stdout.buffer, 'UTF-8') try: @@ -141,6 +142,7 @@ misspellings=misspellings, options=options, ) + rc = 0 for path in options.files: if path == '-': file = io.TextIOWrapper( @@ -149,18 +151,27 @@ errors=enc_errors, ) else: - file = open( - path, 'rt', - encoding=encoding, - errors=enc_errors, - ) + try: + file = open( + path, 'rt', + encoding=encoding, + errors=enc_errors, + ) + except IOError as exc: + if options.traceback: + raise + msg = '{prog}: {path}: {exc}'.format(prog=ap.prog, path=path, exc=exc.strerror) + print(msg, file=sys.stderr) + rc = 1 + continue with file: spellcheck_file(ctxt, file) if not misspellings: - return + sys.exit(rc) raw_cc = options.output_format == 'color' with lib.pager.autopager(raw_control_chars=raw_cc): print_misspellings(ctxt) + sys.exit(rc) def spellcheck_file(ctxt, file): force_ucs2 = ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/private/run-pylint new/mwic-0.7.7/private/run-pylint --- old/mwic-0.7.6/private/run-pylint 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/private/run-pylint 2018-11-12 17:42:35.000000000 +0100 @@ -31,7 +31,6 @@ log=$(mktemp -t pylint.XXXXXX) "$PYTHON" -m pylint "$@" > "$log" || [ $? != 1 ] ! grep '^\w:' "$log" \ -| grep -v ': missing-docstring [\w' \ | grep -v -P '^\w: (?!lib/).*: missing-docstring ' \ | grep '.' || exit 1 rm "$log" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/private/update-version new/mwic-0.7.7/private/update-version --- old/mwic-0.7.6/private/update-version 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/private/update-version 2018-11-12 17:42:35.000000000 +0100 @@ -1,8 +1,9 @@ #!/bin/sh set -e -u export version=${1:?"no version number provided"} +export date="$(date -u --rfc-3339=date)" PS4='$ ' set -x dch -m -v "$version" -u low -c doc/changelog perl -pi -e 's/^__version__ = '"'"'\K[\w.]+/$ENV{version}/' lib/*.py -perl -pi -e 's/^:version: \S+ \K[\w.]+/$ENV{version}/' doc/*.rst +perl -pi -e 's/^:version: \S+ \K[\w.]+/$ENV{version}/; s/^(:date:) \K[0-9-]+/$ENV{date}/' doc/*.rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwic-0.7.6/tests/test_blackbox.py new/mwic-0.7.7/tests/test_blackbox.py --- old/mwic-0.7.6/tests/test_blackbox.py 2018-09-06 21:23:55.000000000 +0200 +++ new/mwic-0.7.7/tests/test_blackbox.py 2018-11-12 17:42:35.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright © 2014-2016 Jakub Wilk <jwilk@jwilk.net> +# Copyright © 2014-2018 Jakub Wilk <jwilk@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal @@ -44,7 +44,11 @@ sys.argv = ['mwic', '--language', language, path] textstdout = sys.stdout = io.TextIOWrapper(binstdout, encoding='UTF-8') try: - M.main() + try: + M.main() + except SystemExit as exc: + if exc.code != 0: + raise sys.stdout.flush() return binstdout.getvalue().decode('UTF-8') finally: