python-jupyter-packaging/python-jupyter-packaging.spec
Markéta Machová 7269adcaf3 Accepting request 902489 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 0.10.3
  * Some fixes for issues discovered during packaging #96
    (@frenzymadness)
  * Disallow deprecated function return incorrect results for
    Python 3.10 #97 (@frenzymadness)
  * Fix handling of module metadata in tests #92 (@blink1073)
- Release 0.10.2
  * Fix Handling of npm Parameter #90 (@jtpio)
- Release 0.10.1
  * Fix Handling of Skip If Exists #86 (@jtpio)
- Release 0.10.0
  * Add more options to Build #84 (@jtpio)
- Release 0.9.2
  * Clean up handling of version info #82 (@jtpio)
- Update to 0.9.1
  * Do not run ensure_targets in develop mode #79 (@jtpio)
- Release 0.9.0
  * Add ability to ensure targets #77 (@jtpio)
  * Add version info helper function #76 (@afshin)
- Release 0.8.3
  * Fixes handling of backend #75 (@jtpio)
- Release 0.8.2
  * Fix invalid command build #72 (@xmnlab)
- Release 0.8.1
  * Fix Usage of install_npm #71 (@afshin)
- Release 0.8.0
  * Proposal: Improved integration with setuptools #69 (@afshin)
  * Update changelog #68 (@blink1073)

OBS-URL: https://build.opensuse.org/request/show/902489
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-packaging?expand=0&rev=9
2021-06-28 12:50:16 +00:00

83 lines
2.7 KiB
RPMSpec

#
# spec file for package python-jupyter-packaging
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-jupyter-packaging
Version: 0.10.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 deprecation}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module setuptools >= 46.4.0}
BuildRequires: %{python_module tomlkit}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires: python-deprecation
Requires: python-packaging
Requires: python-setuptools >= 46.4.0
Requires: python-tomlkit
Requires: python-wheel
Provides: python-jupyter_packaging = %{version}-%{release}
# SECTON test requirements
BuildRequires: %{python_module build}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
#/SECTION
%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
%python_build
%install
%python_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