|
|
@@ -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,12 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%bcond_with tests
|
|
|
|
%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 +29,33 @@ 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: python-Pygments
|
|
|
|
Requires: python-Pygments >= 2.2
|
|
|
|
Requires: python-anyio
|
|
|
|
Requires: python-prompt_toolkit >= 2
|
|
|
|
Requires: python-async_generator
|
|
|
|
Requires: python-pyparsing >= 2.2
|
|
|
|
Requires: python-cPyparsing >= 2.4.7.2.4.0
|
|
|
|
Recommends: python-cPyparsing >= 2.2.0.1.1
|
|
|
|
Requires: python-prompt_toolkit >= 3
|
|
|
|
Recommends: python-ipykernel >= 4.6
|
|
|
|
Requires: python-psutil
|
|
|
|
Recommends: python-ipython >= 5.4
|
|
|
|
Requires: python-setuptools
|
|
|
|
Recommends: python-jupyter >= 1
|
|
|
|
Requires: python-typing_extensions
|
|
|
|
Recommends: python-jupyter_console >= 5.2
|
|
|
|
Recommends: python-jupyter
|
|
|
|
Recommends: python-mypy >= 0.540
|
|
|
|
Recommends: python-papermill
|
|
|
|
Recommends: python-psutil >= 5
|
|
|
|
%if %{with tests}
|
|
|
|
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 anyio}
|
|
|
|
BuildRequires: %{python_module ipython >= 5.4}
|
|
|
|
BuildRequires: %{python_module async_generator}
|
|
|
|
BuildRequires: %{python_module jupyter >= 1}
|
|
|
|
BuildRequires: %{python_module cPyparsing >= 2.4.7.2.4.0}
|
|
|
|
BuildRequires: %{python_module jupyter_console >= 5.2}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module mypy >= 0.540}
|
|
|
|
BuildRequires: %{python_module prompt_toolkit >= 3}
|
|
|
|
BuildRequires: %{python_module psutil >= 5}
|
|
|
|
BuildRequires: %{python_module psutil}
|
|
|
|
BuildRequires: %{python_module pytest >= 3}
|
|
|
|
BuildRequires: %{python_module typing_extensions}
|
|
|
|
BuildRequires: %{python_module requests >= 2}
|
|
|
|
%endif
|
|
|
|
BuildRequires: %{python_module watchdog >= 0.8}
|
|
|
|
|
|
|
|
# /SECTION
|
|
|
|
# /SECTION
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@@ -72,28 +68,37 @@ 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
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
donttest="test_find_packages"
|
|
|
|
|
|
|
|
%pytest --strict-markers -s -k "not $donttest" ./coconut/tests
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|