public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-authlib] rawhide: modernize the spec file
Date: Wed, 25 Nov 2026 15:16:33 GMT [thread overview]
Message-ID: <179561979371.1.11086112047824993965.rpms-python-authlib-d260891453f5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-authlib
Branch : rawhide
Commit : d260891453f53923d9ca2b6ca1f86d2dbbfed8a6
Author : Miroslav Suchý <msuchy@redhat.com>
Date : 2026-11-25T16:16:20+01:00
Stats : +9/-25 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-authlib/c/d260891453f53923d9ca2b6ca1f86d2dbbfed8a6?branch=rawhide
Log:
modernize the spec file
---
diff --git a/python-authlib.spec b/python-authlib.spec
index 1821dc1..10dd53f 100644
--- a/python-authlib.spec
+++ b/python-authlib.spec
@@ -13,6 +13,9 @@ License: BSD-3-Clause
URL: https://github.com/authlib/authlib
Source0: %{url}/archive/v%{version}/authlib-%{version}.tar.gz
+BuildSystem: pyproject
+BuildOption(install): --assert-license authlib
+
BuildArch: noarch
BuildRequires: python3-devel
@@ -27,40 +30,21 @@ Summary: %{summary}
%description -n python3-authlib %_description
-
-%prep
-%autosetup -p1 -n authlib-%{version}
-
-# Remove OAuth 1 tests, because they require support for SHA1.
-sed -i '/tests\.django\.test_oauth1/d' tests/django_settings.py
-rm -rf \
- tests/django/test_oauth1 \
- tests/flask/test_oauth1 \
- tests/clients/test_requests/test_oauth1_session.py \
- tests/clients/test_httpx/test_oauth1_client.py
-
-# Strip non-test/developer tools from pyproject.toml
-sed -i -E '/"(coverage|diff-cover|prek|scriv|tox-uv)/d' pyproject.toml
-
+%prep -a
+# Strip non-test/developer tools
+%pyproject_patch_dependency prek:ignore
+%pyproject_patch_dependency scriv:ignore
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -i 's/coverage run --source=authlib -p -m pytest/python3 -m pytest/' tox.ini
-
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-e %{toxenv}%{?with_tests_clients:,%{toxenv}-clients}%{?with_tests_flask:,%{toxenv}-flask}%{?with_tests_django:,%{toxenv}-django}%{?with_tests_jose:,%{toxenv}-jose}}
-%build
-%pyproject_wheel
-
-
-%install
-%pyproject_install
-%pyproject_save_files authlib
-
-
%check
%if %{with tests}
+# OAuth 1 tests require SHA1 support which is not available
+sed -i '/^\[tool\.pytest\.ini_options\]$/a addopts = "--ignore=tests/django/test_oauth1 --ignore=tests/flask/test_oauth1 --ignore=tests/clients/test_requests/test_oauth1_session.py --ignore=tests/clients/test_httpx/test_oauth1_client.py"' pyproject.toml
%tox
%endif
# for import check, we exclude modules with optional dependencies:
reply other threads:[~2026-11-25 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179561979371.1.11086112047824993965.rpms-python-authlib-d260891453f5@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox