public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-gitlab] rawhide: Add autocompletion, graphql and yaml sub packages
@ 2026-07-06 11:03 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-07-06 11:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-gitlab
Branch : rawhide
Commit : 7c10f8a56e5de36e61cab7004f024367cd630a86
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-07-06T12:45:58+02:00
Stats : +18/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-gitlab/c/7c10f8a56e5de36e61cab7004f024367cd630a86?branch=rawhide
Log:
Add autocompletion, graphql and yaml sub packages
- Add CHANGLOG.md to package
---
diff --git a/python-gitlab.spec b/python-gitlab.spec
index 9be1374..04ef450 100644
--- a/python-gitlab.spec
+++ b/python-gitlab.spec
@@ -13,23 +13,34 @@ BuildArch: noarch
BuildRequires: python3-devel
+
%description
Interact with GitLab API
+
%package -n python3-%{pypi_name}
Summary: %{summary}
+
%description -n python3-%{pypi_name}
Interact with GitLab API
+
%package -n python-%{pypi_name}-doc
Summary: Python gitlab documentation
%description -n python-%{pypi_name}-doc
Documentation for gitlab
+
+%pyproject_extras_subpkg -n python3-%{pypi_name} yaml graphql autocompletion
+
+
%prep
%autosetup -p1 -n python_%{pypi_name}-%{version}
+# https://github.com/python-gitlab/python-gitlab/pull/3411
+sed -i 's/argcomplete>=1.10.0,<3/argcomplete>=1.10.0,<4/' pyproject.toml
+
# Relax some dependencies
sed -i 's/pytest==9.*/pytest>=8.4.2,<10/' requirements-lint.txt requirements-test.txt
sed -i 's/respx==0.*/respx>=0,<1.0/' requirements-lint.txt requirements-test.txt
@@ -40,30 +51,34 @@ sed -i 's/anyio==4.*/anyio>=4.0.0,<5.0/' requirements-test.txt
sed -i 's/requests==2.*/requests>=2.32.0,<3.0/' requirements.txt
# not available in rawhide 11 Aug 2022
-sed -i 's/pytest-console-scripts.*//' requirements-test.txt
sed -i 's/pytest-github-actions-annotate-failures.*//' requirements-test.txt
# coverage disabled
sed -i 's/pytest-cov.*//' requirements-test.txt
sed -i 's/coverage.*//' requirements-test.txt
+
%generate_buildrequires
%pyproject_buildrequires -t
+
%build
%pyproject_wheel
%install
%pyproject_install
-%pyproject_save_files gitlab
+%pyproject_save_files -l gitlab
+
%check
%tox
+
%files -n python3-%{pypi_name} -f %{pyproject_files}
%{_bindir}/gitlab
-%doc README.rst
+%doc README.rst CHANGELOG.md
+
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-06 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-06 11:03 [rpms/python-gitlab] rawhide: Add autocompletion, graphql and yaml sub packages Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox