From 797fb5c3de375fab99fd8c6cde4fa778ce46d74783e785fc01b8cf00b7aaac82 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 21 Aug 2025 07:00:07 +0000 Subject: [PATCH] - 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coconut?expand=0&rev=23 --- coconut-1.6.0.tar.gz | 3 -- coconut-3.1.2.tar.gz | 3 ++ python-coconut.changes | 11 ++++++++ python-coconut.spec | 64 ++++++++++++++++++------------------------ 4 files changed, 42 insertions(+), 39 deletions(-) delete mode 100644 coconut-1.6.0.tar.gz create mode 100644 coconut-3.1.2.tar.gz diff --git a/coconut-1.6.0.tar.gz b/coconut-1.6.0.tar.gz deleted file mode 100644 index 0578265..0000000 --- a/coconut-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f8d3ba15a4335246dc5c2ae3693042b9ce02398455fea5fc6d1d9dcc242c69b -size 194033 diff --git a/coconut-3.1.2.tar.gz b/coconut-3.1.2.tar.gz new file mode 100644 index 0000000..eac19a0 --- /dev/null +++ b/coconut-3.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef0656ee2df4594007f998f4a9c2a1b9bfbc40541a400cbaa00ccbbac50e5414 +size 389774 diff --git a/python-coconut.changes b/python-coconut.changes index 53b1901..f9dd4b2 100644 --- a/python-coconut.changes +++ b/python-coconut.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Aug 12 12:55:20 UTC 2025 - Felix Stegmeier + +- 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. + ------------------------------------------------------------------- Tue Sep 20 14:14:44 UTC 2022 - pgajdos@suse.com diff --git a/python-coconut.spec b/python-coconut.spec index f228ec3..9f25631 100644 --- a/python-coconut.spec +++ b/python-coconut.spec @@ -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,10 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 # 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 +27,26 @@ Group: Development/Languages/Python 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: cPyparsing +Requires: psutil +Requires: python-Pygments +Requires: python-anyio +Requires: python-async_generator +Requires: python-prompt_toolkit >= 3 +Requires: python-typing_extensions +Requires: setuptools +Recommends: python-jupyter +Recommends: python-papermill # 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 cPyparsing >= 2.4.7.2.4.0} +BuildRequires: %{python_module pexpect} # /SECTION +BuildArch: noarch %python_subpackages %description @@ -72,28 +59,33 @@ tools for functional programming. Coconut code runs the same on any 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 %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 %changelog