Blame python-jupyter-packaging.spec

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