Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jaraco/keyring
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v25.0.0
Choose a base ref
...
head repository: jaraco/keyring
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v25.0.1
Choose a head ref
  • 11 commits
  • 8 files changed
  • 1 contributor

Commits on Mar 22, 2024

  1. Copy the full SHA
    c9a7f97 View commit details

Commits on Mar 23, 2024

  1. Copy the full SHA
    d72c6a0 View commit details
  2. Merge https://github.com/jaraco/skeleton

    jaraco committed Mar 23, 2024
    Copy the full SHA
    a62ff82 View commit details

Commits on Mar 30, 2024

  1. Move Python 3.11 out of the test matrix.

    Probably should have done this when moving continue-on-error to Python 3.13.
    jaraco committed Mar 30, 2024
    Copy the full SHA
    3fc7a93 View commit details

Commits on Mar 31, 2024

  1. Copy the full SHA
    6ff02e0 View commit details

Commits on Apr 2, 2024

  1. Merge https://github.com/jaraco/skeleton

    jaraco committed Apr 2, 2024
    Copy the full SHA
    1899770 View commit details
  2. Copy the full SHA
    33ad6a5 View commit details
  3. Inject the current directory to sys.path in multiprocessing tests. Cl…

    jaraco committed Apr 2, 2024
    Copy the full SHA
    07fab63 View commit details
  4. Move Python 3.8 compatibility logic into the compat package.

    jaraco committed Apr 2, 2024
    Copy the full SHA
    04bdbd3 View commit details
  5. When completion is unavailable, exit with non-zero status and emit me…

    …ssage to stderr.
    
    Closes #671
    jaraco committed Apr 2, 2024
    Copy the full SHA
    a2aa173 View commit details
  6. Finalize

    jaraco committed Apr 2, 2024
    Copy the full SHA
    2ecc667 View commit details
Showing with 47 additions and 17 deletions.
  1. +7 −3 .github/workflows/main.yml
  2. +4 −0 .readthedocs.yaml
  3. +9 −0 NEWS.rst
  4. +9 −0 keyring/compat/py38.py
  5. +3 −6 keyring/completion.py
  6. +4 −1 pytest.ini
  7. +1 −1 setup.cfg
  8. +10 −6 tests/test_multiprocess.py
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,11 @@ on:
merge_group:
push:
branches-ignore:
# disabled for jaraco/skeleton#103
# - gh-readonly-queue/** # Temporary merge queue-related GH-made branches
# temporary GH branches relating to merge queues (jaraco/skeleton#93)
- gh-readonly-queue/**
tags:
# required if branches-ignore is supplied (jaraco/skeleton#103)
- '**'
pull_request:

permissions:
@@ -31,7 +34,6 @@ jobs:
matrix:
python:
- "3.8"
- "3.11"
- "3.12"
platform:
- ubuntu-latest
@@ -42,6 +44,8 @@ jobs:
platform: ubuntu-latest
- python: "3.10"
platform: ubuntu-latest
- python: "3.11"
platform: ubuntu-latest
- python: pypy3.10
platform: ubuntu-latest
runs-on: ${{ matrix.platform }}
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -10,3 +10,7 @@ build:
os: ubuntu-lts-latest
tools:
python: latest
# post-checkout job to ensure the clone isn't shallow jaraco/skeleton#114
jobs:
post_checkout:
- git fetch --unshallow || true
9 changes: 9 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
v25.0.1
=======

Bugfixes
--------

- When completion is unavailable, exit with non-zero status and emit message to stderr. (#671)


v25.0.0
=======

9 changes: 9 additions & 0 deletions keyring/compat/py38.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys

__all__ = ['files']


if sys.version_info < (3, 9):
from importlib_resources import files
else:
from importlib.resources import files
9 changes: 3 additions & 6 deletions keyring/completion.py
Original file line number Diff line number Diff line change
@@ -6,16 +6,13 @@
except ImportError:
pass

if sys.version_info < (3, 9):
from importlib_resources import files
else:
from importlib.resources import files
from .compat.py38 import files


class _MissingCompletionAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string):
print("Install keyring[completion] for completion support.")
parser.exit(0)
print("Install keyring[completion] for completion support.", file=sys.stderr)
parser.exit(1)


def add_completion_notice(parser):
5 changes: 4 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[pytest]
norecursedirs=dist build .tox .eggs
addopts=--doctest-modules
addopts=
--doctest-modules
--import-mode importlib
consider_namespace_packages=true
filterwarnings=
## upstream

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ install_requires =
[options.extras_require]
testing =
# upstream
pytest >= 6
pytest >= 6, != 8.1.1
pytest-checkdocs >= 2.4
pytest-cov
pytest-mypy
16 changes: 10 additions & 6 deletions tests/test_multiprocess.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import multiprocessing
import platform
import sys

import pytest

import keyring


@pytest.fixture(autouse=True)
def workaround_pytest_12178(monkeypatch):
"""
Ensure the current directory is on sys.path so that `tests` is importable.
Workaround for #673.
"""
monkeypatch.syspath_prepend('.')


def subprocess_get():
keyring.get_password('test_app', 'test_user')

@@ -16,11 +25,6 @@ def subprocess_get():
platform.system() == 'Linux',
reason="#410: keyring discovery fails intermittently",
),
pytest.mark.skipif(
# always skip as it crashes the interpreter
sys.version_info < (3, 8) and platform.system() == 'Darwin',
reason="#281, #494: Prior to 3.8, multiprocess invocation fails",
),
]