Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jupyter-packaging for 
openSUSE:Factory checked in at 2021-10-18 21:59:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter-packaging (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyter-packaging.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyter-packaging"

Mon Oct 18 21:59:33 2021 rev:5 rq:925908 version:0.10.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyter-packaging/python-jupyter-packaging.changes
        2021-07-17 23:37:13.189700948 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter-packaging.new.1890/python-jupyter-packaging.changes
      2021-10-18 22:02:43.318116567 +0200
@@ -1,0 +2,13 @@
+Sun Oct 17 17:34:08 UTC 2021 - Ben Greiner <[email protected]>
+
+- Update to 0.10.6
+  * The import of bdist_wheel is optional, must check for None
+    before using it #106 (@ellert)
+- Release 0.10.5
+  * Fix last one hardcoded unversioned python command #98
+    (@frenzymadness)
+  * Add note about using the build package #104 (@blink1073)
+- Release 0.10.4
+  * Handle missing yarn #99 (@blink1073)
+
+-------------------------------------------------------------------

Old:
----
  jupyter_packaging-0.10.3.tar.gz

New:
----
  jupyter_packaging-0.10.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jupyter-packaging.spec ++++++
--- /var/tmp/diff_new_pack.UVC9YE/_old  2021-10-18 22:02:43.766116891 +0200
+++ /var/tmp/diff_new_pack.UVC9YE/_new  2021-10-18 22:02:43.766116891 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-jupyter-packaging
-Version:        0.10.3
+Version:        0.10.6
 Release:        0
 Summary:        Jupyter Packaging Utilities
 License:        BSD-3-Clause

++++++ jupyter_packaging-0.10.3.tar.gz -> jupyter_packaging-0.10.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_packaging-0.10.3/PKG-INFO 
new/jupyter_packaging-0.10.6/PKG-INFO
--- old/jupyter_packaging-0.10.3/PKG-INFO       2021-06-25 13:55:01.552740000 
+0200
+++ new/jupyter_packaging-0.10.6/PKG-INFO       2021-09-27 20:29:26.313514500 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jupyter_packaging
-Version: 0.10.3
+Version: 0.10.6
 Summary: Jupyter Packaging Utilities.
 Home-page: http://jupyter.org
 Author: Jupyter Development Team
@@ -131,6 +131,7 @@
 
 ## Usage Notes
 
+- This package does not work with the deprecated `python setup.py bdist_wheel` 
or `python setup.py sdist` commands, PyPA recommends using the 
[build](https://pypa-build.readthedocs.io/en/latest/index.html) package (`pip 
install build && python -m build .`).
 - We recommend using `include_package_data=True` and `MANIFEST.in` to control 
the assets included in the 
[package](https://setuptools.readthedocs.io/en/latest/userguide/datafiles.html).
 - Tools like [`check-manifest`](https://github.com/mgedmin/check-manifest) or 
[`manifix`](https://github.com/vidartf/manifix) can be used to ensure the 
desired assets are included.
 - Simple uses of `data_files` can be handled in `setup.cfg` or in `setup.py`.  
If recursive directories are needed use `get_data_files()` from this package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_packaging-0.10.3/README.md 
new/jupyter_packaging-0.10.6/README.md
--- old/jupyter_packaging-0.10.3/README.md      2021-05-12 11:55:27.000000000 
+0200
+++ new/jupyter_packaging-0.10.6/README.md      2021-09-15 13:21:56.000000000 
+0200
@@ -105,6 +105,7 @@
 
 ## Usage Notes
 
+- This package does not work with the deprecated `python setup.py bdist_wheel` 
or `python setup.py sdist` commands, PyPA recommends using the 
[build](https://pypa-build.readthedocs.io/en/latest/index.html) package (`pip 
install build && python -m build .`).
 - We recommend using `include_package_data=True` and `MANIFEST.in` to control 
the assets included in the 
[package](https://setuptools.readthedocs.io/en/latest/userguide/datafiles.html).
 - Tools like [`check-manifest`](https://github.com/mgedmin/check-manifest) or 
[`manifix`](https://github.com/vidartf/manifix) can be used to ensure the 
desired assets are included.
 - Simple uses of `data_files` can be handled in `setup.cfg` or in `setup.py`.  
If recursive directories are needed use `get_data_files()` from this package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyter_packaging-0.10.3/jupyter_packaging/setupbase.py 
new/jupyter_packaging-0.10.6/jupyter_packaging/setupbase.py
--- old/jupyter_packaging-0.10.3/jupyter_packaging/setupbase.py 2021-06-25 
13:54:41.000000000 +0200
+++ new/jupyter_packaging-0.10.6/jupyter_packaging/setupbase.py 2021-09-27 
20:29:16.000000000 +0200
@@ -55,7 +55,7 @@
         return ' '.join(map(pipes.quote, cmd_list))
 
 
-__version__ = '0.10.3'
+__version__ = '0.10.6'
 
 # ---------------------------------------------------------------------------
 # Top Level Variables
@@ -142,7 +142,8 @@
 
     if pre_dist or post_dist or ensured_targets:
         _make_wrapper(sdist, pre_dist, post_dist)
-        _make_wrapper(bdist_wheel, pre_dist, post_dist)
+        if bdist_wheel:
+            _make_wrapper(bdist_wheel, pre_dist, post_dist)
 
     return cmdclass
 
@@ -178,7 +179,11 @@
 
         node_package = path or os.path.abspath(os.getcwd())
         node_modules = pjoin(node_package, 'node_modules')
+
         is_yarn = os.path.exists(pjoin(node_package, 'yarn.lock'))
+        if is_yarn and not which('yarn'):
+            log.warn('yarn not found, ignoring yarn.lock file')
+            is_yarn = False
 
         npm_cmd = npm
 
@@ -258,13 +263,15 @@
     log.info('> ' + list2cmdline(cmd))
     kwargs.setdefault('shell', os.name == 'nt')
     if not isinstance(cmd, (list, tuple)):
-        cmd = shlex.split(cmd)
-    cmd_path = which(cmd[0])
-    if not cmd_path:
-        raise ValueError("Aborting. Could not find cmd (%s) in path. "
-                 "If command is not expected to be in user's path, "
-                 "use an absolute path." % cmd[0])
-    cmd[0] = cmd_path
+        cmd = shlex.split(cmd, posix=os.name!='nt')
+    if not os.path.isabs(cmd[0]):
+        # If a command is not an absolute path find it first.
+        cmd_path = which(cmd[0])
+        if not cmd_path:
+            raise ValueError("Aborting. Could not find cmd (%s) in path. "
+                    "If command is not expected to be in user's path, "
+                    "use an absolute path." % cmd[0])
+        cmd[0] = cmd_path
     return subprocess.check_call(cmd, **kwargs)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyter_packaging-0.10.3/jupyter_packaging.egg-info/PKG-INFO 
new/jupyter_packaging-0.10.6/jupyter_packaging.egg-info/PKG-INFO
--- old/jupyter_packaging-0.10.3/jupyter_packaging.egg-info/PKG-INFO    
2021-06-25 13:55:01.000000000 +0200
+++ new/jupyter_packaging-0.10.6/jupyter_packaging.egg-info/PKG-INFO    
2021-09-27 20:29:26.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jupyter-packaging
-Version: 0.10.3
+Version: 0.10.6
 Summary: Jupyter Packaging Utilities.
 Home-page: http://jupyter.org
 Author: Jupyter Development Team
@@ -131,6 +131,7 @@
 
 ## Usage Notes
 
+- This package does not work with the deprecated `python setup.py bdist_wheel` 
or `python setup.py sdist` commands, PyPA recommends using the 
[build](https://pypa-build.readthedocs.io/en/latest/index.html) package (`pip 
install build && python -m build .`).
 - We recommend using `include_package_data=True` and `MANIFEST.in` to control 
the assets included in the 
[package](https://setuptools.readthedocs.io/en/latest/userguide/datafiles.html).
 - Tools like [`check-manifest`](https://github.com/mgedmin/check-manifest) or 
[`manifix`](https://github.com/vidartf/manifix) can be used to ensure the 
desired assets are included.
 - Simple uses of `data_files` can be handled in `setup.cfg` or in `setup.py`.  
If recursive directories are needed use `get_data_files()` from this package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyter_packaging-0.10.3/tests/test_core_functions.py 
new/jupyter_packaging-0.10.6/tests/test_core_functions.py
--- old/jupyter_packaging-0.10.3/tests/test_core_functions.py   2021-03-22 
13:25:06.000000000 +0100
+++ new/jupyter_packaging-0.10.6/tests/test_core_functions.py   2021-07-06 
18:29:05.000000000 +0200
@@ -58,6 +58,19 @@
     ])
 
 
+def test_npm_builder_missing_yarn(tmp_path, mocker):
+    which = mocker.patch('jupyter_packaging.setupbase.which')
+    run = mocker.patch('jupyter_packaging.setupbase.run')
+    tmp_path.joinpath('yarn.lock').write_text('hello')
+    builder = npm_builder(path=tmp_path)
+    which.side_effect = ['', 'foo']
+    builder()
+    run.assert_has_calls([
+        call(['npm', 'install'], cwd=tmp_path),
+        call(['npm', 'run', 'build'], cwd=tmp_path)
+    ])
+
+
 def test_npm_builder_not_stale(tmp_path, mocker):
     which = mocker.patch('jupyter_packaging.setupbase.which')
     run = mocker.patch('jupyter_packaging.setupbase.run')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyter_packaging-0.10.3/tests/test_utility_functions.py 
new/jupyter_packaging-0.10.6/tests/test_utility_functions.py
--- old/jupyter_packaging-0.10.3/tests/test_utility_functions.py        
2021-05-12 11:55:27.000000000 +0200
+++ new/jupyter_packaging-0.10.6/tests/test_utility_functions.py        
2021-09-15 13:21:56.000000000 +0200
@@ -1,6 +1,7 @@
 
 from unittest.mock import patch
 import pytest
+import sys
 
 from setuptools.dist import Distribution
 from jupyter_packaging.setupbase import __file__ as path
@@ -28,7 +29,7 @@
 
 
 def test_run():
-    assert pkg.run('python --version') == 0
+    assert pkg.run(sys.executable + ' --version') == 0
 
     with pytest.raises(ValueError):
         pkg.run('foobarbaz')

Reply via email to