Hello community, here is the log from the commit of package python-git-pw for openSUSE:Factory checked in at 2020-07-29 17:21:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-git-pw (Old) and /work/SRC/openSUSE:Factory/.python-git-pw.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-git-pw" Wed Jul 29 17:21:09 2020 rev:3 rq:823313 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-git-pw/python-git-pw.changes 2020-06-24 15:49:34.592578647 +0200 +++ /work/SRC/openSUSE:Factory/.python-git-pw.new.3592/python-git-pw.changes 2020-07-29 17:23:12.956700602 +0200 @@ -1,0 +2,13 @@ +Wed Jul 29 06:47:47 UTC 2020 - Steve Kowalik <[email protected]> + +- Update to 2.0.0: + * Drop support for Python 2.7 + * trivial: Use names for options with multiple=True + * Add '--hash' option for 'git-pw patch list' + * rpm: Address review comments + * Add spec file + * Revert "docs: Increase support range for reno" + * travis: Add support for GitHub releases + * docs: Increase support range for reno + +------------------------------------------------------------------- Old: ---- git-pw-1.9.0.tar.gz New: ---- git-pw-2.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-git-pw.spec ++++++ --- /var/tmp/diff_new_pack.k7lF0N/_old 2020-07-29 17:23:15.408702712 +0200 +++ /var/tmp/diff_new_pack.k7lF0N/_new 2020-07-29 17:23:15.408702712 +0200 @@ -18,8 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname git-pw +%define skip_python2 1 Name: python-git-pw -Version: 1.9.0 +Version: 2.0.0 Release: 0 Summary: A tool for integrating Git with Patchwork License: MIT ++++++ git-pw-1.9.0.tar.gz -> git-pw-2.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/.travis.yml new/git-pw-2.0.0/.travis.yml --- old/git-pw-1.9.0/.travis.yml 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/.travis.yml 2020-07-08 20:37:48.000000000 +0200 @@ -2,7 +2,6 @@ sudo: false cache: pip python: -- 2.7 - 3.5 - 3.6 - 3.7 @@ -18,13 +17,21 @@ include: - stage: deploy python: 3.8 - install: skip # no tests, no depedencies needed + install: skip # no tests, no dependencies needed script: skip # we're not running tests deploy: - provider: pypi - user: stephenfin + - provider: pypi + user: "__token__" password: - secure: "gEpwszsB3/LaCCoYtSzKvESzdSel9M8WSUAduTbjxCWFzV5Uuti3EeWDRLIZbotGwVPWTstUulquLwjzvYwXsrW+Lk/J+k4kI1UXMKlW/IOiOdJm7fLq2Pd9/RjuJm6RmRLe2AVy2+99zbTwBWu9Kpfivid1EuITTJBSCvLv4IthyR1wbNHTNEd/zrAS2Nd9Zr4wYs8aa7vjKFon24VOTn5KfOsHODzJCfvePEvXY2Bek/4peFH2rxWGZQL7aMmMtd+x5Z+dMSbIYn4JjelT2zi2JTwOwvXr1ZZ7sQYyniIueQEVHiCm6RVvX+QgkVDfy+xF7A4Tu1rADwGrs8T8DZtD8/pHXto0K4F1jUYA93ECAHSbr9J214yT/3notvstFVMOYpgIwM2Ob6KYNdsocCZSaIJq2dsUbR8ZBJJGwe3mUiN5PsE0ZalZz5UrqaMXAOZw/uL1IR7ETVpkgdPJpGL3gF6v6ebD3SaMZT+lr6spjU0KznF6/3Aq4xMnsMIZ4dpGCHYijb0elLYY1BtUWZDeGH9tcsKLc3ACMUFD2m9pSEQDkrv/qXx24Mxofj7WRefgoLp4Q0xw0j/LrDTfgMsBwWSXmEbf5XaeLPrqdgxCHsFbpxBYaVR1rLO62s0kYEzCW+5T7mmhrFNrTFR+jOJahaTBZBKwvwsH5q52E48=" + secure: "uRtyVTX52PK4NIll439jQ8pBYrtbzs8ICRxbNdyEUuGGlmhPTWFlNBJMpD5J4U9d0XKLN18uUxzKR6/8wte7Pfj3SimgarwvscpuW/0jnQx3lDsdfZ5K6bfkzZKPd4tHgmF5oHbkI2mdB6b4ZcQJ511iZmvsPp9LVCpgFGuL+3iiUMDQcX++syAIpW/M6kFqtJVqyNJXkMg1PxErEau1Wj2aaU6rGnCexf2pzdPcDZf2QZBh3fbD9c0L8G7lSpVVnoCtArUTKaGjS2fsYWc/DDXS7D0xg2MgwsI1kdkwkfsfX5fCQVvKIGPyu4sn2W/ZHRc69v/1SaRu77VFAIgDfc1quaZ8tEpOSliZT8FHuVO4qRUpI8whe7eSxucSSSgHMC+47A+mjLF5cTzRi9MoKXMiwLKY8gSq/1gNDFum0d4ILPc/mje47PidDg5E1VOsa7HS2TuJVZLqHGSLNO0K/CDnEzjVGma8DH/RbEo2/wsX6K6zj9hbiWTqiFYFnqq9giBGsL6B1cj1CIcRMyo/dYBKyuSz47bOH1gd1637uCI206b7Jj/G6aSXy/l6zEAI9M/dyPfDivQ2QqFW+WCAFAYjDxZtMAfscVQI/6c/ystqOE9+MhrpUUCFzxZmE3aNtOtx7PzdizFRGY8cNEycsgdGeSm5wKU+QaXzdKGNh6I=" on: tags: true distributions: sdist bdist_wheel + skip_cleanup: true + - provider: releases + token: + secure: "aLlmj98VGm+MKrvYWFDab5gTEkL9dcMzJq6b0p2c8oHEKd4wrpGlhELGQlnYiaUyMEZcbn3Vkuacw0JN9nZqDBFRnSxtWhZgBAz31IGfM9AXpvXr1bOa1hwUTOnMflR1kcYLyy3kmDsGkk1njNEWu/vK6rORNTIh6oXXnb87GHso7lAc8U1iwwTJ8+ELGZfxhmfvgptGgtIabA42F1zrnd1cHH1ygdSZhxeexHgSIiFh6BleTfHAVJSGrdMaUZKM7MFDZmYvtnRt+JwlL3VqqOjgMA57qVSwWVUQMTMWheh1vj5s3BzcugQOkNSh4gbb9jkAXNK9Y9fsw7ixzNw74gIMNp+BYnyMX83Q7U4xfeojKwxTgvJv6xwwT1S9W565Hn997E22R5DgSj2ldcLer0kYUGwrKu5/5oE19AzOykeMaVShRHE/2YbW7ugWmrJtEUcaOU+t/6AGReiknse186S/9JoHQIzVhWm6NjeD/wg7Wet/75bxzqEbf8UXjsmTZbJmTCPEhtOrDxC7PJ0tDSmDLXgCiqwUJ8ZtCZuu7p3TC1nyVVligutZ90MhU4UGSWMtyzu4JbX2oJEv8Bk2QaVxFA28jKRhNH5UKQnLbRLRKL+vZEsYjY6jXOYIlwUxjokmx/r5fhEbBSZI5TlvJ2LJJBWU2h5St6Gnemi4ZmU=" + on: + tags: true + file: "dist/*" + skip_cleanup: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/ChangeLog new/git-pw-2.0.0/ChangeLog --- old/git-pw-1.9.0/ChangeLog 2020-04-18 01:10:02.000000000 +0200 +++ new/git-pw-2.0.0/ChangeLog 2020-07-08 20:38:10.000000000 +0200 @@ -1,6 +1,18 @@ CHANGES ======= +2.0.0 +----- + +* Drop support for Python 2.7 +* trivial: Use names for options with multiple=True +* Add '--hash' option for 'git-pw patch list' +* rpm: Address review comments +* Add spec file +* Revert "docs: Increase support range for reno" +* travis: Add support for GitHub releases +* docs: Increase support range for reno + 1.9.0 ----- @@ -70,15 +82,3 @@ * Fix help text for --format to refer to pw.format * travis: Update (encrypted) password - -1.5.0 ------ - -* Remove support for 'PW\_FORMAT' environment variable -* requirements: Add support for click 7.0 -* Indicate values loaded from git-config -* Extract pagination parameters to common decorator -* Add support for configurable output columns -* Add support for multiple output formats -* Handle bytestring decode in 'git\_config' helper -* requirements: Make requirements less strict diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/PKG-INFO new/git-pw-2.0.0/PKG-INFO --- old/git-pw-1.9.0/PKG-INFO 2020-04-18 01:10:02.455363300 +0200 +++ new/git-pw-2.0.0/PKG-INFO 2020-07-08 20:38:10.314649300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: git-pw -Version: 1.9.0 +Version: 2.0.0 Summary: Git-Patchwork integration tool Home-page: https://github.com/getpatchwork/git-pw Author: Stephen Finucane @@ -161,11 +161,11 @@ Keywords: git patchwork Platform: UNKNOWN -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python Classifier: Development Status :: 4 - Beta Classifier: Environment :: Console @@ -173,4 +173,4 @@ Classifier: Intended Audience :: Information Technology Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent -Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* +Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw/bundle.py new/git-pw-2.0.0/git_pw/bundle.py --- old/git-pw-1.9.0/git_pw/bundle.py 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/git_pw/bundle.py 2020-07-08 20:37:48.000000000 +0200 @@ -114,29 +114,29 @@ @click.command(name='list') [email protected]('--owner', metavar='OWNER', multiple=True, [email protected]('--owner', 'owners', metavar='OWNER', multiple=True, help='Show only bundles with these owners. Should be an email, ' 'name or ID. Private bundles of other users will not be shown.') @utils.pagination_options(sort_fields=_sort_fields, default_sort='name') @utils.format_options(headers=_list_headers) @click.argument('name', required=False) @api.validate_multiple_filter_support -def list_cmd(owner, limit, page, sort, fmt, headers, name): +def list_cmd(owners, limit, page, sort, fmt, headers, name): """List bundles. List bundles on the Patchwork instance. """ LOG.debug('List bundles: owners=%s, limit=%r, page=%r, sort=%r', - ','.join(owner), limit, page, sort) + ','.join(owners), limit, page, sort) params = [] - for own in owner: + for owner in owners: # we support server-side filtering by username (but not email) in 1.1 - if (api.version() >= (1, 1) and '@' not in own) or own.isdigit(): - params.append(('owner', own)) + if (api.version() >= (1, 1) and '@' not in owner) or owner.isdigit(): + params.append(('owner', owner)) else: - params.extend(api.retrieve_filter_ids('users', 'owner', own)) + params.extend(api.retrieve_filter_ids('users', 'owner', owner)) params.extend([ ('q', name), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw/patch.py new/git-pw-2.0.0/git_pw/patch.py --- old/git-pw-1.9.0/git_pw/patch.py 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/git_pw/patch.py 2020-07-08 20:37:48.000000000 +0200 @@ -190,51 +190,65 @@ @click.command(name='list') [email protected]('--state', metavar='STATE', multiple=True, [email protected]('--state', 'states', metavar='STATE', multiple=True, default=['under-review', 'new'], help='Show only patches matching these states. Should be ' 'slugified representations of states. The available states ' 'are instance dependant.') [email protected]('--submitter', metavar='SUBMITTER', multiple=True, [email protected]('--submitter', 'submitters', metavar='SUBMITTER', multiple=True, help='Show only patches by these submitters. Should be an ' 'email, name or ID.') [email protected]('--delegate', metavar='DELEGATE', multiple=True, - help='Show only patches by these delegates. Should be an ' [email protected]('--delegate', 'delegates', metavar='DELEGATE', multiple=True, + help='Show only patches with these delegates. Should be an ' 'email or username.') [email protected]('--hash', 'hashes', metavar='HASH', multiple=True, + help='Show only patches with these hashes.') @click.option('--archived', default=False, is_flag=True, help='Include patches that are archived.') @utils.pagination_options(sort_fields=_sort_fields, default_sort='-date') @utils.format_options(headers=_list_headers) @click.argument('name', required=False) @api.validate_multiple_filter_support -def list_cmd(state, submitter, delegate, archived, limit, page, sort, fmt, - headers, name): +def list_cmd(states, submitters, delegates, hashes, archived, limit, page, + sort, fmt, headers, name): """List patches. List patches on the Patchwork instance. """ LOG.debug('List patches: states=%s, submitters=%s, delegates=%s, ' - 'archived=%r', ','.join(state), ','.join(submitter), - ','.join(delegate), archived) + 'hashes=%s, archived=%r', ','.join(states), ','.join(submitters), + ','.join(delegates), ','.join(hashes), archived) params = [] - for state in state: + for state in states: params.append(('state', state)) - for subm in submitter: - # we support server-side filtering by email (but not name) in 1.1 - if (api.version() >= (1, 1) and '@' in subm) or subm.isdigit(): - params.append(('submitter', subm)) + for submitter in submitters: + if submitter.isdigit(): + params.append(('submitter', submitter)) else: - params.extend(api.retrieve_filter_ids('people', 'submitter', subm)) - - for delg in delegate: - # we support server-side filtering by username (but not email) in 1.1 - if (api.version() >= (1, 1) and '@' not in delg) or delg.isdigit(): - params.append(('delegate', delg)) + # we support server-side filtering by email (but not name) in 1.1 + if api.version() >= (1, 1) and '@' in submitter: + params.append(('submitter', submitter)) + else: + params.extend( + api.retrieve_filter_ids('people', 'submitter', submitter)) + + for delegate in delegates: + if delegate.isdigit(): + params.append(('delegate', delegate)) else: - params.extend(api.retrieve_filter_ids('users', 'delegate', delg)) + # we support server-side filtering by username (but not email) in + # 1.1 + if api.version() >= (1, 1) and '@' not in delegate: + params.append(('delegate', delegate)) + else: + params.extend( + api.retrieve_filter_ids('users', 'delegate', delegate)) + + for hash_ in hashes: + params.append(('hash', hash_)) params.extend([ ('q', name), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw/series.py new/git-pw-2.0.0/git_pw/series.py --- old/git-pw-1.9.0/git_pw/series.py 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/git_pw/series.py 2020-07-08 20:37:48.000000000 +0200 @@ -95,29 +95,33 @@ @click.command(name='list') [email protected]('--submitter', metavar='SUBMITTER', multiple=True, [email protected]('--submitter', 'submitters', metavar='SUBMITTER', multiple=True, help='Show only series by these submitters. Should be an ' 'email, name or ID.') @utils.pagination_options(sort_fields=_sort_fields, default_sort='-date') @utils.format_options(headers=_list_headers) @click.argument('name', required=False) @api.validate_multiple_filter_support -def list_cmd(submitter, limit, page, sort, fmt, headers, name): +def list_cmd(submitters, limit, page, sort, fmt, headers, name): """List series. List series on the Patchwork instance. """ LOG.debug('List series: submitters=%s, limit=%r, page=%r, sort=%r', - ','.join(submitter), limit, page, sort) + ','.join(submitters), limit, page, sort) params = [] - for subm in submitter: - # we support server-side filtering by email (but not name) in 1.1 - if (api.version() >= (1, 1) and '@' in subm) or subm.isdigit(): - params.append(('submitter', subm)) + for submitter in submitters: + if submitter.isdigit(): + params.append(('submitter', submitter)) else: - params.extend(api.retrieve_filter_ids('people', 'submitter', subm)) + # we support server-side filtering by email (but not name) in 1.1 + if api.version() >= (1, 1) and '@' in submitter: + params.append(('submitter', submitter)) + else: + params.extend( + api.retrieve_filter_ids('people', 'submitter', submitter)) params.extend([ ('q', name), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw/utils.py new/git-pw-2.0.0/git_pw/utils.py --- old/git-pw-1.9.0/git_pw/utils.py 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/git_pw/utils.py 2020-07-08 20:37:48.000000000 +0200 @@ -5,22 +5,24 @@ from __future__ import print_function import csv +import io import os import subprocess import sys import click -import six from tabulate import tabulate def ensure_str(s): if s is None: s = '' - elif not isinstance(s, (six.text_type, six.binary_type)): + elif isinstance(s, bytes): + s = s.decode('utf-8', 'strict') + elif not isinstance(s, str): s = str(s) - return six.ensure_str(s) + return s def trim(string, length=70): # type: (str, int) -> str @@ -68,7 +70,7 @@ elif fmt == 'simple': return tabulate(output, headers, tablefmt='simple') elif fmt == 'csv': - result = six.StringIO() + result = io.StringIO() writer = csv.writer( result, quoting=csv.QUOTE_ALL, lineterminator=os.linesep) writer.writerow([ensure_str(h) for h in headers]) @@ -89,7 +91,9 @@ pager = subprocess.Popen(pager.split(), stdin=subprocess.PIPE, env=env) - output = six.ensure_binary(output) + # TODO(stephenfin): This is potential hangover from Python 2 days + if not isinstance(output, bytes): + output = output.encode('utf-8', 'strict') try: pager.communicate(input=output) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw.egg-info/PKG-INFO new/git-pw-2.0.0/git_pw.egg-info/PKG-INFO --- old/git-pw-1.9.0/git_pw.egg-info/PKG-INFO 2020-04-18 01:10:02.000000000 +0200 +++ new/git-pw-2.0.0/git_pw.egg-info/PKG-INFO 2020-07-08 20:38:10.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: git-pw -Version: 1.9.0 +Version: 2.0.0 Summary: Git-Patchwork integration tool Home-page: https://github.com/getpatchwork/git-pw Author: Stephen Finucane @@ -161,11 +161,11 @@ Keywords: git patchwork Platform: UNKNOWN -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python Classifier: Development Status :: 4 - Beta Classifier: Environment :: Console @@ -173,4 +173,4 @@ Classifier: Intended Audience :: Information Technology Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent -Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* +Requires-Python: >=3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw.egg-info/SOURCES.txt new/git-pw-2.0.0/git_pw.egg-info/SOURCES.txt --- old/git-pw-1.9.0/git_pw.egg-info/SOURCES.txt 2020-04-18 01:10:02.000000000 +0200 +++ new/git-pw-2.0.0/git_pw.egg-info/SOURCES.txt 2020-07-08 20:38:10.000000000 +0200 @@ -72,6 +72,7 @@ releasenotes/notes/issue-47-a9ac87642050d289.yaml releasenotes/notes/issue-48-694495f722119fed.yaml releasenotes/notes/issue-49-865c4f1657b97fce.yaml +releasenotes/notes/issue-55-bfcf05e02ad305b1.yaml releasenotes/notes/passthrough-git-am-arguments-23cd0b292304d648.yaml releasenotes/notes/patch-states-b88240569f8474f1.yaml releasenotes/notes/python-2-deprecation-c87e311384eab29b.yaml @@ -84,6 +85,7 @@ releasenotes/notes/use-bundle-names-b1b3ee5c2858c96b.yaml releasenotes/notes/use-git-pager-settings-ec6555d8311a8bec.yaml releasenotes/notes/warn-on-multiple-filters-a4e01fdb5cf6e459.yaml +rpm/git-pw.spec tests/__init__.py tests/test_api.py tests/test_bundle.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw.egg-info/pbr.json new/git-pw-2.0.0/git_pw.egg-info/pbr.json --- old/git-pw-1.9.0/git_pw.egg-info/pbr.json 2020-04-18 01:10:02.000000000 +0200 +++ new/git-pw-2.0.0/git_pw.egg-info/pbr.json 2020-07-08 20:38:10.000000000 +0200 @@ -1 +1 @@ -{"git_version": "f1f4178", "is_release": true} \ No newline at end of file +{"git_version": "613df41", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/git_pw.egg-info/requires.txt new/git-pw-2.0.0/git_pw.egg-info/requires.txt --- old/git-pw-1.9.0/git_pw.egg-info/requires.txt 2020-04-18 01:10:02.000000000 +0200 +++ new/git-pw-2.0.0/git_pw.egg-info/requires.txt 2020-07-08 20:38:10.000000000 +0200 @@ -2,4 +2,3 @@ requests<3.0,>2.0 tabulate>=0.8 arrow>=0.10 -six>=1.12 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/releasenotes/notes/issue-55-bfcf05e02ad305b1.yaml new/git-pw-2.0.0/releasenotes/notes/issue-55-bfcf05e02ad305b1.yaml --- old/git-pw-1.9.0/releasenotes/notes/issue-55-bfcf05e02ad305b1.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/git-pw-2.0.0/releasenotes/notes/issue-55-bfcf05e02ad305b1.yaml 2020-07-08 20:37:48.000000000 +0200 @@ -0,0 +1,6 @@ +--- +features: + - | + It is now possible to filter patches by hash. For example:: + + git pw patch list --hash HASH diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/requirements.txt new/git-pw-2.0.0/requirements.txt --- old/git-pw-1.9.0/requirements.txt 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/requirements.txt 2020-07-08 20:37:48.000000000 +0200 @@ -2,4 +2,3 @@ requests>2.0,<3.0 tabulate>=0.8 arrow>=0.10 -six>=1.12 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/rpm/git-pw.spec new/git-pw-2.0.0/rpm/git-pw.spec --- old/git-pw-1.9.0/rpm/git-pw.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/git-pw-2.0.0/rpm/git-pw.spec 2020-07-08 20:37:48.000000000 +0200 @@ -0,0 +1,45 @@ +Name: git-pw +Version: 1.9.0 +Release: 1%{?dist} +Summary: Git-Patchwork integration tool + +License: MIT +URL: https://github.com/getpatchwork/git-pw +Source0: https://github.com/getpatchwork/git-pw/releases/download/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pbr +BuildRequires: python3-setuptools + +Requires: git + +%description +git-pw is a tool for integrating Git with Patchwork, the web-based patch +tracking system. + +%prep +%autosetup -n %{name}-%{version} +# Remove bundled egg-info +rm -rf %{name}.egg-info + +%build +%py3_build + +%install +%py3_install +mkdir -p %{buildroot}%{_mandir}/man1 +install -p -D -m 644 man/*.1 %{buildroot}%{_mandir}/man1/ + +%files +%license LICENSE +%doc README.rst +%{_bindir}/git-pw +%{_mandir}/man1/git-pw*.1* +%{python3_sitelib}/git_pw/ +%{python3_sitelib}/git_pw-%{version}-py%{python3_version}*.egg-info + +%changelog +* Sun Apr 26 2020 Stephen Finucane <[email protected]> - 1.9.0-1 +- Initial package. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/setup.cfg new/git-pw-2.0.0/setup.cfg --- old/git-pw-1.9.0/setup.cfg 2020-04-18 01:10:02.455363300 +0200 +++ new/git-pw-2.0.0/setup.cfg 2020-07-08 20:38:10.314649300 +0200 @@ -5,11 +5,11 @@ license = MIT License license_file = LICENSE classifiers = - Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 Programming Language :: Python Development Status :: 4 - Beta Environment :: Console @@ -25,7 +25,7 @@ Bug Tracker = https://github.com/getpatchwork/git-pw/issues Source Code = https://github.com/getpatchwork/git-pw Documentation = https://git-pw.readthedocs.io -python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* +python_requires = >=3.5 [files] packages = @@ -35,9 +35,6 @@ console_scripts = git-pw = git_pw.shell:cli -[bist_wheel] -universal = 1 - [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/setup.py new/git-pw-2.0.0/setup.py --- old/git-pw-1.9.0/setup.py 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/setup.py 2020-07-08 20:37:48.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from setuptools import setup diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/test-requirements.txt new/git-pw-2.0.0/test-requirements.txt --- old/git-pw-1.9.0/test-requirements.txt 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/test-requirements.txt 2020-07-08 20:37:48.000000000 +0200 @@ -1,4 +1,3 @@ mock~=3.0.0 -pytest>=3.0,<6.0;python_version>='3.5' -pytest>=3.0,<5.0;python_version=='2.7' +pytest>=3.0,<6.0 pytest-cov~=2.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-1.9.0/tests/test_patch.py new/git-pw-2.0.0/tests/test_patch.py --- old/git-pw-1.9.0/tests/test_patch.py 2020-04-18 01:09:43.000000000 +0200 +++ new/git-pw-2.0.0/tests/test_patch.py 2020-07-08 20:37:48.000000000 +0200 @@ -345,7 +345,7 @@ result = runner.invoke(patch.list_cmd, [ '--state', 'new', '--submitter', '[email protected]', '--submitter', '2', '--delegate', '[email protected]', - '--delegate', '2', '--archived', + '--delegate', '2', '--hash', 'foo', '--archived', '--limit', 1, '--page', 1, '--sort', '-name', 'test']) assert result.exit_code == 0, result @@ -354,7 +354,8 @@ mock.call('users', [('q', '[email protected]')]), mock.call('patches', [ ('state', 'new'), ('submitter', 1), ('submitter', '2'), - ('delegate', 1), ('delegate', '2'), ('q', 'test'), + ('delegate', 1), ('delegate', '2'), ('hash', 'foo'), + ('q', 'test'), ('archived', 'true'), ('page', 1), ('per_page', 1), ('order', '-name')])]
