12 Commits

Author SHA256 Message Date
c102c6d86f Accepting request 1298855 from devel:languages:python
- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=13
2025-08-12 15:03:33 +00:00
563f41a6af - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=31
2025-08-11 13:38:32 +00:00
23a3adf9ab Accepting request 1294519 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1294519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=12
2025-07-21 17:59:10 +00:00
50e52535c9 - update to 25.4.16:
* documentation update
  * allow python 3.13
- make it compatible with older setuptools again

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=29
2025-07-12 11:40:01 +00:00
b970b7828f Accepting request 1286134 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286134
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=11
2025-06-18 13:53:47 +00:00
f847df7640 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=27
2025-06-16 14:27:01 +00:00
22358925c1 Accepting request 1265495 from devel:languages:python
- make it compatible with older setuptools again 

- adapt to setuptools 77

OBS-URL: https://build.opensuse.org/request/show/1265495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=10
2025-04-11 14:44:45 +00:00
29c555f7de - update filelist for newer setuptools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=25
2025-03-30 08:27:46 +00:00
c66ad3a149 Accepting request 1255716 from home:mcalabkova:branches:devel:languages:python
- adapt to setuptools 77

OBS-URL: https://build.opensuse.org/request/show/1255716
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=24
2025-03-25 07:52:23 +00:00
3a9b16332d Accepting request 1219405 from devel:languages:python
- update to 24.8.1:
  * major new api
  * python 3.12/3.13

- remove unneded six from setup.py

OBS-URL: https://build.opensuse.org/request/show/1219405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=9
2024-10-30 16:33:28 +00:00
d8b30f113a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=22 2024-10-30 09:29:52 +00:00
aa7c192ece - remove unneded six from setup.py
- add sle15_python_module_pythons (jsc#PED-68)

- Make calling of %{sle15modernpython} optional.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=21
2024-10-29 21:07:39 +00:00
4 changed files with 63 additions and 21 deletions

BIN
Automat-22.10.0.tar.gz (Stored with Git LFS)

Binary file not shown.

3
automat-25.4.16.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0017591a5477066e90d26b0e696ddc143baafd87b588cfac8100bc6be9634de0
size 129977

View File

@@ -1,7 +1,41 @@
-------------------------------------------------------------------
Mon Aug 11 13:37:41 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Sat Jul 12 11:39:20 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 25.4.16:
* documentation update
* allow python 3.13
-------------------------------------------------------------------
Mon Jun 16 14:24:41 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Sun Mar 30 08:26:56 UTC 2025 - Dirk Müller <dmueller@suse.com>
- make it compatible with older setuptools again
-------------------------------------------------------------------
Mon Mar 24 18:00:52 UTC 2025 - Markéta Machová <mmachova@suse.com>
- adapt to setuptools 77
-------------------------------------------------------------------
Tue Oct 29 21:04:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <mimi.vx@gmail.com>
- remove unneded six from setup.py
- remove unneded six from setup.py
-------------------------------------------------------------------
Fri Apr 21 12:19:11 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-Automat
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -24,24 +24,33 @@
%define psuffix %{nil}
%bcond_with test
%endif
%bcond_without python2
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-Automat%{psuffix}
Version: 22.10.0
Version: 25.4.16
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
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
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(preun):update-alternatives
Requires(postun): update-alternatives
%endif
Requires: python-attrs >= 19.2.0
Suggests: python-Twisted >= 16.1.1
Suggests: python-graphviz > 0.5.1
BuildArch: noarch
@@ -50,9 +59,6 @@ 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
@@ -61,25 +67,27 @@ 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
%autosetup -p1 -n automat-%{version}
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/automat-visualize
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest automat/_test
%pytest src/automat/_test
%endif
%if !%{with test}
%pre
%python_libalternatives_reset_alternative automat-visualize
%post
%python_install_alternative automat-visualize
@@ -91,7 +99,7 @@ sed -i "/six/d" setup.py
%doc README.md
%python_alternative %{_bindir}/automat-visualize
%{python_sitelib}/automat
%{python_sitelib}/Automat-%{version}*-info
%{python_sitelib}/?utomat-%{version}.dist-info
%endif
%changelog