1
0

- Update to 4.9.1

* Add Python site user base subdirectories to config and data
    user-level paths if site.ENABLE_USER_SITE is True. One way to
    disable these directory additions is to set the
    PYTHONNOUSERSITE environment variable. These locations can be
    customized by setting the PYTHONUSERBASE environment variable.
  * Add a workaround for virtualenv for getting the user site
    directory.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=21
This commit is contained in:
Benjamin Greiner 2021-11-12 21:17:57 +00:00 committed by Git OBS Bridge
parent 7d38550062
commit 6ab56870ec
4 changed files with 19 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef210dcb4fca04de07f2ead4adf408776aca94d17151d6f750ad6ded0b91ea16
size 73579

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dce8a7499da5a53ae3afd5a9f4b02e5df1d57250cf48f3ad79da23b4778cd6fa
size 74787

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Nov 12 21:09:24 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to 4.9.1
* Add Python site user base subdirectories to config and data
user-level paths if site.ENABLE_USER_SITE is True. One way to
disable these directory additions is to set the
PYTHONNOUSERSITE environment variable. These locations can be
customized by setting the PYTHONUSERBASE environment variable.
* Add a workaround for virtualenv for getting the user site
directory.
-------------------------------------------------------------------
Fri Nov 12 08:25:01 UTC 2021 - Stefan Schubert <schubi@suse.de>

View File

@ -1,5 +1,5 @@
#
# spec file for package python-jupyter-core
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@ -34,7 +34,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jupyter-core%{psuffix}
Version: 4.8.1
Version: 4.9.1
Release: 0
Summary: Base package on which Jupyter projects rely
License: BSD-3-Clause
@ -42,7 +42,7 @@ URL: https://github.com/jupyter/jupyter_core
Source0: https://files.pythonhosted.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
# PATCH-FIX-OPENSUSE -- use_rpms_paths.patch -- change paths so they are easy to replace at build time
Patch0: use_rpms_paths.patch
# argv0_subcommand.patch can be removed with releasing version > 4.9.1
# PATCH-FIX-UPSTREAM argv0_subcommand.patch -- gh#jupyter/jupyter_core#248, merged after the release of 4.9.1
Patch1: argv0_subcommand.patch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module traitlets}
@ -85,9 +85,7 @@ There is no reason to install this package on its own. It will be pulled in
as a dependency by packages that require it.
%prep
%setup -q -n jupyter_core-%{version}
%patch0 -p1
%patch1 -p1
%autosetup -p1 -n jupyter_core-%{version}
# Set the appropriate hardcoded paths dynamically
sed -i "s|\"_datadir_jupyter_\"|\"%{_datadir}/jupyter\"|" jupyter_core/paths.py
sed -i "s|\"_sysconfdir_jupyter_\"|\"%{_sysconfdir}/jupyter\"|" jupyter_core/paths.py
@ -117,7 +115,6 @@ popd
%endif
%pre
# removing old update-alternatives entries
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative jupyter