%global pypi_name jupyter_packaging Name: python-jupyter-packaging Version: 0.10.3 Release: 1%{?dist} Summary: Tools to help build and install Jupyter Python packages License: BSD URL: https://github.com/jupyter/jupyter-packaging Source0: %{pypi_source} BuildArch: noarch %global _description %{expand: This package contains utilities for making Python packages with and without accompanying JavaScript packages.} %description %_description %package -n python3-jupyter-packaging Summary: %{summary} BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # Test dependencies are specified manually because # the list upstream is unnecessary long and # `build` package is not yet available in Fedora BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-mock) %description -n python3-jupyter-packaging %_description %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check # Some tests are trying to install packages to /usr # - https://github.com/jupyter/jupyter-packaging/issues/63 # some of them needs `build` package we don't have in Fedora yet, %pytest -k "\ not test_build_package and \ not test_create_cmdclass and \ not test_deprecated_metadata and \ not test_develop and \ not test_install and \ not test_install_hybrid and \ not test_run \ " %files -n python3-jupyter-packaging -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Thu Jun 24 2021 Lumír Balhar - 0.10.3-1 - A few minor modifications - Update to 0.10.3 * Thu Jan 14 2021 Benjamin A. Beasley - 0.7.11-2 - Use pyproject-rpm-macros and pytest macro. * Fri Jan 08 2021 Filipe Brandenburger - 0.7.11-1 - Initial packaging.