Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-git-pw for openSUSE:Factory checked in at 2022-12-14 14:11:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-git-pw (Old) and /work/SRC/openSUSE:Factory/.python-git-pw.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-git-pw" Wed Dec 14 14:11:15 2022 rev:5 rq:1042826 version:2.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-git-pw/python-git-pw.changes 2022-05-06 19:00:35.505438681 +0200 +++ /work/SRC/openSUSE:Factory/.python-git-pw.new.1835/python-git-pw.changes 2022-12-14 14:11:29.247644221 +0100 @@ -1,0 +2,11 @@ +Wed Dec 14 08:47:02 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com> + +- Remove python_module macro definition + +------------------------------------------------------------------- +Tue Dec 13 15:29:30 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 2.4.0 + * Replace implicit optional typedefs + +------------------------------------------------------------------- Old: ---- git-pw-2.3.0.tar.gz New: ---- git-pw-2.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-git-pw.spec ++++++ --- /var/tmp/diff_new_pack.LD9fzT/_old 2022-12-14 14:11:29.707646587 +0100 +++ /var/tmp/diff_new_pack.LD9fzT/_new 2022-12-14 14:11:29.711646609 +0100 @@ -16,11 +16,10 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname git-pw %define skip_python2 1 Name: python-git-pw -Version: 2.3.0 +Version: 2.4.0 Release: 0 Summary: A tool for integrating Git with Patchwork License: MIT ++++++ git-pw-2.3.0.tar.gz -> git-pw-2.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/.github/workflows/ci.yaml new/git-pw-2.4.0/.github/workflows/ci.yaml --- old/git-pw-2.3.0/.github/workflows/ci.yaml 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/.github/workflows/ci.yaml 2022-12-06 14:16:58.000000000 +0100 @@ -11,11 +11,11 @@ runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: '3.11' - name: Install dependencies run: python -m pip install tox - name: Run tox @@ -25,12 +25,12 @@ runs-on: ubuntu-latest strategy: matrix: - python: [3.7, 3.8, 3.9, 3.10] + python: ['3.7', '3.8', '3.9', '3.10', '3.11'] steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: Install dependencies @@ -43,19 +43,19 @@ runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: '3.11' - name: Install dependencies run: python -m pip install tox - name: Build docs (via tox) run: tox -e docs - name: Archive build results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: html-docs-build path: docs/_build/html @@ -67,13 +67,13 @@ if: github.event_name == 'push' steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: '3.11' - name: Install dependencies run: python -m pip install build - name: Build a binary wheel and a source tarball diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/.pre-commit-config.yaml new/git-pw-2.4.0/.pre-commit-config.yaml --- old/git-pw-2.3.0/.pre-commit-config.yaml 2022-03-24 18:14:06.000000000 +0100 +++ new/git-pw-2.4.0/.pre-commit-config.yaml 2022-12-06 14:16:58.000000000 +0100 @@ -4,15 +4,18 @@ python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.4.0 + rev: v4.1.0 hooks: - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-yaml - id: end-of-file-fixer - - id: flake8 - id: trailing-whitespace + - repo: https://github.com/pycqa/flake8 + rev: 4.0.1 + hooks: + - id: flake8 - repo: https://github.com/psf/black - rev: 22.1.0 + rev: 22.3.0 hooks: - id: black diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/ChangeLog new/git-pw-2.4.0/ChangeLog --- old/git-pw-2.3.0/ChangeLog 2022-03-24 21:06:27.000000000 +0100 +++ new/git-pw-2.4.0/ChangeLog 2022-12-06 14:17:11.000000000 +0100 @@ -1,6 +1,24 @@ CHANGES ======= +2.4.0 +----- + +* Release 2.4.0 +* Replace implicit optional typedefs +* Add Python 3.11 support +* docs: Actually configure reno to use the main branch +* docs: Configure reno to use main branch +* setup: Set content type of README, avoid aliases +* CI: Remove unnecessary verbosity from GitHub actions +* CI: Update to latest versions of various actions +* api: Replace 'git.io' links +* Update pre-commit plugins +* Add 'applyPatchDeps' config option +* tox: Install black in 'pep8' environment +* CI: Fix YAML screwup +* trivial: Re-wrap some strings + 2.3.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/PKG-INFO new/git-pw-2.4.0/PKG-INFO --- old/git-pw-2.3.0/PKG-INFO 2022-03-24 21:06:29.959149100 +0100 +++ new/git-pw-2.4.0/PKG-INFO 2022-12-06 14:17:11.714744000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: git-pw -Version: 2.3.0 +Version: 2.4.0 Summary: Git-Patchwork integration tool Home-page: https://github.com/getpatchwork/git-pw Author: Stephen Finucane @@ -10,171 +10,17 @@ Project-URL: Source Code, https://github.com/getpatchwork/git-pw Project-URL: Documentation, https://git-pw.readthedocs.io Keywords: git patchwork -Platform: UNKNOWN -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: 3.9 -Classifier: Programming Language :: Python :: 3.10 -Classifier: Programming Language :: Python Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Information Technology +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Requires-Python: >=3.7 +Description-Content-Type: text/x-rst; charset=UTF-8 License-File: LICENSE -====== -git-pw -====== - -.. NOTE: If editing this, be sure to update the line numbers in 'doc/index' - -.. image:: https://badge.fury.io/py/git-pw.svg - :target: https://badge.fury.io/py/git-pw - :alt: PyPi Status - -.. image:: https://readthedocs.org/projects/git-pw/badge/?version=latest - :target: http://git-pw.readthedocs.io/en/latest/?badge=latest - :alt: Documentation Status - -.. image:: https://github.com/getpatchwork/git-pw/actions/workflows/ci.yaml/badge.svg - :target: https://github.com/getpatchwork/git-pw/actions/workflows/ci.yaml - :alt: Build Status - -*git-pw* is a tool for integrating Git with `Patchwork`__, the web-based patch -tracking system. - -.. important:: - - `git-pw` only supports Patchwork 2.0+ and REST API support must be enabled - on the server end. You can check for support by browsing ``/about`` for your - given instance. If this page returns a 404, you are using Patchwork < 2.0. - - The `pwclient`__ utility can be used to interact with older Patchwork - instances or instances with the REST API disabled. - -__ http://jk.ozlabs.org/projects/patchwork/ -__ https://patchwork.ozlabs.org/help/pwclient/ - -Installation ------------- - -The easiest way to install *git-pw* and its dependencies is using ``pip``. To -do so, run: - -.. code-block:: bash - - $ pip install git-pw - -You can also install *git-pw* manually. First, install the required -dependencies. On Fedora, run: - -.. code-block:: bash - - $ sudo dnf install python3-requests python3-click python3-pbr \ - python3-arrow python3-tabulate python3-yaml - -On Ubuntu, run: - -.. code-block:: bash - - $ sudo apt-get install python3-requests python3-click python3-pbr \ - python3-arrow python3-tabulate python3-yaml - -Once dependencies are installed, clone this repo and run ``setup.py``: - -.. code-block:: bash - - $ git clone https://github.com/getpatchwork/git-pw - $ cd git-pw - $ pip install --user . # or 'sudo python setup.py install' - -Getting Started ---------------- - -To begin, you'll need to configure Git settings appropriately. The following -settings are **required**: - -``pw.server`` - The URL for the Patchwork instance's API. This should include the API - version:: - - https://patchwork.ozlabs.org/api/1.2 - - You can discover the API version supported by your instance by comparing the - server version, found at ``/about``, with the API versions provided in the - `documentation`__. For example, if your server is running Patchwork version - 3.0.x, you should use API version 1.2. - - __ https://patchwork.readthedocs.io/en/stable-3.0/api/rest/#rest-api-versions - -``pw.project`` - The project name or list-id. This will appear in the URL when using the web - UI:: - - https://patchwork.ozlabs.org/project/{project_name}/list/ - -For read-write access, you also need authentication - you can use either API -tokens or a username/password combination: - -``pw.token`` - The API token for your Patchwork account. - -``pw.username`` - The username for your Patchwork account. - -``pw.password`` - The password for your Patchwork account. - -If only read-only access is desired, credentials can be omitted. - -The following settings are **optional** and may need to be set depending on -your Patchwork instance's configuration: - -``pw.states`` - The states that can be applied to a patch using the ``git pw patch update`` - command. Should be provided in slug form (``changes-requested`` instead of - ``Changes Requested``). Only required if your Patchwork instance uses - non-default states. - -You can set these settings using the ``git config`` command. This should be -done in the repo in which you intend to apply patches. For example, to -configure the Patchwork project, run: - -.. code-block:: bash - - $ git config pw.server 'https://patchwork.ozlabs.org/api/1.1/' - $ git config pw.project 'patchwork' - -Development ------------ - -If you're interested in contributing to *git-pw*, first clone the repo: - -.. code-block:: bash - - $ git clone https://github.com/getpatchwork/git-pw - $ cd git-pw - -Create a *virtualenv*, then install the package in `editable`__ mode: - -.. code-block:: bash - - $ virtualenv .venv - $ source .venv/bin/activate - $ pip install --editable . - -__ https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs - -Documentation -------------- - -Documentation is available on `Read the Docs`__ - -__ https://git-pw.readthedocs.org/ - - - +Git-Patchwork integration tool diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/api.py new/git-pw-2.4.0/git_pw/api.py --- old/git-pw-2.3.0/git_pw/api.py 2022-03-24 18:36:20.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/api.py 2022-12-06 14:16:58.000000000 +0100 @@ -138,7 +138,7 @@ def _get( url: str, - params: Filters = None, + params: ty.Optional[Filters] = None, stream: bool = False, ) -> requests.Response: """Make GET request and handle errors.""" @@ -236,8 +236,8 @@ def download( url: str, - params: Filters = None, - output: ty.Optional[str] = None, + params: ty.Optional[Filters] = None, + output: ty.Optional[ty.Optional[str]] = None, ) -> ty.Optional[str]: """Retrieve a specific API resource and save it to a file/stdout. @@ -293,7 +293,7 @@ return output_path -def index(resource_type: str, params: Filters = None) -> dict: +def index(resource_type: str, params: ty.Optional[Filters] = None) -> dict: """List API resources. GET /{resource}/ @@ -322,7 +322,7 @@ def detail( resource_type: str, resource_id: ty.Union[str, int], - params: Filters = None, + params: ty.Optional[Filters] = None, ) -> ty.Dict: """Retrieve a specific API resource. @@ -441,8 +441,8 @@ 'The `--%s` filter was specified multiple times. ' 'Filtering by multiple %ss is not supported with API ' 'version 1.0. If the server supports it, use version ' - '1.1 instead. Refer to https://git.io/vN3vX for more ' - 'information.' + '1.1 instead. Refer to https://tinyurl.com/2p8swbpn for ' + 'more information.' ) LOG.warning(msg, param.name, param.name) @@ -486,7 +486,7 @@ 'More than one match for found for `--%s=%s`. ' 'Filtering by multiple %ss is not supported with ' 'API version 1.0. If the server supports it, use ' - 'version 1.1 instead. Refer to https://git.io/vN3vX ' + 'version 1.1 instead. Refer to https://tinyurl.com/2p8swbpn ' 'for more information.' ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/bundle.py new/git-pw-2.4.0/git_pw/bundle.py --- old/git-pw-2.3.0/git_pw/bundle.py 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/bundle.py 2022-12-06 14:16:58.000000000 +0100 @@ -128,8 +128,10 @@ '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.', + 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) @@ -194,8 +196,10 @@ @click.option( '--public/--private', default=False, - help='Allow other users to view this bundle. If private, only ' - 'you will be able to see this bundle.', + help=( + 'Allow other users to view this bundle. If private, only ' + 'you will be able to see this bundle.' + ), ) @click.argument('name') @click.argument('patch_ids', type=click.INT, nargs=-1, required=True) @@ -246,8 +250,10 @@ @click.option( '--public/--private', default=None, - help='Allow other users to view this bundle. If private, only ' - 'you will be able to see this bundle.', + help=( + 'Allow other users to view this bundle. If private, only ' + 'you will be able to see this bundle.' + ), ) @click.argument('bundle_id') @api.validate_minimum_version( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/config.py new/git-pw-2.4.0/git_pw/config.py --- old/git-pw-2.3.0/git_pw/config.py 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/config.py 2022-12-06 14:16:58.000000000 +0100 @@ -10,6 +10,21 @@ LOG = logging.getLogger(__name__) +def parse_boolean(value: str) -> bool: + """Parse a boolean config value. + + Based on https://git-scm.com/docs/git-config#_values + """ + if value in ('yes', 'on', 'true', '1', ''): + return True + + if value in ('no', 'off', 'false', '0'): + return False + + LOG.error("'{}' is not a valid boolean value".format(value)) + return False + + class Config(object): def __init__(self) -> None: self._git_config: ty.Dict[str, str] = {} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/patch.py new/git-pw-2.4.0/git_pw/patch.py --- old/git-pw-2.3.0/git_pw/patch.py 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/patch.py 2022-12-06 14:16:58.000000000 +0100 @@ -40,6 +40,12 @@ ) +def _get_apply_patch_deps() -> bool: + if CONF.applyPatchDeps is not None: + return config.parse_boolean(CONF.applyPatchDeps) + return True + + @click.command( name='apply', context_settings=dict( @@ -55,9 +61,12 @@ ) @click.option( '--deps/--no-deps', - default=True, - help='When applying the patch, include dependencies if ' - 'available. Defaults to using the most recent series.', + default=_get_apply_patch_deps(), + help=( + "When applying the patch, include series dependencies if available. " + "Dependencies are retrieved from the most recent series by default. " + "Defaults to the value of 'git config pw applyPatchDeps' else 'true'." + ), ) @click.argument('args', nargs=-1, type=click.UNPROCESSED) def apply_cmd(patch_id, series, deps, args): @@ -210,15 +219,19 @@ '--state', metavar='STATE', type=click.Choice(_get_states()), - help="Set the patch state. Should be a slugified representation " - "of a state. The available states are instance dependant and " - "can be configured using 'git config pw.states'.", + help=( + "Set the patch state. Should be a slugified representation " + "of a state. The available states are instance dependant and " + "can be configured using 'git config pw.states'." + ), ) @click.option( '--delegate', metavar='DELEGATE', - help='Set the patch delegate. Should be unique user identifier: ' - 'either a username or a user\'s email address.', + help=( + "Set the patch delegate. Should be unique user identifier: " + "either a username or a user's email address." + ), ) @click.option( '--archived', @@ -277,25 +290,31 @@ 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.', + help=( + 'Show only patches matching these states. Should be ' + 'slugified representations of states. The available states ' + 'are instance dependant.' + ), ) @click.option( '--submitter', 'submitters', metavar='SUBMITTER', multiple=True, - help='Show only patches by these submitters. Should be an ' - 'email, name or ID.', + help=( + 'Show only patches by these submitters. Should be an ' + 'email, name or ID.' + ), ) @click.option( '--delegate', 'delegates', metavar='DELEGATE', multiple=True, - help='Show only patches with these delegates. Should be an ' - 'email or username.', + help=( + 'Show only patches with these delegates. Should be an ' + 'email or username.' + ), ) @click.option( '--hash', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/series.py new/git-pw-2.4.0/git_pw/series.py --- old/git-pw-2.3.0/git_pw/series.py 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/series.py 2022-12-06 14:16:58.000000000 +0100 @@ -156,8 +156,10 @@ 'submitters', metavar='SUBMITTER', multiple=True, - help='Show only series by these submitters. Should be an ' - 'email, name or ID.', + 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) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/shell.py new/git-pw-2.4.0/git_pw/shell.py --- old/git-pw-2.3.0/git_pw/shell.py 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/shell.py 2022-12-06 14:16:58.000000000 +0100 @@ -24,36 +24,45 @@ '--token', metavar='TOKEN', envvar='PW_TOKEN', - help="Authentication token. Defaults to the value of " - "'git config pw.token'.", + help=( + "Authentication token. " + "Defaults to the value of 'git config pw.token'." + ), ) @click.option( '--username', metavar='USERNAME', envvar='PW_USERNAME', - help="Authentication username. Defaults to the value of " - "'git config pw.username'.", + help=( + "Authentication username. " + "Defaults to the value of 'git config pw.username'." + ), ) @click.option( '--password', metavar='PASSWORD', envvar='PW_PASSWORD', - help="Authentication password. Defaults to the value of " - "'git config pw.password'.", + help=( + "Authentication password. " + "Defaults to the value of 'git config pw.password'." + ), ) @click.option( '--server', metavar='SERVER', envvar='PW_SERVER', - help="Patchwork server address/hostname. Defaults to the value " - "of 'git config pw.server'.", + help=( + "Patchwork server address/hostname. " + "Defaults to the value of 'git config pw.server'." + ), ) @click.option( '--project', metavar='PROJECT', envvar='PW_PROJECT', - help="Patchwork project. Defaults the value of " - "'git config pw.project'.", + help=( + "Patchwork project. Defaults to the value of 'git config pw.project'." + ), ) @click.version_option() def cli(debug, token, username, password, server, project): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw/utils.py new/git-pw-2.4.0/git_pw/utils.py --- old/git-pw-2.3.0/git_pw/utils.py 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/git_pw/utils.py 2022-12-06 14:16:58.000000000 +0100 @@ -189,8 +189,10 @@ '--page', metavar='PAGE', type=click.INT, - help='Page to retrieve items from. This is ' - 'influenced by the size of LIMIT.', + help=( + 'Page to retrieve items from. This is ' + 'influenced by the size of LIMIT.' + ), )(f) f = click.option( '--sort', @@ -206,8 +208,8 @@ def format_options( - original_function: ty.Callable = None, - headers: ty.Tuple[str, ...] = None, + original_function: ty.Optional[ty.Callable] = None, + headers: ty.Optional[ty.Tuple[str, ...]] = None, ) -> ty.Callable: """Shared output format options.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw.egg-info/PKG-INFO new/git-pw-2.4.0/git_pw.egg-info/PKG-INFO --- old/git-pw-2.3.0/git_pw.egg-info/PKG-INFO 2022-03-24 21:06:28.000000000 +0100 +++ new/git-pw-2.4.0/git_pw.egg-info/PKG-INFO 2022-12-06 14:17:11.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: git-pw -Version: 2.3.0 +Version: 2.4.0 Summary: Git-Patchwork integration tool Home-page: https://github.com/getpatchwork/git-pw Author: Stephen Finucane @@ -10,171 +10,17 @@ Project-URL: Source Code, https://github.com/getpatchwork/git-pw Project-URL: Documentation, https://git-pw.readthedocs.io Keywords: git patchwork -Platform: UNKNOWN -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: 3.9 -Classifier: Programming Language :: Python :: 3.10 -Classifier: Programming Language :: Python Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Information Technology +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Requires-Python: >=3.7 +Description-Content-Type: text/x-rst; charset=UTF-8 License-File: LICENSE -====== -git-pw -====== - -.. NOTE: If editing this, be sure to update the line numbers in 'doc/index' - -.. image:: https://badge.fury.io/py/git-pw.svg - :target: https://badge.fury.io/py/git-pw - :alt: PyPi Status - -.. image:: https://readthedocs.org/projects/git-pw/badge/?version=latest - :target: http://git-pw.readthedocs.io/en/latest/?badge=latest - :alt: Documentation Status - -.. image:: https://github.com/getpatchwork/git-pw/actions/workflows/ci.yaml/badge.svg - :target: https://github.com/getpatchwork/git-pw/actions/workflows/ci.yaml - :alt: Build Status - -*git-pw* is a tool for integrating Git with `Patchwork`__, the web-based patch -tracking system. - -.. important:: - - `git-pw` only supports Patchwork 2.0+ and REST API support must be enabled - on the server end. You can check for support by browsing ``/about`` for your - given instance. If this page returns a 404, you are using Patchwork < 2.0. - - The `pwclient`__ utility can be used to interact with older Patchwork - instances or instances with the REST API disabled. - -__ http://jk.ozlabs.org/projects/patchwork/ -__ https://patchwork.ozlabs.org/help/pwclient/ - -Installation ------------- - -The easiest way to install *git-pw* and its dependencies is using ``pip``. To -do so, run: - -.. code-block:: bash - - $ pip install git-pw - -You can also install *git-pw* manually. First, install the required -dependencies. On Fedora, run: - -.. code-block:: bash - - $ sudo dnf install python3-requests python3-click python3-pbr \ - python3-arrow python3-tabulate python3-yaml - -On Ubuntu, run: - -.. code-block:: bash - - $ sudo apt-get install python3-requests python3-click python3-pbr \ - python3-arrow python3-tabulate python3-yaml - -Once dependencies are installed, clone this repo and run ``setup.py``: - -.. code-block:: bash - - $ git clone https://github.com/getpatchwork/git-pw - $ cd git-pw - $ pip install --user . # or 'sudo python setup.py install' - -Getting Started ---------------- - -To begin, you'll need to configure Git settings appropriately. The following -settings are **required**: - -``pw.server`` - The URL for the Patchwork instance's API. This should include the API - version:: - - https://patchwork.ozlabs.org/api/1.2 - - You can discover the API version supported by your instance by comparing the - server version, found at ``/about``, with the API versions provided in the - `documentation`__. For example, if your server is running Patchwork version - 3.0.x, you should use API version 1.2. - - __ https://patchwork.readthedocs.io/en/stable-3.0/api/rest/#rest-api-versions - -``pw.project`` - The project name or list-id. This will appear in the URL when using the web - UI:: - - https://patchwork.ozlabs.org/project/{project_name}/list/ - -For read-write access, you also need authentication - you can use either API -tokens or a username/password combination: - -``pw.token`` - The API token for your Patchwork account. - -``pw.username`` - The username for your Patchwork account. - -``pw.password`` - The password for your Patchwork account. - -If only read-only access is desired, credentials can be omitted. - -The following settings are **optional** and may need to be set depending on -your Patchwork instance's configuration: - -``pw.states`` - The states that can be applied to a patch using the ``git pw patch update`` - command. Should be provided in slug form (``changes-requested`` instead of - ``Changes Requested``). Only required if your Patchwork instance uses - non-default states. - -You can set these settings using the ``git config`` command. This should be -done in the repo in which you intend to apply patches. For example, to -configure the Patchwork project, run: - -.. code-block:: bash - - $ git config pw.server 'https://patchwork.ozlabs.org/api/1.1/' - $ git config pw.project 'patchwork' - -Development ------------ - -If you're interested in contributing to *git-pw*, first clone the repo: - -.. code-block:: bash - - $ git clone https://github.com/getpatchwork/git-pw - $ cd git-pw - -Create a *virtualenv*, then install the package in `editable`__ mode: - -.. code-block:: bash - - $ virtualenv .venv - $ source .venv/bin/activate - $ pip install --editable . - -__ https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs - -Documentation -------------- - -Documentation is available on `Read the Docs`__ - -__ https://git-pw.readthedocs.org/ - - - +Git-Patchwork integration tool diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw.egg-info/SOURCES.txt new/git-pw-2.4.0/git_pw.egg-info/SOURCES.txt --- old/git-pw-2.3.0/git_pw.egg-info/SOURCES.txt 2022-03-24 21:06:29.000000000 +0100 +++ new/git-pw-2.4.0/git_pw.egg-info/SOURCES.txt 2022-12-06 14:17:11.000000000 +0100 @@ -57,6 +57,7 @@ man/git-pw-series-show.1 man/git-pw-series.1 man/git-pw.1 +releasenotes/config.yaml releasenotes/notes/add-yaml-format-support-5cd6b9028e6d2d8e.yaml releasenotes/notes/api-v1-1-5c804713ef435739.yaml releasenotes/notes/bundle-crud-47aadae6eb7a20ad.yaml @@ -80,8 +81,10 @@ releasenotes/notes/issue-49-865c4f1657b97fce.yaml releasenotes/notes/issue-55-bfcf05e02ad305b1.yaml releasenotes/notes/passthrough-git-am-arguments-23cd0b292304d648.yaml +releasenotes/notes/patch-apply-applyPatchDeps-option-9a8fed887af313d5.yaml releasenotes/notes/patch-states-b88240569f8474f1.yaml releasenotes/notes/python-2-deprecation-c87e311384eab29b.yaml +releasenotes/notes/python-311-support-de330cb1ff9da396.yaml releasenotes/notes/random-fixes-3da473a63c253f2d.yaml releasenotes/notes/remove-python-3-2-3-3-support-8987031bed2c0333.yaml releasenotes/notes/require-server-version-93ac0818c293b85e.yaml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/git_pw.egg-info/pbr.json new/git-pw-2.4.0/git_pw.egg-info/pbr.json --- old/git-pw-2.3.0/git_pw.egg-info/pbr.json 2022-03-24 21:06:27.000000000 +0100 +++ new/git-pw-2.4.0/git_pw.egg-info/pbr.json 2022-12-06 14:17:11.000000000 +0100 @@ -1 +1 @@ -{"git_version": "1b9db6b", "is_release": true} \ No newline at end of file +{"git_version": "999a802", "is_release": false} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-add.1 new/git-pw-2.4.0/man/git-pw-bundle-add.1 --- old/git-pw-2.3.0/man/git-pw-bundle-add.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-add.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE ADD" "1" "2022-03-24" "2.3.0" "git-pw bundle add Manual" +.TH "GIT-PW BUNDLE ADD" "1" "2022-12-06" "2.4.0" "git-pw bundle add Manual" .SH NAME git-pw\-bundle\-add \- Add one or more patches to a bundle. .SH SYNOPSIS @@ -7,9 +7,10 @@ .SH DESCRIPTION Add one or more patches to a bundle. .PP -Append the provided PATCH_IDS to bundle BUNDLE_ID. + Append the provided PATCH_IDS to bundle BUNDLE_ID. .PP -Requires API version 1.2 or greater. + Requires API version 1.2 or greater. + .SH OPTIONS .TP \fB\-f,\fP \-\-format [simple|table|csv|yaml] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-apply.1 new/git-pw-2.4.0/man/git-pw-bundle-apply.1 --- old/git-pw-2.3.0/man/git-pw-bundle-apply.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-apply.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE APPLY" "1" "2022-03-24" "2.3.0" "git-pw bundle apply Manual" +.TH "GIT-PW BUNDLE APPLY" "1" "2022-12-06" "2.4.0" "git-pw bundle apply Manual" .SH NAME git-pw\-bundle\-apply \- Apply bundle. .SH SYNOPSIS @@ -7,5 +7,5 @@ .SH DESCRIPTION Apply bundle. .PP -Apply a bundle locally using the 'git-am' command. Any additional ARGS -provided will be passed to the 'git-am' command. + Apply a bundle locally using the 'git-am' command. Any additional ARGS + provided will be passed to the 'git-am' command. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-create.1 new/git-pw-2.4.0/man/git-pw-bundle-create.1 --- old/git-pw-2.3.0/man/git-pw-bundle-create.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-create.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE CREATE" "1" "2022-03-24" "2.3.0" "git-pw bundle create Manual" +.TH "GIT-PW BUNDLE CREATE" "1" "2022-12-06" "2.4.0" "git-pw bundle create Manual" .SH NAME git-pw\-bundle\-create \- Create a bundle. .SH SYNOPSIS @@ -7,9 +7,10 @@ .SH DESCRIPTION Create a bundle. .PP -Create a bundle with the given NAME and patches from PATCH_ID. + Create a bundle with the given NAME and patches from PATCH_ID. .PP -Requires API version 1.2 or greater. + Requires API version 1.2 or greater. + .SH OPTIONS .TP \fB\-\-public\fP / \-\-private diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-delete.1 new/git-pw-2.4.0/man/git-pw-bundle-delete.1 --- old/git-pw-2.3.0/man/git-pw-bundle-delete.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-delete.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE DELETE" "1" "2022-03-24" "2.3.0" "git-pw bundle delete Manual" +.TH "GIT-PW BUNDLE DELETE" "1" "2022-12-06" "2.4.0" "git-pw bundle delete Manual" .SH NAME git-pw\-bundle\-delete \- Delete a bundle. .SH SYNOPSIS @@ -7,9 +7,10 @@ .SH DESCRIPTION Delete a bundle. .PP -Delete bundle BUNDLE_ID. + Delete bundle BUNDLE_ID. .PP -Requires API version 1.2 or greater. + Requires API version 1.2 or greater. + .SH OPTIONS .TP \fB\-f,\fP \-\-format [simple|table|csv|yaml] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-download.1 new/git-pw-2.4.0/man/git-pw-bundle-download.1 --- old/git-pw-2.3.0/man/git-pw-bundle-download.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-download.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE DOWNLOAD" "1" "2022-03-24" "2.3.0" "git-pw bundle download Manual" +.TH "GIT-PW BUNDLE DOWNLOAD" "1" "2022-12-06" "2.4.0" "git-pw bundle download Manual" .SH NAME git-pw\-bundle\-download \- Download bundle in mbox format. .SH SYNOPSIS @@ -7,6 +7,6 @@ .SH DESCRIPTION Download bundle in mbox format. .PP -Download a bundle but do not apply it. ``OUTPUT`` is optional and can be an -output full file path or a directory or ``-`` to output to ``stdout``. If -``OUTPUT`` is not provided, the output path will be automatically chosen. + Download a bundle but do not apply it. ``OUTPUT`` is optional and can be an + output full file path or a directory or ``-`` to output to ``stdout``. If + ``OUTPUT`` is not provided, the output path will be automatically chosen. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-list.1 new/git-pw-2.4.0/man/git-pw-bundle-list.1 --- old/git-pw-2.3.0/man/git-pw-bundle-list.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-list.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE LIST" "1" "2022-03-24" "2.3.0" "git-pw bundle list Manual" +.TH "GIT-PW BUNDLE LIST" "1" "2022-12-06" "2.4.0" "git-pw bundle list Manual" .SH NAME git-pw\-bundle\-list \- List bundles. .SH SYNOPSIS @@ -7,7 +7,8 @@ .SH DESCRIPTION List bundles. .PP -List bundles on the Patchwork instance. + List bundles on the Patchwork instance. + .SH OPTIONS .TP \fB\-\-owner\fP OWNER diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-remove.1 new/git-pw-2.4.0/man/git-pw-bundle-remove.1 --- old/git-pw-2.3.0/man/git-pw-bundle-remove.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-remove.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE REMOVE" "1" "2022-03-24" "2.3.0" "git-pw bundle remove Manual" +.TH "GIT-PW BUNDLE REMOVE" "1" "2022-12-06" "2.4.0" "git-pw bundle remove Manual" .SH NAME git-pw\-bundle\-remove \- Remove one or more patches from a bundle. .SH SYNOPSIS @@ -7,9 +7,10 @@ .SH DESCRIPTION Remove one or more patches from a bundle. .PP -Remove the provided PATCH_IDS to bundle BUNDLE_ID. + Remove the provided PATCH_IDS to bundle BUNDLE_ID. .PP -Requires API version 1.2 or greater. + Requires API version 1.2 or greater. + .SH OPTIONS .TP \fB\-f,\fP \-\-format [simple|table|csv|yaml] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-show.1 new/git-pw-2.4.0/man/git-pw-bundle-show.1 --- old/git-pw-2.3.0/man/git-pw-bundle-show.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-show.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE SHOW" "1" "2022-03-24" "2.3.0" "git-pw bundle show Manual" +.TH "GIT-PW BUNDLE SHOW" "1" "2022-12-06" "2.4.0" "git-pw bundle show Manual" .SH NAME git-pw\-bundle\-show \- Show information about bundle. .SH SYNOPSIS @@ -7,7 +7,8 @@ .SH DESCRIPTION Show information about bundle. .PP -Retrieve Patchwork metadata for a bundle. + Retrieve Patchwork metadata for a bundle. + .SH OPTIONS .TP \fB\-f,\fP \-\-format [simple|table|csv|yaml] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle-update.1 new/git-pw-2.4.0/man/git-pw-bundle-update.1 --- old/git-pw-2.3.0/man/git-pw-bundle-update.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle-update.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE UPDATE" "1" "2022-03-24" "2.3.0" "git-pw bundle update Manual" +.TH "GIT-PW BUNDLE UPDATE" "1" "2022-12-06" "2.4.0" "git-pw bundle update Manual" .SH NAME git-pw\-bundle\-update \- Update a bundle. .SH SYNOPSIS @@ -7,11 +7,12 @@ .SH DESCRIPTION Update a bundle. .PP -Update bundle BUNDLE_ID. If PATCH_IDs are specified, this will overwrite -all patches in the bundle. Use 'bundle add' and 'bundle remove' to add or -remove patches. + Update bundle BUNDLE_ID. If PATCH_IDs are specified, this will overwrite + all patches in the bundle. Use 'bundle add' and 'bundle remove' to add or + remove patches. .PP -Requires API version 1.2 or greater. + Requires API version 1.2 or greater. + .SH OPTIONS .TP \fB\-\-name\fP TEXT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-bundle.1 new/git-pw-2.4.0/man/git-pw-bundle.1 --- old/git-pw-2.3.0/man/git-pw-bundle.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-bundle.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW BUNDLE" "1" "2022-03-24" "2.3.0" "git-pw bundle Manual" +.TH "GIT-PW BUNDLE" "1" "2022-12-06" "2.4.0" "git-pw bundle Manual" .SH NAME git-pw\-bundle \- Interact with bundles. .SH SYNOPSIS @@ -7,13 +7,14 @@ .SH DESCRIPTION Interact with bundles. .PP -Bundles are custom, user-defined groups of patches. Bundles can be -used to keep patch lists, preserving order, for future inclusion in -a tree. There's no restriction of number of patches and they don't -even need to be in the same project. A single patch also can be -part of multiple bundles at the same time. An example of Bundle -usage would be keeping track of the Patches that are ready for -merge to the tree. + Bundles are custom, user-defined groups of patches. Bundles can be + used to keep patch lists, preserving order, for future inclusion in + a tree. There's no restriction of number of patches and they don't + even need to be in the same project. A single patch also can be + part of multiple bundles at the same time. An example of Bundle + usage would be keeping track of the Patches that are ready for + merge to the tree. + .SH COMMANDS .PP \fBapply\fP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-patch-apply.1 new/git-pw-2.4.0/man/git-pw-patch-apply.1 --- old/git-pw-2.3.0/man/git-pw-patch-apply.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-patch-apply.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW PATCH APPLY" "1" "2022-03-24" "2.3.0" "git-pw patch apply Manual" +.TH "GIT-PW PATCH APPLY" "1" "2022-12-06" "2.4.0" "git-pw patch apply Manual" .SH NAME git-pw\-patch\-apply \- Apply patch. .SH SYNOPSIS @@ -7,12 +7,13 @@ .SH DESCRIPTION Apply patch. .PP -Apply a patch locally using the 'git-am' command. Any additional ARGS -provided will be passed to the 'git-am' command. + Apply a patch locally using the 'git-am' command. Any additional ARGS + provided will be passed to the 'git-am' command. + .SH OPTIONS .TP \fB\-\-series\fP SERIES Series to include dependencies from. Defaults to latest. .TP \fB\-\-deps\fP / \-\-no\-deps -When applying the patch, include dependencies if available. Defaults to using the most recent series. +When applying the patch, include series dependencies if available. Dependencies are retrieved from the most recent series by default. Defaults to the value of 'git config pw applyPatchDeps' else 'true'. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-patch-download.1 new/git-pw-2.4.0/man/git-pw-patch-download.1 --- old/git-pw-2.3.0/man/git-pw-patch-download.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-patch-download.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW PATCH DOWNLOAD" "1" "2022-03-24" "2.3.0" "git-pw patch download Manual" +.TH "GIT-PW PATCH DOWNLOAD" "1" "2022-12-06" "2.4.0" "git-pw patch download Manual" .SH NAME git-pw\-patch\-download \- Download patch in diff or mbox format. .SH SYNOPSIS @@ -7,9 +7,10 @@ .SH DESCRIPTION Download patch in diff or mbox format. .PP -Download a patch but do not apply it. ``OUTPUT`` is optional and can be an -output file path or a directory or ``-`` to output to ``stdout``. If -``OUTPUT`` is not provided, the output path will be automatically chosen. + Download a patch but do not apply it. ``OUTPUT`` is optional and can be an + output file path or a directory or ``-`` to output to ``stdout``. If + ``OUTPUT`` is not provided, the output path will be automatically chosen. + .SH OPTIONS .TP \fB\-\-diff\fP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-patch-list.1 new/git-pw-2.4.0/man/git-pw-patch-list.1 --- old/git-pw-2.3.0/man/git-pw-patch-list.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-patch-list.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW PATCH LIST" "1" "2022-03-24" "2.3.0" "git-pw patch list Manual" +.TH "GIT-PW PATCH LIST" "1" "2022-12-06" "2.4.0" "git-pw patch list Manual" .SH NAME git-pw\-patch\-list \- List patches. .SH SYNOPSIS @@ -7,7 +7,8 @@ .SH DESCRIPTION List patches. .PP -List patches on the Patchwork instance. + List patches on the Patchwork instance. + .SH OPTIONS .TP \fB\-\-state\fP STATE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-patch-show.1 new/git-pw-2.4.0/man/git-pw-patch-show.1 --- old/git-pw-2.3.0/man/git-pw-patch-show.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-patch-show.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW PATCH SHOW" "1" "2022-03-24" "2.3.0" "git-pw patch show Manual" +.TH "GIT-PW PATCH SHOW" "1" "2022-12-06" "2.4.0" "git-pw patch show Manual" .SH NAME git-pw\-patch\-show \- Show information about patch. .SH SYNOPSIS @@ -7,7 +7,8 @@ .SH DESCRIPTION Show information about patch. .PP -Retrieve Patchwork metadata for a patch. + Retrieve Patchwork metadata for a patch. + .SH OPTIONS .TP \fB\-f,\fP \-\-format [simple|table|csv|yaml] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-patch-update.1 new/git-pw-2.4.0/man/git-pw-patch-update.1 --- old/git-pw-2.3.0/man/git-pw-patch-update.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-patch-update.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW PATCH UPDATE" "1" "2022-03-24" "2.3.0" "git-pw patch update Manual" +.TH "GIT-PW PATCH UPDATE" "1" "2022-12-06" "2.4.0" "git-pw patch update Manual" .SH NAME git-pw\-patch\-update \- Update one or more patches. .SH SYNOPSIS @@ -7,8 +7,9 @@ .SH DESCRIPTION Update one or more patches. .PP -Updates one or more Patches on the Patchwork instance. Some operations may -require admin or maintainer permissions. + Updates one or more Patches on the Patchwork instance. Some operations may + require admin or maintainer permissions. + .SH OPTIONS .TP \fB\-\-commit\-ref\fP COMMIT_REF diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-patch.1 new/git-pw-2.4.0/man/git-pw-patch.1 --- old/git-pw-2.3.0/man/git-pw-patch.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-patch.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW PATCH" "1" "2022-03-24" "2.3.0" "git-pw patch Manual" +.TH "GIT-PW PATCH" "1" "2022-12-06" "2.4.0" "git-pw patch Manual" .SH NAME git-pw\-patch \- Interact with patches. .SH SYNOPSIS @@ -7,12 +7,13 @@ .SH DESCRIPTION Interact with patches. .PP -Patches are the central object in Patchwork structure. A patch -contains both a diff and some metadata, such as the name, the -description, the author, the version of the patch etc. Patchwork -stores not only the patch itself but also various metadata -associated with the email that the patch was parsed from, such as -the message headers or the date the message itself was received. + Patches are the central object in Patchwork structure. A patch + contains both a diff and some metadata, such as the name, the + description, the author, the version of the patch etc. Patchwork + stores not only the patch itself but also various metadata + associated with the email that the patch was parsed from, such as + the message headers or the date the message itself was received. + .SH COMMANDS .PP \fBapply\fP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-series-apply.1 new/git-pw-2.4.0/man/git-pw-series-apply.1 --- old/git-pw-2.3.0/man/git-pw-series-apply.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-series-apply.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW SERIES APPLY" "1" "2022-03-24" "2.3.0" "git-pw series apply Manual" +.TH "GIT-PW SERIES APPLY" "1" "2022-12-06" "2.4.0" "git-pw series apply Manual" .SH NAME git-pw\-series\-apply \- Apply series. .SH SYNOPSIS @@ -7,5 +7,5 @@ .SH DESCRIPTION Apply series. .PP -Apply a series locally using the 'git-am' command. Any additional ARGS -provided will be passed to the 'git-am' command. + Apply a series locally using the 'git-am' command. Any additional ARGS + provided will be passed to the 'git-am' command. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-series-download.1 new/git-pw-2.4.0/man/git-pw-series-download.1 --- old/git-pw-2.3.0/man/git-pw-series-download.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-series-download.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW SERIES DOWNLOAD" "1" "2022-03-24" "2.3.0" "git-pw series download Manual" +.TH "GIT-PW SERIES DOWNLOAD" "1" "2022-12-06" "2.4.0" "git-pw series download Manual" .SH NAME git-pw\-series\-download \- Download series in mbox format. .SH SYNOPSIS @@ -7,9 +7,10 @@ .SH DESCRIPTION Download series in mbox format. .PP -Download a series but do not apply it. ``OUTPUT`` is optional and can be an -output path or ``-`` to output to ``stdout``. If ``OUTPUT`` is not -provided, the output path will be automatically chosen. + Download a series but do not apply it. ``OUTPUT`` is optional and can be an + output path or ``-`` to output to ``stdout``. If ``OUTPUT`` is not + provided, the output path will be automatically chosen. + .SH OPTIONS .TP \fB\-\-separate\fP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-series-list.1 new/git-pw-2.4.0/man/git-pw-series-list.1 --- old/git-pw-2.3.0/man/git-pw-series-list.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-series-list.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW SERIES LIST" "1" "2022-03-24" "2.3.0" "git-pw series list Manual" +.TH "GIT-PW SERIES LIST" "1" "2022-12-06" "2.4.0" "git-pw series list Manual" .SH NAME git-pw\-series\-list \- List series. .SH SYNOPSIS @@ -7,7 +7,8 @@ .SH DESCRIPTION List series. .PP -List series on the Patchwork instance. + List series on the Patchwork instance. + .SH OPTIONS .TP \fB\-\-submitter\fP SUBMITTER diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-series-show.1 new/git-pw-2.4.0/man/git-pw-series-show.1 --- old/git-pw-2.3.0/man/git-pw-series-show.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-series-show.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW SERIES SHOW" "1" "2022-03-24" "2.3.0" "git-pw series show Manual" +.TH "GIT-PW SERIES SHOW" "1" "2022-12-06" "2.4.0" "git-pw series show Manual" .SH NAME git-pw\-series\-show \- Show information about series. .SH SYNOPSIS @@ -7,7 +7,8 @@ .SH DESCRIPTION Show information about series. .PP -Retrieve Patchwork metadata for a series. + Retrieve Patchwork metadata for a series. + .SH OPTIONS .TP \fB\-f,\fP \-\-format [simple|table|csv|yaml] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw-series.1 new/git-pw-2.4.0/man/git-pw-series.1 --- old/git-pw-2.3.0/man/git-pw-series.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw-series.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW SERIES" "1" "2022-03-24" "2.3.0" "git-pw series Manual" +.TH "GIT-PW SERIES" "1" "2022-12-06" "2.4.0" "git-pw series Manual" .SH NAME git-pw\-series \- Interact with series. .SH SYNOPSIS @@ -7,11 +7,12 @@ .SH DESCRIPTION Interact with series. .PP -Series are groups of patches, along with an optional cover letter. -Series are mostly dumb containers, though they also contain some -metadata themselves, such as a version (which is inherited by the -patches and cover letter) and a count of the number of patches -found in the series. + Series are groups of patches, along with an optional cover letter. + Series are mostly dumb containers, though they also contain some + metadata themselves, such as a version (which is inherited by the + patches and cover letter) and a count of the number of patches + found in the series. + .SH COMMANDS .PP \fBapply\fP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/man/git-pw.1 new/git-pw-2.4.0/man/git-pw.1 --- old/git-pw-2.3.0/man/git-pw.1 2022-03-24 18:40:00.000000000 +0100 +++ new/git-pw-2.4.0/man/git-pw.1 2022-12-06 14:16:58.000000000 +0100 @@ -1,4 +1,4 @@ -.TH "GIT-PW" "1" "2022-03-24" "2.3.0" "git-pw Manual" +.TH "GIT-PW" "1" "2022-12-06" "2.4.0" "git-pw Manual" .SH NAME git-pw \- git-pw is a tool for integrating Git with... .SH SYNOPSIS @@ -7,26 +7,27 @@ .SH DESCRIPTION git-pw is a tool for integrating Git with Patchwork. .PP -git-pw can interact with individual patches, complete patch series, and -customized bundles. The three major subcommands are *patch*, *bundle*, -and *series*. + git-pw can interact with individual patches, complete patch series, and + customized bundles. The three major subcommands are *patch*, *bundle*, + and *series*. .PP -The git-pw utility is a wrapper which makes REST calls to the Patchwork -service. To use git-pw, you must set up your environment by configuring -your Patchwork server URL and either an API token or a username and -password. To configure the server URL, run:: + The git-pw utility is a wrapper which makes REST calls to the Patchwork + service. To use git-pw, you must set up your environment by configuring + your Patchwork server URL and either an API token or a username and + password. To configure the server URL, run:: .PP - git config pw.server http://pw.server.com/path/to/patchwork + git config pw.server http://pw.server.com/path/to/patchwork .PP -To configure the token, run:: + To configure the token, run:: .PP - git config pw.token token + git config pw.token token .PP -Alternatively, you can pass these options via command line parameters or -environment variables. + Alternatively, you can pass these options via command line parameters or + environment variables. .PP -For more information on any of the commands, simply pass ``--help`` to the -appropriate command. + For more information on any of the commands, simply pass ``--help`` to the + appropriate command. + .SH OPTIONS .TP \fB\-\-debug\fP @@ -45,7 +46,7 @@ Patchwork server address/hostname. Defaults to the value of 'git config pw.server'. .TP \fB\-\-project\fP PROJECT -Patchwork project. Defaults the value of 'git config pw.project'. +Patchwork project. Defaults to the value of 'git config pw.project'. .TP \fB\-\-version\fP Show the version and exit. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/releasenotes/config.yaml new/git-pw-2.4.0/releasenotes/config.yaml --- old/git-pw-2.3.0/releasenotes/config.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/git-pw-2.4.0/releasenotes/config.yaml 2022-12-06 14:16:58.000000000 +0100 @@ -0,0 +1,2 @@ +--- +default_branch: main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/releasenotes/notes/patch-apply-applyPatchDeps-option-9a8fed887af313d5.yaml new/git-pw-2.4.0/releasenotes/notes/patch-apply-applyPatchDeps-option-9a8fed887af313d5.yaml --- old/git-pw-2.3.0/releasenotes/notes/patch-apply-applyPatchDeps-option-9a8fed887af313d5.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/git-pw-2.4.0/releasenotes/notes/patch-apply-applyPatchDeps-option-9a8fed887af313d5.yaml 2022-12-06 14:16:58.000000000 +0100 @@ -0,0 +1,6 @@ +--- +features: + - | + The ``patch apply`` command will now respect the ``pw.applyPatchDeps`` + git config option. This can be a boolean value (one of: ``yes``, ``on``, + ``true``, ``1``, ``no``, ``off``, ``false``, ``0``). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/releasenotes/notes/python-311-support-de330cb1ff9da396.yaml new/git-pw-2.4.0/releasenotes/notes/python-311-support-de330cb1ff9da396.yaml --- old/git-pw-2.3.0/releasenotes/notes/python-311-support-de330cb1ff9da396.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/git-pw-2.4.0/releasenotes/notes/python-311-support-de330cb1ff9da396.yaml 2022-12-06 14:16:58.000000000 +0100 @@ -0,0 +1,4 @@ +--- +features: + - | + Python 3.11 is now officially supported and tested. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/setup.cfg new/git-pw-2.4.0/setup.cfg --- old/git-pw-2.3.0/setup.cfg 2022-03-24 21:06:29.959149100 +0100 +++ new/git-pw-2.4.0/setup.cfg 2022-12-06 14:17:11.714744000 +0100 @@ -1,20 +1,18 @@ [metadata] name = git-pw -summary = Git-Patchwork integration tool -description_file = README.rst +description = Git-Patchwork integration tool +long_description = file: README.rst +long_description_content_type = text/x-rst; charset=UTF-8 license = MIT License license_file = LICENSE classifiers = - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python Development Status :: 5 - Production/Stable Environment :: Console Intended Audience :: Developers Intended Audience :: Information Technology + Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python License :: OSI Approved :: MIT License Operating System :: OS Independent keywords = git patchwork diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/git-pw-2.3.0/tox.ini new/git-pw-2.4.0/tox.ini --- old/git-pw-2.3.0/tox.ini 2022-03-24 21:05:59.000000000 +0100 +++ new/git-pw-2.4.0/tox.ini 2022-12-06 14:16:58.000000000 +0100 @@ -1,6 +1,6 @@ [tox] minversion = 3.1 -envlist = pep8,mypy,clean,py{37,38,39,310},report +envlist = pep8,mypy,clean,py{37,38,39,310,311},report ignore_basepython_conflict = true [testenv] @@ -14,6 +14,7 @@ skip_install = true deps = flake8 + black commands = black --check --quiet git_pw tests flake8 {posargs:git_pw tests docs}