2022-12-25 22:28:41 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-hatch-jupyter-builder
|
|
|
|
#
|
2024-03-28 20:35:37 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-12-25 22:28:41 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-03-28 20:35:37 +01:00
|
|
|
# This is with alts/libalternatives only and has never been something else
|
2022-12-25 22:28:41 +01:00
|
|
|
%bcond_without libalternatives
|
|
|
|
Name: python-hatch-jupyter-builder
|
2024-03-28 20:35:37 +01:00
|
|
|
Version: 0.9.1
|
2022-12-25 22:28:41 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A hatch plugin to help build Jupyter packages
|
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/jupyterlab/hatch-jupyter-builder
|
2022-12-25 23:10:40 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/hatch_jupyter_builder/hatch_jupyter_builder-%{version}.tar.gz
|
2022-12-25 22:28:41 +01:00
|
|
|
# PATCH-FIX-OPENSUSE hatch-test-nonisolated.patch code@bnavigator.de
|
|
|
|
Patch1: hatch-test-nonisolated.patch
|
2024-03-28 20:35:37 +01:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module hatchling >= 1.17}
|
2022-12-25 22:29:39 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-12-25 22:28:41 +01:00
|
|
|
BuildRequires: alts
|
2022-12-25 22:29:39 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-12-25 22:28:41 +01:00
|
|
|
Requires: alts
|
2024-03-28 20:35:37 +01:00
|
|
|
Requires: python-hatchling >= 1.17
|
2022-12-25 22:29:39 +01:00
|
|
|
Provides: python-hatch_jupyter_builder = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2022-12-25 22:28:41 +01:00
|
|
|
# SECTION test
|
|
|
|
BuildRequires: %{python_module build}
|
|
|
|
BuildRequires: %{python_module hatch}
|
2022-12-25 22:29:39 +01:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2022-12-25 22:28:41 +01:00
|
|
|
BuildRequires: %{python_module tomli}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This provides a build hook plugin for Hatch that
|
|
|
|
adds a build step for use with Jupyter packages.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n hatch_jupyter_builder-%{version}
|
2024-03-28 20:35:37 +01:00
|
|
|
sed -i 's/"--color=yes", //' pyproject.toml
|
2022-12-25 22:28:41 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/hatch-jupyter-builder
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative hatch-jupyter-builder
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative hatch-jupyter-builder
|
|
|
|
|
|
|
|
%files %{python_files}
|
2023-04-23 23:13:39 +02:00
|
|
|
%license LICENSE.txt
|
2022-12-25 22:28:41 +01:00
|
|
|
%python_alternative %{_bindir}/hatch-jupyter-builder
|
|
|
|
%{python_sitelib}/hatch_jupyter_builder
|
|
|
|
%{python_sitelib}/hatch_jupyter_builder-%{version}.dist-info
|
|
|
|
|
|
|
|
%changelog
|