public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-futurist] noevent: Remove superflous python-reno BR
Date: Sun, 07 Jun 2026 16:00:22 GMT [thread overview]
Message-ID: <178084802288.1.3372501090090715215.rpms-python-futurist-157fdad395a6@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-futurist
Branch : noevent
Commit : 157fdad395a6cf053fd3668225d8f3578d65339e
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-04-22T15:01:01+02:00
Stats : +32/-36 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-futurist/c/157fdad395a6cf053fd3668225d8f3578d65339e?branch=noevent
Log:
Remove superflous python-reno BR
- Use pyproject macros for file listing
- Enable tox invocation of tests
---
diff --git a/python-futurist.spec b/python-futurist.spec
index 766bf04..06918d3 100644
--- a/python-futurist.spec
+++ b/python-futurist.spec
@@ -1,17 +1,9 @@
-%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
%global sources_gpg_sign 0xb8e9315f48553ec5aff9ffe5e69d97da9efb5aff
-
%global with_doc 1
-
-%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
-# we are excluding some BRs from automatic generator
-# eventlet is not available for python 3.13 and we are not running tests
-%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order eventlet
-
%global pypi_name futurist
-%global common_desc \
-Code from the future, delivered to you in the now.
+%global common_desc %{expand:
+Code from the future, delivered to you in the now.}
Name: python-%{pypi_name}
Version: 3.3.0
@@ -20,37 +12,41 @@ Summary: Useful additions to futures, from the future
License: Apache-2.0
URL: http://docs.openstack.org/developer/futurist
-Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
+Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Required for tarball sources verification
%if 0%{?sources_gpg} == 1
-Source101: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
+Source101: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz.asc
Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
%endif
BuildArch: noarch
+BuildRequires: python3-devel
+BuildRequires: git-core
+
# Required for tarball sources verification
%if 0%{?sources_gpg} == 1
BuildRequires: /usr/bin/gpgv2
%endif
+
%package -n python3-%{pypi_name}
Summary: Useful additions to futures, from the future
-BuildRequires: python3-devel
-BuildRequires: pyproject-rpm-macros
-BuildRequires: git-core
%description -n python3-%{pypi_name}
%{common_desc}
+
%if 0%{?with_doc}
%package -n python-%{pypi_name}-doc
Summary: Useful additions to futures, from the future - documentation
+
%description -n python-%{pypi_name}-doc
%{common_desc}
%endif
+
%description
========
Futurist
@@ -63,30 +59,24 @@ Futurist
%if 0%{?sources_gpg} == 1
%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
%endif
-%autosetup -n %{pypi_name}-%{upstream_version} -S git
+%autosetup -n %{pypi_name}-%{version} -S git
sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini
-sed -i "s/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/" tox.ini
-sed -i /^minversion.*/d tox.ini
-sed -i /^requires.*virtualenv.*/d tox.ini
-
-# Exclude some bad-known BRs
-for pkg in %{excluded_brs};do
- for reqfile in doc/requirements.txt test-requirements.txt; do
- if [ -f $reqfile ]; then
- sed -i /^${pkg}.*/d $reqfile
- fi
- done
-done
-
-# Automatic BR generation
+
+sed -i \
+ -e "/^coverage[[:space:]]*[><=]/d" \
+ -e "/^reno[[:space:]]*[><=]/d" \
+ test-requirements.txt doc/requirements.txt
+
+
%generate_buildrequires
%if 0%{?with_doc}
- %pyproject_buildrequires -t -e %{default_toxenv},docs
+%pyproject_buildrequires -t -e %{default_toxenv},docs
%else
- %pyproject_buildrequires -t -e %{default_toxenv}
+%pyproject_buildrequires -t -e %{default_toxenv}
%endif
+
%build
%pyproject_wheel
@@ -100,11 +90,16 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%pyproject_install
-%files -n python3-%{pypi_name}
+%pyproject_save_files -l %{pypi_name}
+
+
+%check
+%tox -e %{default_toxenv} -- -- --exclude-regex 'test_wait_for_any'
+
+
+%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
-%license LICENSE
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}*.dist-info
+
%if 0%{?with_doc}
%files -n python-%{pypi_name}-doc
@@ -112,5 +107,6 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%license LICENSE
%endif
+
%changelog
%autochangelog
reply other threads:[~2026-06-07 16:00 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=178084802288.1.3372501090090715215.rpms-python-futurist-157fdad395a6@fedoraproject.org \
--to=steve.traylen@cern.ch \
--cc=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