public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-automaton] epel10.2: Sync from RDO bobcat release from python-automaton-3.2.0-1.el9s
@ 2026-05-31 14:46 Alfredo Moralejo
0 siblings, 0 replies; only message in thread
From: Alfredo Moralejo @ 2026-05-31 14:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-automaton
Branch : epel10.2
Commit : 429bbe16e53240a85d8d6ff85968dfad28d07ec9
Author : Alfredo Moralejo <amoralej@redhat.com>
Date : 2023-10-26T10:25:50+02:00
Stats : +46/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-automaton/c/429bbe16e53240a85d8d6ff85968dfad28d07ec9?branch=epel10.2
Log:
Sync from RDO bobcat release from python-automaton-3.2.0-1.el9s
---
diff --git a/.gitignore b/.gitignore
index 467ee81..89b0727 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,6 @@
/automaton-3.1.0.tar.gz
/0xa7475c5f2122fec3f90343223fe3bf5aad1080e4.txt
/automaton-3.1.0.tar.gz.asc
+/automaton-3.2.0.tar.gz
+/0x815afec729392386480e076dcc0dfe2d21c023c9.txt
+/automaton-3.2.0.tar.gz.asc
diff --git a/python-automaton.spec b/python-automaton.spec
index fa5a49f..c7ed5a2 100644
--- a/python-automaton.spec
+++ b/python-automaton.spec
@@ -1,16 +1,18 @@
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
-%global sources_gpg_sign 0xa7475c5f2122fec3f90343223fe3bf5aad1080e4
+%global sources_gpg_sign 0x815afec729392386480e076dcc0dfe2d21c023c9
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+# we are excluding some BRs from automatic generator
+%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order
%global pypi_name automaton
%global with_doc 1
Name: python-%{pypi_name}
-Version: 3.1.0
-Release: 3%{?dist}
+Version: 3.2.0
+Release: 1%{?dist}
Summary: Friendly state machines for python
-License: ASL 2.0
+License: Apache-2.0
URL: https://wiki.openstack.org/wiki/Oslo#automaton
Source0: http://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
# Required for tarball sources verification
@@ -31,14 +33,9 @@ Friendly state machines for python.
%package -n python3-%{pypi_name}
Summary: Friendly state machines for python
-%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-devel
-BuildRequires: python3-pbr
+BuildRequires: pyproject-rpm-macros
BuildRequires: git-core
-BuildRequires: python3-prettytable
-
-Requires: python3-pbr >= 2.0.0
-Requires: python3-prettytable
%description -n python3-%{pypi_name}
Friendly state machines for python.
@@ -47,8 +44,6 @@ Friendly state machines for python.
%package -n python-%{pypi_name}-doc
Summary: Friendly state machines for python - documentation
BuildRequires: graphviz
-BuildRequires: python3-sphinx
-BuildRequires: python3-openstackdocstheme
%description -n python-%{pypi_name}-doc
Friendly state machines for python (documentation)
@@ -61,24 +56,50 @@ Friendly state machines for python (documentation)
%endif
%autosetup -n %{pypi_name}-%{upstream_version} -S git
+sed -i /.*-c{env:TOX_CONSTRAINTS_FILE.*/d tox.ini
+sed -i /^minversion.*/d tox.ini
+sed -i /^requires.*virtualenv.*/d tox.ini
+
+# Tox uses doc8 to check docs syntax which we do not ship
+sed -i /.*doc8.*/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
+%generate_buildrequires
+%if 0%{?with_doc}
+ %pyproject_buildrequires -t -e %{default_toxenv},docs
+%else
+ %pyproject_buildrequires -t -e %{default_toxenv}
+%endif
+
%build
-%{py3_build}
+%pyproject_wheel
%if 0%{?with_doc}
# generate html docs
-sphinx-build-3 -b html doc/source doc/build/html
+%tox -e docs
# remove the sphinx-build-3 leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
%install
-%{py3_install}
+%pyproject_install
+
+%check
+%tox -e %{default_toxenv}
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/*.egg-info
+%{python3_sitelib}/*.dist-info
%if 0%{?with_doc}
%files -n python-%{pypi_name}-doc
@@ -87,6 +108,9 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
%changelog
+* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 3.2.0-1
+- Update to upstream version 3.2.0
+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
diff --git a/sources b/sources
index da73987..6938f04 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (automaton-3.1.0.tar.gz) = 62f18d8361dfe61b4a970f9c024dd9d35d8450366289dd624bed41455e5b69b1ba92c95b6928d05049c87ba915db77a94aba581b943fba766d249f31ce4c26c7
-SHA512 (0xa7475c5f2122fec3f90343223fe3bf5aad1080e4.txt) = cc8731a0fbdf791e51887609d13ee0ba402528572ab075419be998e29510211a6423fdfabc694eef8b654403d43cdcfc6b06ee244df58c5c4abc3e77ce85da24
-SHA512 (automaton-3.1.0.tar.gz.asc) = 6cfda69565e9e01ae57854fa1d0ca59935607363b104169b00d64029bd20a1d3779fe5f2e5fe23881531e729ec760faedd1228aef5af68ca051219d3682b20ab
+SHA512 (automaton-3.2.0.tar.gz) = c5d43cdc2eb3791e1372d729b1797b6a5ff6bd6b27c2bdaf948a92bed6463b1dd1c6cd16d2f4254d8ab6d613e7113b562eb53aaddff079ff0ad9ea5d38fb80e4
+SHA512 (0x815afec729392386480e076dcc0dfe2d21c023c9.txt) = be660eacaae93572475d0ae4e9cc29fc90897ec8a2ca8f4d0c5c7dcf682de9933e71a811f82b067fe5cb92de90165099ad7b49be98a6082c733a7f6b5b5f5a77
+SHA512 (automaton-3.2.0.tar.gz.asc) = 1845d9c521770d217427ffa8e91d78b897dffde161a8697f026507800acc0ccc1878936cfc646228324087f9d808acd3d26582ea034d984a6a6329a1442da0bb
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-31 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 14:46 [rpms/python-automaton] epel10.2: Sync from RDO bobcat release from python-automaton-3.2.0-1.el9s Alfredo Moralejo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox