commit 361869f7242c7868016fd50b6c1cef4d5b10f4599ecc5cca64d750346499642a Author: Adrian Schröter Date: Fri May 3 19:42:13 2024 +0200 Sync from SUSE:SLFO:Main python-Automat revision 94007b6f69cb164fa4ba6dc3c683231b 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/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/python-Automat.changes b/python-Automat.changes new file mode 100644 index 0000000..678a857 --- /dev/null +++ b/python-Automat.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +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..f989a78 --- /dev/null +++ b/python-Automat.spec @@ -0,0 +1,97 @@ +# +# spec file +# +# Copyright (c) 2023 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 + +%bcond_without python2 +%{?sle15_python_module_pythons} +Name: python-Automat%{psuffix} +Version: 22.10.0 +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 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} +%if %{with python2} +BuildRequires: python2-xml +%endif +%endif +%python_subpackages + +%description +Automat is a library for concise, idiomatic Python expression of finite-state +automata (particularly deterministic finite-state transducers). + +%prep +%setup -q -n Automat-%{version} +sed -i "/six/d" setup.py + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_clone -a %{buildroot}%{_bindir}/automat-visualize +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest 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}*-info +%endif + +%changelog