From eb70e4454bd5d8ee8ef653b19bfdb7f4c6552066aa7e51a7895e7c81eacdef6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 15 May 2025 12:10:28 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boolean.py?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-boolean.py-4.0.tar.gz | 3 ++ python-boolean.py.changes | 42 +++++++++++++++++++++++ python-boolean.py.spec | 64 ++++++++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-boolean.py-4.0.tar.gz create mode 100644 python-boolean.py.changes create mode 100644 python-boolean.py.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/python-boolean.py-4.0.tar.gz b/python-boolean.py-4.0.tar.gz new file mode 100644 index 0000000..b630329 --- /dev/null +++ b/python-boolean.py-4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18790aa5a233293688483eddc4dd1fa73c7165bc226b00009ed2fa9ce5a06ee6 +size 33855 diff --git a/python-boolean.py.changes b/python-boolean.py.changes new file mode 100644 index 0000000..931002e --- /dev/null +++ b/python-boolean.py.changes @@ -0,0 +1,42 @@ +------------------------------------------------------------------- +Thu May 15 11:56:29 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Sep 22 11:24:15 UTC 2022 - Matthias Fehring + +- update to 4.0 + * API changes + + Drop support for Python 2. + + Test on Python 3.10 + + Make Expression.sort_order an instance attributes and not a + class attribute + * Misc. + + Correct licensing documentation + + Improve docstringf and apply minor refactorings + + Adopt black code style and isort for imports + +------------------------------------------------------------------- +Mon Sep 6 08:50:56 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Thu Jan 23 17:34:52 UTC 2020 - Marketa Calabkova + +- update to 3.7 + * Add new sort argument to simplify() to optionally not sort when + simplifying expressions (e.g. not applying "commutativity"). + * Add new argument to tokenizer to optionally accept extra + characters in symbol tokens. + +------------------------------------------------------------------- +Tue Sep 10 07:14:25 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Thu Sep 5 13:15:45 UTC 2019 - Carmen Bianca Bakker + +- New package, version 3.6 diff --git a/python-boolean.py.spec b/python-boolean.py.spec new file mode 100644 index 0000000..62a5fe8 --- /dev/null +++ b/python-boolean.py.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-boolean.py +# +# 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/ +# + + +Name: python-boolean.py +Version: 4.0 +Release: 0 +Summary: Module to define boolean algebras and create/parse boolean expressions +License: BSD-2-Clause +Group: Development/Languages/Python +URL: https://github.com/bastikr/boolean.py +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +"boolean.py" is a library implementing a boolean algebra. It defines +two base elements, TRUE and FALSE, and a Symbol class that can take on one of +these two values. Calculations are done in terms of AND, OR and NOT - other +compositions like XOR and NAND are not implemented but can be emulated with +AND or and NOT. Expressions are constructed from parsed strings or in Python. + +%prep +%setup -q -n boolean.py-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +sphinx-build docs html +rm -rf html/.{doctrees,buildinfo} + +%check +%pyunittest discover -v + +%files %{python_files} +%license LICENSE.txt +%doc README.rst CHANGELOG.rst html/ +%{python_sitelib}/boolean +%{python_sitelib}/boolean[._]py-%{version}*-info + +%changelog