diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8f66ac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/jupyter_packaging-0.10.3.tar.gz diff --git a/python-jupyter-packaging.spec b/python-jupyter-packaging.spec new file mode 100644 index 0000000..5b2fcc6 --- /dev/null +++ b/python-jupyter-packaging.spec @@ -0,0 +1,72 @@ +%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. diff --git a/sources b/sources new file mode 100644 index 0000000..e6a0369 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jupyter_packaging-0.10.3.tar.gz) = 7634a056d506328af6e963ac7a8d6ac5fdb5d5303a31495af2275a7feca3732b60aeebb332cdc009ab690aa4185f5b3687ae002300b4885620cb9f2da6d2c79e