Benjamin Greiner
2e3ec2c604
update to latest version OBS-URL: https://build.opensuse.org/request/show/1002363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-packaging?expand=0&rev=17
85 lines
2.8 KiB
RPMSpec
85 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-jupyter-packaging
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-jupyter-packaging
|
|
Version: 0.12.3
|
|
Release: 0
|
|
Summary: Jupyter Packaging Utilities
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/jupyter/jupyter-packaging
|
|
Source: https://files.pythonhosted.org/packages/source/j/jupyter_packaging/jupyter_packaging-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module deprecation}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 60.2}
|
|
BuildRequires: %{python_module tomlkit}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-deprecation
|
|
Requires: python-packaging
|
|
Requires: python-setuptools >= 60.2
|
|
Requires: python-tomlkit
|
|
Requires: python-wheel
|
|
Provides: python-jupyter_packaging = %{version}-%{release}
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module build}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest-timeout}
|
|
BuildRequires: %{python_module pytest}
|
|
#/SECTION
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This package contains utilities for making Python packages
|
|
with and without accompanying JavaScript packages
|
|
|
|
%prep
|
|
%setup -q -n jupyter_packaging-%{version}
|
|
sed -i 's/\r$//' README.md
|
|
sed -i -e '/^#!\//, 1d' jupyter_packaging/*.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# tests call pip which wants to check the online cache
|
|
donttest="test_install or test_datafiles_install"
|
|
donttest+=" or test_build_api and (test_build_package or test_deprecated_metadata)"
|
|
# want to write into system sitelib
|
|
donttest+=" or test_create_cmdclass"
|
|
# calls python (=python2)
|
|
donttest+=" or test_run"
|
|
%pytest -k "not ($donttest)"
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/jupyter_packaging
|
|
%{python_sitelib}/jupyter_packaging-%{version}*-info
|
|
|
|
%changelog
|