From cff231f113e0e6a719a8d0710386beef4329a4827f0f32864f89566041fdd095 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Tue, 25 Mar 2025 07:52:23 +0000 Subject: [PATCH 1/2] - adapt to setuptools 77 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=24 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + Automat-22.10.0.tar.gz | 3 ++ _multibuild | 3 ++ automat-24.8.1.tar.gz | 3 ++ python-Automat.changes | 98 ++++++++++++++++++++++++++++++++++++++++++ python-Automat.spec | 93 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 224 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Automat-22.10.0.tar.gz create mode 100644 _multibuild create mode 100644 automat-24.8.1.tar.gz create mode 100644 python-Automat.changes create mode 100644 python-Automat.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Automat-22.10.0.tar.gz b/Automat-22.10.0.tar.gz new file mode 100644 index 0000000..5fb463a --- /dev/null +++ b/Automat-22.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e +size 59099 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/automat-24.8.1.tar.gz b/automat-24.8.1.tar.gz new file mode 100644 index 0000000..6263514 --- /dev/null +++ b/automat-24.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b34227cf63f6325b8ad2399ede780675083e439b20c323d376373d8ee6306d88 +size 128679 diff --git a/python-Automat.changes b/python-Automat.changes new file mode 100644 index 0000000..f0c3f41 --- /dev/null +++ b/python-Automat.changes @@ -0,0 +1,98 @@ +------------------------------------------------------------------- +Mon Mar 24 18:00:52 UTC 2025 - Markéta Machová + +- adapt to setuptools 77 + +------------------------------------------------------------------- +Tue Oct 29 21:04:41 UTC 2024 - Dirk Müller + +- update to 24.8.1: + * major new api + * python 3.12/3.13 + +------------------------------------------------------------------- +Tue Sep 19 11:48:17 UTC 2023 - Ondřej Súkup + +- remove unneded six from setup.py + +------------------------------------------------------------------- +Fri Apr 21 12:19:11 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:40:10 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Tue Jan 10 11:21:35 UTC 2023 - Daniel Garcia + +- Update to 22.10.0 + * Fix _test_visualize.py twisted import errors + * Fix #17: Allow enter to have a default + * Use CodeType.replace() in copycode for Python > 3.8 + +------------------------------------------------------------------- +Thu Dec 9 17:40:44 UTC 2021 - Ben Greiner + +- Don't buildrequire unmaintained m2r + +------------------------------------------------------------------- +Tue Feb 18 16:58:24 UTC 2020 - Ondřej Súkup + +- update to 20.2.0 + * Fix attrs warnings + +------------------------------------------------------------------- +Mon Nov 25 03:40:42 UTC 2019 - Steve Kowalik + +- Update to version 0.8.0: + * Retrieve the version from the installed distribution. + * Add support for Python 3.8 + * Remove support for 3.4 + +------------------------------------------------------------------- +Thu Mar 7 09:09:35 UTC 2019 - Tomáš Chvátal + +- Add mulitbuild to make sure we do not cycle + +------------------------------------------------------------------- +Tue Mar 5 12:01:41 UTC 2019 - Tomáš Chvátal + +- Update to version 0.7.0: + * test updates + * pep fixes +- Run tests + +------------------------------------------------------------------- +Tue Jul 4 04:45:19 UTC 2017 - tbechtold@suse.com + +- update to version v0.6.0 + * use version-specific travis environments + * tox/travis: enable tests on py3.5 + * add a comment: this check doesn't catch non-None returns + * improve function-is-empty test to work on py3.6 too + * add more metadata to setup + * graphviz() -> asDigraph() + * Use inspect.getfullargspec on Py3 to avoid deprecation warnings with inspect.getargspec + * add tracing API, with docs + * Conform author metadata to `distutils.core` API + * tracer can return a callable to see Output invocations + * Make hashable classes frozen for attrs 17.1.0 (fixes #62). + * Assert that 'input' function bodies are empty, to avoid surprises. + * reject duplicate transitions (same starting state and input) + * tox/travis: enable tests on py3.6 + * improve tests: more cases, make pyflakes-clean + * sigh, add more code to attain full test coverage + * make setTrace a private API, document cautions about its use + * cover the specimen functions in tests, remove ordify() + * cleanup: s/assert_no_code/assertNoCode/ +- convert to singlespec +- fix Source url + +------------------------------------------------------------------- +Tue Jan 24 23:48:39 UTC 2017 - termim@gmail.com + +- Initial check in version 0.4.0 + diff --git a/python-Automat.spec b/python-Automat.spec new file mode 100644 index 0000000..7a13c84 --- /dev/null +++ b/python-Automat.spec @@ -0,0 +1,93 @@ +# +# spec file for package python-Automat +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + +%{?sle15_python_module_pythons} +Name: python-Automat%{psuffix} +Version: 24.8.1 +Release: 0 +Summary: Self-service finite-state machines for the programmer on the go +License: MIT +URL: https://github.com/glyph/automat +Source: https://files.pythonhosted.org/packages/source/A/Automat/automat-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-attrs >= 19.2.0 +Requires(post): update-alternatives +Requires(preun): update-alternatives +Suggests: python-Twisted >= 16.1.1 +Suggests: python-graphviz > 0.5.1 +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module Twisted >= 16.1.1} +BuildRequires: %{python_module attrs >= 19.2.0} +BuildRequires: %{python_module graphviz >= 0.5.1} +BuildRequires: %{python_module pytest} +%endif +%python_subpackages + +%description +Automat is a library for concise, idiomatic Python expression of finite-state +automata (particularly deterministic finite-state transducers). + +%prep +%autosetup -p1 -n automat-%{version} + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/automat-visualize +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest src/automat/_test +%endif + +%if !%{with test} +%post +%python_install_alternative automat-visualize + +%postun +%python_uninstall_alternative automat-visualize + +%files %{python_files} +%license LICENSE +%doc README.md +%python_alternative %{_bindir}/automat-visualize +%{python_sitelib}/automat +%{python_sitelib}/automat-%{version}.dist-info +%endif + +%changelog From 8aa011b5b0d7180778b5efbcce0c543253fdcc374c18de8779aabc68ef72dffe Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Mar 2025 08:27:46 +0000 Subject: [PATCH 2/2] - update filelist for newer setuptools OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=25 --- python-Automat.changes | 5 +++++ python-Automat.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-Automat.changes b/python-Automat.changes index f0c3f41..c42f953 100644 --- a/python-Automat.changes +++ b/python-Automat.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Mar 30 08:26:56 UTC 2025 - Dirk Müller + +- make it compatible with older setuptools again + ------------------------------------------------------------------- Mon Mar 24 18:00:52 UTC 2025 - Markéta Machová diff --git a/python-Automat.spec b/python-Automat.spec index 7a13c84..1fc37fd 100644 --- a/python-Automat.spec +++ b/python-Automat.spec @@ -87,7 +87,7 @@ automata (particularly deterministic finite-state transducers). %doc README.md %python_alternative %{_bindir}/automat-visualize %{python_sitelib}/automat -%{python_sitelib}/automat-%{version}.dist-info +%{python_sitelib}/?utomat-%{version}.dist-info %endif %changelog