Hello community, here is the log from the commit of package pybugz for openSUSE:Factory checked in at 2016-11-24 21:25:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pybugz (Old) and /work/SRC/openSUSE:Factory/.pybugz.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pybugz" Changes: -------- --- /work/SRC/openSUSE:Factory/pybugz/pybugz.changes 2016-04-05 10:43:12.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.pybugz.new/pybugz.changes 2016-11-24 21:25:25.000000000 +0100 @@ -1,0 +2,6 @@ +Thu Nov 24 09:26:06 UTC 2016 - [email protected] + +- Update to version 0.13: + * No upstream changelog available + +------------------------------------------------------------------- Old: ---- pybugz-0.12.1.tar.gz New: ---- pybugz-0.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pybugz.spec ++++++ --- /var/tmp/diff_new_pack.QjOTDH/_old 2016-11-24 21:25:27.000000000 +0100 +++ /var/tmp/diff_new_pack.QjOTDH/_new 2016-11-24 21:25:27.000000000 +0100 @@ -17,7 +17,7 @@ Name: pybugz -Version: 0.12.1 +Version: 0.13 Release: 0 Summary: Python Bugzilla Interface License: GPL-2.0 @@ -50,8 +50,8 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -install -D -m 0644 contrib/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/bugz -install -D -m 0644 contrib/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_bugz +install -D -p -m 0644 contrib/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/bugz +install -D -p -m 0644 contrib/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_bugz install -d -m 0755 %{buildroot}%{_sysconfdir}/pybugz.d %files @@ -72,6 +72,7 @@ %{_datadir}/pybugz.d/gnome.conf %{_datadir}/pybugz.d/kernel.conf %{_datadir}/pybugz.d/libav.conf +%{_datadir}/pybugz.d/llvm.conf %{_datadir}/pybugz.d/mozilla.conf %{_datadir}/pybugz.d/redhat.conf %{_datadir}/bash-completion ++++++ pybugz-0.12.1.tar.gz -> pybugz-0.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/bugz/__init__.py new/pybugz-0.13/bugz/__init__.py --- old/pybugz-0.12.1/bugz/__init__.py 2016-02-22 17:50:31.000000000 +0100 +++ new/pybugz-0.13/bugz/__init__.py 2016-10-15 22:28:45.000000000 +0200 @@ -1,9 +0,0 @@ -__version__ = '0.12.1' -__author__ = 'Alastair Tse <http://www.liquidx.net/>' -__contributors__ = ['Santiago M. Mola <[email protected]>', - 'William Hubbs <[email protected]>', - 'Mike Gilbert <[email protected]>', - 'Benjamin Behringer <[email protected]>'] -__revision__ = '$Id: $' -__license__ = """Copyright (c) 2006, Alastair Tse, All rights reserved. -This following source code is licensed under the GPL v2 License.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/bugz/cli.py new/pybugz-0.13/bugz/cli.py --- old/pybugz-0.12.1/bugz/cli.py 2016-02-22 17:50:31.000000000 +0100 +++ new/pybugz-0.13/bugz/cli.py 2016-10-15 22:28:45.000000000 +0200 @@ -255,7 +255,7 @@ 'cc': 'CC', 'see_also': 'See Also', } - SkipFields = ['assigned_to_detail', 'creator_detail', 'id', + SkipFields = ['assigned_to_detail', 'cc_detail', 'creator_detail', 'id', 'is_confirmed', 'is_creator_accessible', 'is_cc_accessible', 'is_open', 'update_token'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/bugz/cli_argparser.py new/pybugz-0.13/bugz/cli_argparser.py --- old/pybugz-0.12.1/bugz/cli_argparser.py 2016-02-22 17:50:31.000000000 +0100 +++ new/pybugz-0.13/bugz/cli_argparser.py 2016-10-15 22:28:45.000000000 +0200 @@ -2,7 +2,7 @@ import bugz.cli -from bugz import __version__ +from bugz.definitions import __version__ def make_arg_parser(): @@ -36,6 +36,9 @@ parser.add_argument('--skip-auth', action='store_true', help='skip Authentication.') + parser.add_argument('--insecure', + action='store_true', + help='do not verify ssl certificate') parser.add_argument('--version', action='version', help='show program version and exit', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/bugz/definitions.py new/pybugz-0.13/bugz/definitions.py --- old/pybugz-0.12.1/bugz/definitions.py 1970-01-01 01:00:00.000000000 +0100 +++ new/pybugz-0.13/bugz/definitions.py 2016-10-15 22:28:45.000000000 +0200 @@ -0,0 +1,9 @@ +__version__ = '0.13' +__author__ = 'Alastair Tse <http://www.liquidx.net/>' +__contributors__ = ['Santiago M. Mola <[email protected]>', + 'William Hubbs <[email protected]>', + 'Mike Gilbert <[email protected]>', + 'Benjamin Behringer <[email protected]>'] +__revision__ = '$Id: $' +__license__ = """Copyright (c) 2006, Alastair Tse, All rights reserved. +This following source code is licensed under the GPL v2 License.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/bugz/settings.py new/pybugz-0.13/bugz/settings.py --- old/pybugz-0.12.1/bugz/settings.py 2016-02-22 17:50:31.000000000 +0100 +++ new/pybugz-0.13/bugz/settings.py 2016-10-15 22:28:45.000000000 +0200 @@ -1,6 +1,8 @@ +import ssl import sys import urllib.error import urllib.parse +import xml.parsers.expat import xmlrpc.client from bugz.configfile import get_config_option @@ -105,10 +107,23 @@ else: self.skip_auth = False + if not hasattr(self, 'insecure'): + if config.has_option(self.connection, 'insecure'): + self.insecure = get_config_option(config.getboolean, + self.connection, + 'insecure') + else: + self.insecure = False + if getattr(self, 'encoding', None) is not None: log_info('The encoding option is deprecated.') - self.bz = xmlrpc.client.ServerProxy(self.base) + if self.insecure: + context=ssl._create_unverified_context() + else: + context = None + + self.bz = xmlrpc.client.ServerProxy(self.base, context=context) self.connections = config.sections() parse_result = urllib.parse.urlparse(self.base) @@ -142,3 +157,5 @@ raise BugzError(error) except urllib.error.URLError as error: raise BugzError(error) + except xml.parsers.expat.ExpatError as error: + raise BugzError(error) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/man/pybugz.d.5 new/pybugz-0.13/man/pybugz.d.5 --- old/pybugz-0.12.1/man/pybugz.d.5 2016-02-22 17:50:31.000000000 +0100 +++ new/pybugz-0.13/man/pybugz.d.5 2016-10-15 22:28:45.000000000 +0200 @@ -130,6 +130,12 @@ .PP This sets the default statuses to be used in a search command. It is a space separated list of Bugzilla statuses. +.PP +insecure = true | false +.PP +If this is set to true, pybugz will not validate the ssl certificate +used during an https connection to this site. Do not use this setting +unless you know exactly what you are doing. .SH BUGS .PP The home page of this project is http://www.github.com/williamh/pybugz. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/pybugz.d/llvm.conf new/pybugz-0.13/pybugz.d/llvm.conf --- old/pybugz-0.12.1/pybugz.d/llvm.conf 1970-01-01 01:00:00.000000000 +0100 +++ new/pybugz-0.13/pybugz.d/llvm.conf 2016-10-15 22:28:45.000000000 +0200 @@ -0,0 +1,3 @@ +[LLVM] +base = https://llvm.org/bugs/xmlrpc.cgi +search_statuses = confirmed, in_progress, unconfirmed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybugz-0.12.1/setup.py new/pybugz-0.13/setup.py --- old/pybugz-0.12.1/setup.py 2016-02-22 17:50:31.000000000 +0100 +++ new/pybugz-0.13/setup.py 2016-10-15 22:28:45.000000000 +0200 @@ -1,23 +1,86 @@ -import glob -from setuptools import setup +from setuptools import setup,find_packages +from glob import glob +from bugz.definitions import __version__ -from bugz import __version__ +# To use a consistent encoding +from codecs import open +from os import path + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(here, 'README'), encoding='utf-8') as f: + long_description = f.read() setup( name='pybugz', + + # Versions should comply with PEP440. For a discussion on single-sourcing + # the version across setup.py and the project code, see + # https://packaging.python.org/en/latest/single_source_version.html version=__version__, + description='python interface to bugzilla', - long_description='python interface to bugzilla', + long_description=long_description, + + # The project's main homepage. + url='http://github.com/williamh/pybugz', + + # Author details author='Alastair Tse', author_email='[email protected]', + + # Choose your license license="GPL-2", - url='http://www.liquidx.net/pybugz', - packages=['bugz'], - platforms=['any'], + + # You can just specify the packages manually here if your project is + # simple. Or you can use find_packages(). + # packages=find_packages(exclude=['contrib', 'docs', 'tests']), + packages=find_packages(), + + # Alternatively, if you want to distribute just a my_module.py, uncomment + # this: + # py_modules=["my_module"], + + # List run-time dependencies here. These will be installed by pip when + # your project is installed. For an analysis of "install_requires" vs pip's + # requirements files see: + # https://packaging.python.org/en/latest/requirements.html + # install_requires=['sample_package'], + + # List additional groups of dependencies here (e.g. development + # dependencies). You can install these using the following syntax, + # for example: + # $ pip install -e .[dev,test] + # extras_require={ + # 'dev': ['check-manifest'], + # 'test': ['coverage'], + # }, + + # If there are data files included in your packages that need to be + # installed, specify them here. If using Python 2.6 or less, then these + # have to be included in MANIFEST.in as well. + # package_data={ + # 'sample': ['package_data.dat'], + # }, + + # Although 'package_data' is the preferred approach, in some case you may + # need to place data files outside of your packages. See: + # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa + # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' + # data_files=[('my_data', ['data/data_file'])], data_files=[ ('share/man/man1', ['man/bugz.1']), ('share/man/man5', ['man/pybugz.d.5']), - ('share/pybugz.d', glob.glob('pybugz.d/*.conf')), + ('share/pybugz.d', glob('pybugz.d/*.conf')), ], - entry_points={'console_scripts': ['bugz=bugz.cli:main']}, + + # To provide executable scripts, use entry points in preference to the + # "scripts" keyword. Entry points provide cross-platform support and allow + # pip to create the appropriate form of executable for the target platform. + entry_points={ + 'console_scripts': [ + 'bugz=bugz.cli:main' + ] + }, )
