From a76def0188316b0db10ceb0481f507ed91de6a61 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Feb 05 2025 11:19:07 +0000 Subject: Update to 24.8.1 Related-to: https://review.rdoproject.org/r/q/I63ac778f47e932128e1580da76fe72ea3c2f67da --- diff --git a/.python-Automat.metadata b/.python-Automat.metadata new file mode 100644 index 0000000..c3ccd82 --- /dev/null +++ b/.python-Automat.metadata @@ -0,0 +1 @@ +a6a96aeba0881f744970878e1d84caee38be25ac SOURCES/automat-24.8.1.tar.gz diff --git a/SOURCES/sphinx-no-git.patch b/SOURCES/sphinx-no-git.patch new file mode 100644 index 0000000..84b4bc2 --- /dev/null +++ b/SOURCES/sphinx-no-git.patch @@ -0,0 +1,42 @@ +diff --git a/docs/conf.py b/docs/conf.py +index d2e19c6..fb540a3 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -44,29 +44,6 @@ import subprocess + _project_root = pathlib.Path(__file__).parent.parent + _source_root = _project_root / "src" + +-_git_reference = subprocess.run( +- ["git", "rev-parse", "--abbrev-ref", "HEAD"], +- text=True, +- encoding="utf8", +- capture_output=True, +- check=True, +-).stdout +- +- +-# Try to find URL fragment for the GitHub source page based on current +-# branch or tag. +- +-if _git_reference == "HEAD": +- # It looks like the branch has no name. +- # Fallback to commit ID. +- _git_reference = subprocess.getoutput("git rev-parse HEAD") +- +-if os.environ.get("READTHEDOCS", "") == "True": +- rtd_version = os.environ.get("READTHEDOCS_VERSION", "") +- if "." in rtd_version: +- # It looks like we have a tag build. +- _git_reference = rtd_version +- + pydoctor_args = [ + # pydoctor should not fail the sphinx build, we have another tox environment for that. + "--intersphinx=https://docs.twisted.org/en/twisted-22.1.0/api/objects.inv", +@@ -75,7 +52,6 @@ pydoctor_args = [ + "--intersphinx=https://zopeinterface.readthedocs.io/en/latest/objects.inv", + # TODO: not sure why I have to specify these all twice. + f"--config={_project_root}/.pydoctor.cfg", +- f"--html-viewsource-base=https://github.com/glyph/automat/tree/{_git_reference}/src", + f"--project-base-dir={_source_root}", + "--html-output={outdir}/api", + "--privacy=HIDDEN:automat.test.*", diff --git a/SPECS/python-Automat.spec b/SPECS/python-Automat.spec new file mode 100644 index 0000000..8f65f75 --- /dev/null +++ b/SPECS/python-Automat.spec @@ -0,0 +1,217 @@ + +%global srcname Automat +%global libname automat + +%global common_description %{expand: +Automat is a library for concise, idiomatic Python expression of finite-state +automata (particularly deterministic finite-state transducers).} + +#package python3-pydoctor is not provided in RDO +%bcond_with doc + +Name: python-%{srcname} +Version: 24.8.1 +Release: 1%{?dist} +Summary: Self-service finite-state machines for the programmer on the go + +License: MIT +URL: https://github.com/glyph/automat +Source0: %pypi_source %libname + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%if %{with doc} +BuildRequires: python3dist(sphinx-rtd-theme) +BuildRequires: python3-pydoctor +%endif + +# removes pieces of sphinx config trying to use git +# to get branch name or commit +Patch: sphinx-no-git.patch + +%description %{common_description} + +%package -n python3-%{srcname} +Summary: %{summary} +Provides: python3-%{libname} + +%description -n python3-%{srcname} %{common_description} + +%if %{with doc} +%package -n python-%{srcname}-doc +Summary: Automat documentation + +%description -n python-%{srcname}-doc +Documentation for Automat +%endif + +%prep +%autosetup -p1 -n %{libname}-%{version} + +# Backport of https://github.com/glyph/automat/commit/2bf0abddd9b532ef9dd90707a10a09ce48c24f3d +sed -i "s/py\.test/pytest/g" tox.ini + +%generate_buildrequires +%pyproject_buildrequires -t + +%build +%pyproject_wheel + +%if %{with doc} +sphinx-build docs html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} +%endif + +%install +%pyproject_install +%pyproject_save_files %{libname} + +%check +%tox + +%files -n python3-%{srcname} -f %{pyproject_files} +%{_bindir}/automat-visualize + +%if %{with doc} +%files -n python-%{srcname}-doc +%doc html +%license LICENSE +%endif + +%changelog +* Thu Jan 16 2025 Jonathan Wright - 24.8.1-1 +- update to 24.8.1 rhbz#2307417 + +* Fri Jul 19 2024 Fedora Release Engineering - 22.10.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 22.10.0-7 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 22.10.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 22.10.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 22.10.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 15 2023 Python Maint - 22.10.0-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 22.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Dec 28 2022 Robert-André Mauchin - 22.10.0-1 +- Update to 22.10.0 + +* Fri Dec 09 2022 Lumir Balhar - 20.2.0-21 +- Fix compatibility with pytest 7.2 and tox 4 + +* Fri Jul 22 2022 Fedora Release Engineering - 20.2.0-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Jul 03 2022 Robert-André Mauchin - 20.2.0-19 +- Minor fixes + +* Sun Jul 03 2022 Robert-André Mauchin - 20.2.0-18 +- Remove check condition + +* Sun Jul 03 2022 Robert-André Mauchin - 20.2.0-17 +- Minor fixes + +* Tue Jun 21 2022 Robert-André Mauchin - 20.2.0-16 +- Remove deletion of egg.info + +* Tue Jun 21 2022 Robert-André Mauchin - 20.2.0-15 +- Add a switch for the tests + +* Tue Jun 21 2022 Robert-André Mauchin - 20.2.0-14 +- Convert to new Python guidelines + +* Tue Jun 14 2022 Python Maint - 20.2.0-13 +- Rebuilt for Python 3.11 + +* Mon Jun 13 2022 Python Maint - 20.2.0-12 +- Bootstrap for Python 3.11 + +* Mon Feb 14 2022 Robert-André Mauchin - 20.2.0-11 +- Fix FTBFS with Python 3.11 Close: rhbz#2050073 + +* Fri Jan 21 2022 Fedora Release Engineering - 20.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 20.2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 20.2.0-7 +- Rebuilt for Python 3.10 + +* Fri Jun 04 2021 Python Maint - 20.2.0-6 +- Bootstrap for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 20.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 20.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 20.2.0-3 +- Rebuilt for Python 3.9 + +* Sun May 24 2020 Miro Hrončok - 20.2.0-2 +- Bootstrap for Python 3.9 + +* Wed Feb 19 03:32:18 CET 2020 Robert-André Mauchin - 20.2.0-1 +- Update to 20.2.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Dec 14 2019 Robert-André Mauchin - 0.8.0-1 +- Update to 0.8.0 (#1763502) + +* Sun Oct 13 23:16:43 CEST 2019 Robert-André Mauchin - 0.7.0-8 +- Drop Python 2 support (#1761207) + +* Wed Sep 18 2019 Petr Viktorin - 0.7.0-7 +- Python 2: Remove tests and test dependencies + +* Sat Aug 17 2019 Miro Hrončok - 0.7.0-6 +- Rebuilt for Python 3.8 + +* Sat Aug 17 2019 Miro Hrončok - 0.7.0-5 +- Bootstrap for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.7.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon May 27 21:26:47 CEST 2019 Robert-André Mauchin - 0.7.0-3 +- Add patch supporting for positional only arguments for Python 3.8 + +* Sat Apr 06 2019 Carl George - 0.7.0-2 +- Add provides for lowercase name +- Run tests with pytest like upstream does + +* Mon Mar 11 2019 Robert-André Mauchin - 0.7.0-1 +- Release 0.7.0 (#1687495) + +* Fri Mar 08 2019 Jeroen van Meeuwen - 0.6.0-5 + - Add bcond_without tests + +* Sat Feb 02 2019 Fedora Release Engineering - 0.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.6.0-2 +- Rebuilt for Python 3.7 + +* Fri Apr 13 2018 Robert-André Mauchin - 0.6.0-1 +- Initial package. +