14
0

- 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
This commit is contained in:
2025-08-21 07:00:07 +00:00
committed by Git OBS Bridge
parent c74a3edd16
commit 797fb5c3de
4 changed files with 42 additions and 39 deletions

View File

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

3
coconut-3.1.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Aug 12 12:55:20 UTC 2025 - Felix Stegmeier <felix.stegmeier@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.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 20 14:14:44 UTC 2022 - pgajdos@suse.com Tue Sep 20 14:14:44 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-coconut # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 # coconut is a programming language, not a python module
%define pythons python3 %define pythons python3
Name: python-coconut Name: python-coconut
Version: 1.6.0 Version: 3.1.2
Release: 0 Release: 0
Summary: A functional programming language that compiles to Python Summary: A functional programming language that compiles to Python
License: MIT License: MIT
@@ -29,37 +27,26 @@ Group: Development/Languages/Python
URL: https://github.com/evhub/coconut URL: https://github.com/evhub/coconut
Source: https://files.pythonhosted.org/packages/source/c/coconut/coconut-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/coconut/coconut-%{version}.tar.gz
BuildRequires: %{python_module Pygments >= 2.2} BuildRequires: %{python_module Pygments >= 2.2}
BuildRequires: %{python_module prompt_toolkit >= 2} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyparsing >= 2.2}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros Requires: cPyparsing
Requires: python-Pygments >= 2.2 Requires: psutil
Requires: python-prompt_toolkit >= 2 Requires: python-Pygments
Requires: python-pyparsing >= 2.2 Requires: python-anyio
Recommends: python-cPyparsing >= 2.2.0.1.1 Requires: python-async_generator
Recommends: python-ipykernel >= 4.6 Requires: python-prompt_toolkit >= 3
Recommends: python-ipython >= 5.4 Requires: python-typing_extensions
Recommends: python-jupyter >= 1 Requires: setuptools
Recommends: python-jupyter_console >= 5.2 Recommends: python-jupyter
Recommends: python-mypy >= 0.540 Recommends: python-papermill
Recommends: python-psutil >= 5
Recommends: python-requests >= 2
Recommends: python-watchdog >= 0.8
Conflicts: python2-coconut <= 1.4.0
BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module cPyparsing >= 2.2.0.1.1} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ipykernel >= 4.6} BuildRequires: %{python_module cPyparsing >= 2.4.7.2.4.0}
BuildRequires: %{python_module ipython >= 5.4} BuildRequires: %{python_module pexpect}
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}
# /SECTION # /SECTION
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -72,28 +59,33 @@ tools for functional programming. Coconut code runs the same on any
Python version. Python version.
%prep %prep
%setup -q -n coconut-%{version} %autosetup -p1 -n coconut-%{version}
find . -type f -exec sed -i 's/\r$//' {} + find . -type f -exec sed -i 's/\r$//' {} +
find . -name '*.py' -exec sed -i -e '/^#!\//, 1d' {} + find . -name '*.py' -exec sed -i -e '/^#!\//, 1d' {} +
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}/%{$python_sitelib}/ %python_expand %fdupes %{buildroot}/%{$python_sitelib}/
# a hint how to package it welcome # a hint how to package it welcome
rm %{buildroot}/usr/share/jupyter/kernels/coconut/kernel.json rm %{buildroot}/usr/share/jupyter/kernels/coconut/kernel.json
%fdupes %{buildroot}%{_bindir}
%check
%files %{python_files} %files %{python_files}
%doc README.rst CONTRIBUTING.md DOCS.md FAQ.md HELP.md %doc README.rst CONTRIBUTING.md DOCS.md FAQ.md HELP.md
%license LICENSE.txt %license LICENSE.txt
%{_bindir}/coconut-py3* %{_bindir}/coconut-py3*
%{_bindir}/coconut %{_bindir}/coconut
%{_bindir}/coconut-v1* %{_bindir}/coconut-v3*
%{_bindir}/coconut-release* %{_bindir}/coconut-release*
%{_bindir}/coconut-run %{_bindir}/coconut-run
%{python_sitelib}/_coconut/
%{python_sitelib}/__coconut__/
%{python_sitelib}/coconut/ %{python_sitelib}/coconut/
%{python_sitelib}/coconut-%{version}-py*.egg-info %{python_sitelib}/coconut-%{version}.dist-info
%changelog %changelog