Skip to content

Commit bf3311b

Browse files
authored
Fix python-oauthlib ptest (#13637)
1 parent af89812 commit bf3311b

5 files changed

Lines changed: 34 additions & 29 deletions

File tree

SPECS-EXTENDED/python-blinker/python-blinker.signatures.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"Signatures": {
3+
"blinker-1.9.0.tar.gz": "b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf"
4+
}
5+
}
6+

SPECS-EXTENDED/python-blinker/python-blinker.spec renamed to SPECS/python-blinker/python-blinker.spec

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
Vendor: Microsoft Corporation
2-
Distribution: Azure Linux
31
%global mod_name blinker
4-
5-
Name: python-blinker
6-
Version: 1.7.0
7-
Release: 4%{?dist}
82
Summary: Fast, simple object-to-object and broadcast signaling
9-
3+
Name: python-blinker
4+
Version: 1.9.0
5+
Release: 1%{?dist}
6+
Vendor: Microsoft Corporation
7+
Distribution: Azure Linux
108
License: MIT
119
URL: https://github.com/pallets-eco/blinker
1210
Source0: %{url}/releases/download/%{version}/%{mod_name}-%{version}.tar.gz
@@ -16,14 +14,6 @@ BuildRequires: python3-devel
1614
BuildRequires: python3-pip
1715
BuildRequires: python3-flit-core
1816

19-
# Tests
20-
BuildRequires: python3dist(pytest)
21-
BuildRequires: python3-pytest-asyncio
22-
BuildRequires: python-tox
23-
BuildRequires: python3dist(tox-current-env)
24-
BuildRequires: python-filelock
25-
BuildRequires: python-toml
26-
2717
%global _description\
2818
Blinker provides a fast dispatching system that allows any number\
2919
of interested parties to subscribe to events, or "signals".
@@ -40,10 +30,8 @@ of interested parties to subscribe to events, or "signals".
4030

4131
%prep
4232
%autosetup -n %{mod_name}-%{version}
43-
44-
%generate_buildrequires
4533
# requirements in tests.txt are way too tight
46-
%pyproject_buildrequires requirements/tests.in
34+
mv requirements/tests.in requirements/tests.txt
4735

4836
%build
4937
%pyproject_wheel
@@ -53,13 +41,20 @@ of interested parties to subscribe to events, or "signals".
5341
%pyproject_save_files %{mod_name}
5442

5543
%check
56-
%tox
44+
# from blinker/requirements/test.txt
45+
# need higer pytest than the one we have in azl3.0
46+
pip3 install iniconfig==2.0.0 pluggy==1.5.0 pytest==8.3.3 pytest-asyncio==0.24.0
47+
%pytest
5748

5849
%files -n python3-blinker -f %{pyproject_files}
59-
%doc CHANGES.rst LICENSE.rst README.rst
50+
%doc CHANGES.rst LICENSE.txt README.md
6051

6152

6253
%changelog
54+
* Tue Apr 29 2025 Riken Maharjan <rmaharjan@microsoft.com> - 1.9.0-1
55+
- Promote to Specs from Extended and update to 1.9.0 using Fedora 42 (License MIT)
56+
- License Verified.
57+
6358
* Wed Feb 12 2025 Aninda Pradhan <v-anipradhan@microsoft.com> - 1.7.0-4
6459
- Initial Azure Linux import from Fedora 41 (license: MIT)
6560
- License Verified
@@ -211,4 +206,4 @@ of interested parties to subscribe to events, or "signals".
211206
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
212207

213208
* Fri Jul 22 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.1-1
214-
- Initial RPM
209+
- Initial RPM

SPECS/python-oauthlib/python-oauthlib.spec

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: An implementation of the OAuth request-signing logic
22
Name: python-oauthlib
33
Version: 3.2.2
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: BSD
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -11,6 +11,9 @@ Source0: https://github.com/oauthlib/oauthlib/archive/refs/tags/v%{versio
1111
BuildArch: noarch
1212
%if 0%{?with_check}
1313
BuildRequires: python3-pip
14+
BuildRequires: python3-cryptography
15+
BuildRequires: python3-jwt
16+
BuildRequires: python3-blinker
1417
%endif
1518

1619
%description
@@ -23,6 +26,9 @@ BuildRequires: python3-devel
2326
BuildRequires: python3-setuptools
2427
BuildRequires: python3-xml
2528
Requires: python3
29+
Requires: python3-cryptography
30+
Requires: python3-jwt
31+
Requires: python3-blinker
2632

2733
%description -n python3-oauthlib
2834
OAuthLib is a generic utility which implements the logic of OAuth without assuming a specific HTTP request object or web framework
@@ -45,6 +51,9 @@ pip3 install mock wheel
4551
%{python3_sitelib}/*
4652

4753
%changelog
54+
* Tue Apr 29 2025 Riken Maharjan <rmaharjan@microsoft.com> - 3.2.2-2
55+
- Add missing runtime deps
56+
4857
* Fri Feb 02 2024 Henry Li <lihl@microsoft.com> - 3.2.2-1
4958
- Upgrade to version 3.2.2
5059
- Fix Source0

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22143,8 +22143,8 @@
2214322143
"type": "other",
2214422144
"other": {
2214522145
"name": "python-blinker",
22146-
"version": "1.7.0",
22147-
"downloadUrl": "https://github.com/pallets-eco/blinker/releases/download/1.7.0/blinker-1.7.0.tar.gz"
22146+
"version": "1.9.0",
22147+
"downloadUrl": "https://github.com/pallets-eco/blinker/releases/download/1.9.0/blinker-1.9.0.tar.gz"
2214822148
}
2214922149
}
2215022150
},

0 commit comments

Comments
 (0)