Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-coconut for openSUSE:Factory checked in at 2025-08-25 20:38:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-coconut (Old) and /work/SRC/openSUSE:Factory/.python-coconut.new.30751 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-coconut" Mon Aug 25 20:38:28 2025 rev:9 rq:1301159 version:3.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-coconut/python-coconut.changes 2022-09-20 19:24:21.618607694 +0200 +++ /work/SRC/openSUSE:Factory/.python-coconut.new.30751/python-coconut.changes 2025-08-25 20:39:42.284129375 +0200 @@ -1,0 +2,18 @@ +Thu Aug 21 11:25:20 UTC 2025 - Daniel Garcia <daniel.gar...@suse.com> + +- Fix install requirements +- Add optional tests, but disabled by default, we can use a + _multibuild in the future and enable some tests + +------------------------------------------------------------------- +Tue Aug 12 12:55:20 UTC 2025 - Felix Stegmeier <felix.stegme...@suse.com> + +- Update to 3.1.2 + * See Coconut's documentation for more information on all of the features listed below. + * #851, #852: Fixed comments inside of parentheses in the Jupyter kernel. + * #846: reduce, takewhile, and dropwhile now support keyword arguments. + * #848: Class and data patterns now support keyword argument name elision. + * #847: New pattern-matching syntax for matching anonymous named tuples. + * #843: Added compiler warnings for (some cases of) undefined variables. + +------------------------------------------------------------------- Old: ---- coconut-1.6.0.tar.gz New: ---- coconut-3.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-coconut.spec ++++++ --- /var/tmp/diff_new_pack.tjMIfv/_old 2025-08-25 20:39:43.004159540 +0200 +++ /var/tmp/diff_new_pack.tjMIfv/_new 2025-08-25 20:39:43.008159707 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-coconut # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 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,12 +16,12 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%bcond_with tests + # coconut is a programming language, not a python module %define pythons python3 Name: python-coconut -Version: 1.6.0 +Version: 3.1.2 Release: 0 Summary: A functional programming language that compiles to Python License: MIT @@ -29,37 +29,33 @@ URL: https://github.com/evhub/coconut Source: https://files.pythonhosted.org/packages/source/c/coconut/coconut-%{version}.tar.gz BuildRequires: %{python_module Pygments >= 2.2} -BuildRequires: %{python_module prompt_toolkit >= 2} -BuildRequires: %{python_module pyparsing >= 2.2} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes -BuildRequires: python-rpm-macros -Requires: python-Pygments >= 2.2 -Requires: python-prompt_toolkit >= 2 -Requires: python-pyparsing >= 2.2 -Recommends: python-cPyparsing >= 2.2.0.1.1 -Recommends: python-ipykernel >= 4.6 -Recommends: python-ipython >= 5.4 -Recommends: python-jupyter >= 1 -Recommends: python-jupyter_console >= 5.2 -Recommends: python-mypy >= 0.540 -Recommends: python-psutil >= 5 -Recommends: python-requests >= 2 -Recommends: python-watchdog >= 0.8 -Conflicts: python2-coconut <= 1.4.0 -BuildArch: noarch +Requires: python-Pygments +Requires: python-anyio +Requires: python-async_generator +Requires: python-cPyparsing >= 2.4.7.2.4.0 +Requires: python-prompt_toolkit >= 3 +Requires: python-psutil +Requires: python-setuptools +Requires: python-typing_extensions +Recommends: python-jupyter +Recommends: python-papermill +%if %{with tests} # SECTION test requirements -BuildRequires: %{python_module cPyparsing >= 2.2.0.1.1} -BuildRequires: %{python_module ipykernel >= 4.6} -BuildRequires: %{python_module ipython >= 5.4} -BuildRequires: %{python_module jupyter >= 1} -BuildRequires: %{python_module jupyter_console >= 5.2} -BuildRequires: %{python_module mypy >= 0.540} -BuildRequires: %{python_module psutil >= 5} -BuildRequires: %{python_module pytest >= 3} -BuildRequires: %{python_module requests >= 2} -BuildRequires: %{python_module watchdog >= 0.8} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module anyio} +BuildRequires: %{python_module async_generator} +BuildRequires: %{python_module cPyparsing >= 2.4.7.2.4.0} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module prompt_toolkit >= 3} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module typing_extensions} +%endif # /SECTION +BuildArch: noarch %python_subpackages %description @@ -72,27 +68,36 @@ Python version. %prep -%setup -q -n coconut-%{version} +%autosetup -p1 -n coconut-%{version} find . -type f -exec sed -i 's/\r$//' {} + find . -name '*.py' -exec sed -i -e '/^#!\//, 1d' {} + %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}/%{$python_sitelib}/ # a hint how to package it welcome rm %{buildroot}/usr/share/jupyter/kernels/coconut/kernel.json +%fdupes %{buildroot}%{_bindir} + +%check +%if %{with tests} +donttest="test_find_packages" +%pytest --strict-markers -s -k "not $donttest" ./coconut/tests +%endif %files %{python_files} %doc README.rst CONTRIBUTING.md DOCS.md FAQ.md HELP.md %license LICENSE.txt %{_bindir}/coconut-py3* %{_bindir}/coconut -%{_bindir}/coconut-v1* +%{_bindir}/coconut-v3* %{_bindir}/coconut-release* %{_bindir}/coconut-run +%{python_sitelib}/_coconut/ +%{python_sitelib}/__coconut__/ %{python_sitelib}/coconut/ -%{python_sitelib}/coconut-%{version}-py*.egg-info +%{python_sitelib}/coconut-%{version}.dist-info ++++++ coconut-1.6.0.tar.gz -> coconut-3.1.2.tar.gz ++++++ ++++ 44903 lines of diff (skipped)