Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyinstaller-hooks-contrib for
openSUSE:Factory checked in at 2022-12-15 19:24:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyinstaller-hooks-contrib (Old)
and /work/SRC/openSUSE:Factory/.python-pyinstaller-hooks-contrib.new.1835
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyinstaller-hooks-contrib"
Thu Dec 15 19:24:53 2022 rev:4 rq:1042875 version:2022.14
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pyinstaller-hooks-contrib/python-pyinstaller-hooks-contrib.changes
2022-12-06 14:22:55.185423321 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyinstaller-hooks-contrib.new.1835/python-pyinstaller-hooks-contrib.changes
2022-12-15 19:25:04.536012064 +0100
@@ -1,0 +2,11 @@
+Tue Dec 13 16:33:02 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to version 2022.14
+ Add hook for cf_units. (#521)
+ Add hook for cftime. (#521)
+ Add hook for compliance_checker. (#521)
+ Updated hooks
+ Update netCDF4 hook for compatibility with v1.4.0 and later, where
netcdftime has been renamed to cftime. (#521)
+ Update pydantic hook to include dotenv optional dependency. (#524)
+
+-------------------------------------------------------------------
Old:
----
pyinstaller-hooks-contrib-2022.13.tar.gz
New:
----
pyinstaller-hooks-contrib-2022.14.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyinstaller-hooks-contrib.spec ++++++
--- /var/tmp/diff_new_pack.0sJPPI/_old 2022-12-15 19:25:06.248021804 +0100
+++ /var/tmp/diff_new_pack.0sJPPI/_new 2022-12-15 19:25:06.256021850 +0100
@@ -26,7 +26,7 @@
%bcond_with test
%endif
Name: python-pyinstaller-hooks-contrib%{psuffix}
-Version: 2022.13
+Version: 2022.14
Release: 0
Summary: Community maintained hooks for PyInstaller
License: Apache-2.0 OR GPL-2.0-only
++++++ pyinstaller-hooks-contrib-2022.13.tar.gz ->
pyinstaller-hooks-contrib-2022.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyinstaller-hooks-contrib-2022.13/PKG-INFO
new/pyinstaller-hooks-contrib-2022.14/PKG-INFO
--- old/pyinstaller-hooks-contrib-2022.13/PKG-INFO 2022-11-08
16:03:44.886386000 +0100
+++ new/pyinstaller-hooks-contrib-2022.14/PKG-INFO 2022-12-04
16:12:11.688008500 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyinstaller-hooks-contrib
-Version: 2022.13
+Version: 2022.14
Summary: Community maintained hooks for PyInstaller
Home-page: https://github.com/pyinstaller/pyinstaller-hooks-contrib
Download-URL: https://pypi.org/project/pyinstaller-hooks-contrib
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/__init__.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/__init__.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/__init__.py
2022-11-08 16:03:35.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/__init__.py
2022-12-04 16:12:01.000000000 +0100
@@ -10,6 +10,6 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------
-__version__ = '2022.13'
+__version__ = '2022.14'
__maintainer__ = 'Legorooj, bwoodsend'
__uri__ = 'https://github.com/pyinstaller/pyinstaller-hooks-contrib'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cf_units.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cf_units.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cf_units.py
1970-01-01 01:00:00.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cf_units.py
2022-12-04 16:12:01.000000000 +0100
@@ -0,0 +1,16 @@
+# ------------------------------------------------------------------
+# Copyright (c) 2022 PyInstaller Development Team.
+#
+# This file is distributed under the terms of the GNU General Public
+# License (version 2.0 or later).
+#
+# The full license is available in LICENSE.GPL.txt, distributed with
+# this software.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+# ------------------------------------------------------------------
+
+from PyInstaller.utils.hooks import collect_data_files
+
+# Include data files from cf_units/etc sub-directory.
+datas = collect_data_files('cf_units', includes=['etc/**'])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cftime.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cftime.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cftime.py
1970-01-01 01:00:00.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cftime.py
2022-12-04 16:12:01.000000000 +0100
@@ -0,0 +1,21 @@
+# ------------------------------------------------------------------
+# Copyright (c) 2022 PyInstaller Development Team.
+#
+# This file is distributed under the terms of the GNU General Public
+# License (version 2.0 or later).
+#
+# The full license is available in LICENSE.GPL.txt, distributed with
+# this software.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+# ------------------------------------------------------------------
+
+# The cftime._cftime is a cython exension with following hidden imports:
+hiddenimports = [
+ 're',
+ 'time',
+ 'datetime',
+ 'warnings',
+ 'numpy',
+ 'cftime._strptime',
+]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-compliance_checker.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-compliance_checker.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-compliance_checker.py
1970-01-01 01:00:00.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-compliance_checker.py
2022-12-04 16:12:01.000000000 +0100
@@ -0,0 +1,22 @@
+# ------------------------------------------------------------------
+# Copyright (c) 2022 PyInstaller Development Team.
+#
+# This file is distributed under the terms of the GNU General Public
+# License (version 2.0 or later).
+#
+# The full license is available in LICENSE.GPL.txt, distributed with
+# this software.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+# ------------------------------------------------------------------
+
+from PyInstaller.utils.hooks import collect_submodules, copy_metadata,
collect_data_files
+
+# Collect submodules to ensure that checker plugins are collected. but avoid
collecting tests sub-package.
+hiddenimports = collect_submodules('compliance_checker', filter=lambda name:
name != 'compliance_checker.tests')
+
+# Copy metadata, because checker plugins are discovered via entry-points
+datas = copy_metadata('compliance_checker')
+
+# Include data files from compliance_checker/data sub-directory.
+datas += collect_data_files('compliance_checker', includes=['data/**'])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-netCDF4.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-netCDF4.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-netCDF4.py
2022-11-08 16:03:35.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-netCDF4.py
2022-12-04 16:12:01.000000000 +0100
@@ -10,6 +10,13 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------
+from PyInstaller.utils.hooks import is_module_satisfies
# netCDF4 (tested with v.1.1.9) has some hidden imports
-hiddenimports = ['netCDF4.utils', 'netcdftime']
+hiddenimports = ['netCDF4.utils']
+
+# Around netCDF4 1.4.0, netcdftime changed name to cftime
+if is_module_satisfies("netCDF4 < 1.4.0"):
+ hiddenimports += ['netcdftime']
+else:
+ hiddenimports += ['cftime']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pydantic.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pydantic.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pydantic.py
2022-11-08 16:03:35.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pydantic.py
2022-12-04 16:12:01.000000000 +0100
@@ -33,6 +33,8 @@
'ipaddress',
'pathlib',
'uuid',
+ # Optional dependencies.
+ 'dotenv',
]
# Older releases (prior 1.4) also import distutils.version
if not is_module_satisfies('pydantic >= 1.4'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/tests/test_libraries.py
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/tests/test_libraries.py
---
old/pyinstaller-hooks-contrib-2022.13/src/_pyinstaller_hooks_contrib/tests/test_libraries.py
2022-11-08 16:03:35.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/_pyinstaller_hooks_contrib/tests/test_libraries.py
2022-12-04 16:12:01.000000000 +0100
@@ -16,7 +16,7 @@
import pytest
from PyInstaller.compat import is_darwin, is_linux, is_py39, is_win
-from PyInstaller.utils.hooks import is_module_satisfies, can_import_module
+from PyInstaller.utils.hooks import is_module_satisfies, can_import_module,
get_module_attribute
from PyInstaller.utils.tests import importorskip, requires, xfail
@@ -1410,3 +1410,60 @@
pyi_builder.test_source("""
import exchangelib
""")
+
+
+@importorskip('cftime')
+def test_cftime(pyi_builder):
+ pyi_builder.test_source("""
+ import cftime
+ """)
+
+
+@importorskip('netCDF4')
+def test_netcdf4(pyi_builder):
+ pyi_builder.test_source("""
+ import netCDF4
+ """)
+
+
+@importorskip('cf_units')
+def test_cf_units(pyi_builder):
+ pyi_builder.test_source("""
+ import cf_units
+ """)
+
+
+@importorskip('compliance_checker')
+def test_compliance_checker(pyi_builder):
+ # The test file - taken from the package's own test data/examples. Use an
.nc file instead of .cdl one, because
+ # loading the latter requires ncgen utility to be available on the system.
+ pkg_path = get_module_attribute('compliance_checker', '__path__')[0]
+ input_file = Path(pkg_path) / 'tests/data/trajectory.nc'
+ assert input_file.is_file(), f"Selected test file, {input_file!s} does not
exist! Fix the test!"
+
+ pyi_builder.test_source("""
+ import os
+ import json
+
+ import compliance_checker
+ import compliance_checker.runner
+
+ input_file = sys.argv[1]
+
+ # Load all available checker classes
+ check_suite = compliance_checker.runner.CheckSuite()
+ check_suite.load_all_available_checkers()
+
+ # Run cf and adcc checks
+ return_value, errors =
compliance_checker.runner.ComplianceChecker.run_checker(
+ input_file,
+ checker_names=['cf', 'acdd'],
+ verbose=False,
+ criteria='normal',
+ output_filename='-',
+ output_format='json')
+
+ # We do not really care about validation results, just that validation
finished without raising any exceptions.
+ print("Return value:", return_value)
+ print("Errors occurred:", errors)
+ """, app_args=[str(input_file)])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/pyinstaller_hooks_contrib.egg-info/PKG-INFO
new/pyinstaller-hooks-contrib-2022.14/src/pyinstaller_hooks_contrib.egg-info/PKG-INFO
---
old/pyinstaller-hooks-contrib-2022.13/src/pyinstaller_hooks_contrib.egg-info/PKG-INFO
2022-11-08 16:03:44.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/pyinstaller_hooks_contrib.egg-info/PKG-INFO
2022-12-04 16:12:11.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyinstaller-hooks-contrib
-Version: 2022.13
+Version: 2022.14
Summary: Community maintained hooks for PyInstaller
Home-page: https://github.com/pyinstaller/pyinstaller-hooks-contrib
Download-URL: https://pypi.org/project/pyinstaller-hooks-contrib
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyinstaller-hooks-contrib-2022.13/src/pyinstaller_hooks_contrib.egg-info/SOURCES.txt
new/pyinstaller-hooks-contrib-2022.14/src/pyinstaller_hooks_contrib.egg-info/SOURCES.txt
---
old/pyinstaller-hooks-contrib-2022.13/src/pyinstaller_hooks_contrib.egg-info/SOURCES.txt
2022-11-08 16:03:44.000000000 +0100
+++
new/pyinstaller-hooks-contrib-2022.14/src/pyinstaller_hooks_contrib.egg-info/SOURCES.txt
2022-12-04 16:12:11.000000000 +0100
@@ -67,9 +67,12 @@
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cairosvg.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cassandra.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-certifi.py
+src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cf_units.py
+src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cftime.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cloudscraper.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-clr.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-clr_loader.py
+src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-compliance_checker.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-countrycode.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-countryinfo.py
src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cryptography.py