Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-simplebayes for openSUSE:Factory checked in at 2026-04-28 11:54:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-simplebayes (Old) and /work/SRC/openSUSE:Factory/.python-simplebayes.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-simplebayes" Tue Apr 28 11:54:37 2026 rev:4 rq:1349304 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-simplebayes/python-simplebayes.changes 2025-06-12 15:56:18.848780515 +0200 +++ /work/SRC/openSUSE:Factory/.python-simplebayes.new.11940/python-simplebayes.changes 2026-04-28 11:57:08.607431330 +0200 @@ -1,0 +2,34 @@ +Sat Apr 25 22:01:06 UTC 2026 - Dirk Müller <[email protected]> + +- update to 3.2.0: + * CLI options for `simplebayes-server`: + `--language` – Language code for stemmer and stop words + (default: `english`). Environment: `SIMPLEBAYES_LANGUAGE`. + `--remove-stop-words` – Filter common stop words. + Environment: `SIMPLEBAYES_REMOVE_STOP_WORDS` (`1`, `true`, + `yes` = enabled). + `--verbose` – Log requests, responses, and classifier + operations to stderr. Environment: `SIMPLEBAYES_VERBOSE` + (`1`, `true`, `yes` = enabled). + * API classifier is now configured from CLI `--language` and + `--remove-stop-words` instead of using fixed defaults. + * Documentation and metadata: updated terminology from "Bayes" + to "Bayesian" in PyPI keywords and changelog for consistency + with proper nomenclature. + * API: Bearer auth integrated with OpenAPI docs. `/docs` and + `/redoc` expose the Bearer scheme; use the "Authorize" button + in Swagger UI for interactive testing. + * `UnauthorizedError` – domain exception for Bearer auth + failures; produces 401 with `WWW-Authenticate` header. + * Introduced a full HTTP API runtime with CLI entrypoint and + expanded package layout. + * Added typed classification/result contracts and stricter + category validation semantics. + * Added versioned JSON model persistence APIs (`save`/`load`, + `save_to_file`/`load_from_file`) with validation and atomic + file writes. + * Removed legacy pickle persistence APIs (`cache_train`, + `cache_persist`, `get_cache_location`) in favor of JSON-only + persistence. + +------------------------------------------------------------------- Old: ---- simplebayes-1.5.8.tar.gz New: ---- simplebayes-3.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-simplebayes.spec ++++++ --- /var/tmp/diff_new_pack.mNz16K/_old 2026-04-28 11:57:09.159454077 +0200 +++ /var/tmp/diff_new_pack.mNz16K/_new 2026-04-28 11:57:09.163454241 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-simplebayes # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,19 +16,40 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif Name: python-simplebayes -Version: 1.5.8 +Version: 3.2.0 Release: 0 Summary: A memory-based, optional-persistence naïve bayesian text classifier License: MIT Group: Development/Languages/Python URL: https://github.com/hickeroar/simplebayes Source: https://files.pythonhosted.org/packages/source/s/simplebayes/simplebayes-%{version}.tar.gz +BuildRequires: %{python_module fastapi >= 0.116.1} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 61.0} +BuildRequires: %{python_module snowballstemmer >= 3.0.1} +BuildRequires: %{python_module uvicorn >= 0.35.0} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros +Requires: python-fastapi >= 0.116.1 +Requires: python-snowballstemmer >= 3.0.1 +Requires: python-uvicorn >= 0.35.0 BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %description A memory-based, optional-persistence naïve bayesian text classifier @@ -46,10 +67,21 @@ %install export LANG=C.UTF-8 %pyproject_install +%python_clone -a %{buildroot}%{_bindir}/simplebayes-server + +%pre +%python_libalternatives_reset_alternative simplebayes-server + +%post +%python_install_alternative simplebayes-server + +%postun +%python_uninstall_alternative simplebayes-server %files %{python_files} %license LICENSE -%doc README.rst +%doc README.md +%python_alternative %{_bindir}/simplebayes-server %{python_sitelib}/simplebayes %{python_sitelib}/simplebayes-%{version}*-info ++++++ simplebayes-1.5.8.tar.gz -> simplebayes-3.2.0.tar.gz ++++++ ++++ 5510 lines of diff (skipped)
