17
0
Files
python-igwn-auth-utils/python-igwn-auth-utils.spec
Benjamin Greiner 78e60eead0 Accepting request 1146556 from home:bnavigator:branches:science
- Update to 1.1.0
  * Support multiple scopes in is_valid_token [!70]
- Release 1.0.2
  * Ensure that token=False works on all requests [!67]
- Release 1.0.1
  * Fix bug in disabling token auth via function call [!65]
- Release 1.0.0
  ## Major changes
  * Refactor requests auth handling to enable per-request token
    discovery [!59]
  ## Other changes:
  * Allow disabling automatic raise_for_status for Sessions [!52]
  * Fix keyword argument passing in requests wrappers [!56]
  * Add issuer keyword to is_valid_token [!57]
  * Allow deserialising token in is_valid_token [!58]
  * Add support for Python 3.11 [!61]
  * Workaround bug in requests 2.14 [!62]
- Add patches for python 3.12
  * igwn-auth-utils-mr73-utznow.patch
    https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/73
  * igwn-auth-utils-mr76-mock_called_once.patch
    https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/76

OBS-URL: https://build.opensuse.org/request/show/1146556
OBS-URL: https://build.opensuse.org/package/show/science/python-igwn-auth-utils?expand=0&rev=8
2024-02-14 11:24:54 +00:00

83 lines
3.2 KiB
RPMSpec

#
# spec file for package python-igwn-auth-utils
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global srcname igwn-auth-utils
Name: python-igwn-auth-utils
Version: 1.1.0
Release: 0
Summary: Auth Utils for International Gravitational-Wave Observatory Network (IGWN)
License: BSD-3-Clause
URL: https://git.ligo.org/computing/igwn-auth-utils
Source: https://files.pythonhosted.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM igwn-auth-utils-mr73-utznow.patch https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/73
Patch0: https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/73.patch#/igwn-auth-utils-mr73-utznow.patch
# PATCH-FIX-UPSTREAM igwn-auth-utils-mr76-mock_called_once.patch https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/76
Patch1: https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/76.patch#/igwn-auth-utils-mr76-mock_called_once.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography >= 2.3
Requires: python-requests >= 2.14
Requires: python-safe-netrc >= 1.0.0
Requires: python-scitokens >= 1.7.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module cryptography >= 2.3}
BuildRequires: %{python_module pytest >= 3.9.1}
BuildRequires: %{python_module requests >= 2.14}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module safe-netrc >= 1.0.0}
BuildRequires: %{python_module scitokens >= 1.7.0}
# /SECTION
# The [requests] extra was a subpackage but is included into the main requirements since 0.3
Provides: python-igwn-auth-utils-requests = %{version}-%{release}
Obsoletes: python-igwn-auth-utils-requests <= 0.3
%python_subpackages
%description
Python library functions to simplify using International Gravitational-Wave
Observatory Network (IGWN) authorisation credentials.
This project is primarily aimed at discovering X.509 credentials and
SciTokens for use with HTTP(S) requests to IGWN-operated services.
%prep
%autosetup -p1 -n %{srcname}-%{version}
sed -i 's/--color=yes//' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/igwn_auth_utils
%{python_sitelib}/igwn_auth_utils-%{version}.dist-info
%changelog