commit python-importlab for openSUSE:Factory

2020-05-26 Thread root
Hello community,

here is the log from the commit of package python-importlab for 
openSUSE:Factory checked in at 2020-05-26 17:49:21

Comparing /work/SRC/openSUSE:Factory/python-importlab (Old)
 and  /work/SRC/openSUSE:Factory/.python-importlab.new.2738 (New)


Package is "python-importlab"

Tue May 26 17:49:21 2020 rev:4 rq:808786 version:0.5.1

Changes:

--- /work/SRC/openSUSE:Factory/python-importlab/python-importlab.changes
2020-01-07 23:54:30.076067059 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-importlab.new.2738/python-importlab.changes  
2020-05-26 17:49:23.891890784 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:26 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-importlab.spec ++
--- /var/tmp/diff_new_pack.2nWhx4/_old  2020-05-26 17:49:25.151893546 +0200
+++ /var/tmp/diff_new_pack.2nWhx4/_new  2020-05-26 17:49:25.151893546 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-importlab
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
 BuildRequires:  python-rpm-macros
 Requires:   python-networkx
 Requires:   python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 # SECTION test requirements
 BuildRequires:  %{python_module networkx}
@@ -49,12 +51,19 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/importlab
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%post
+%python_install_alternative importlab
+
+%postun
+%python_uninstall_alternative importlab
+
 %files %{python_files}
 %doc CHANGELOG README.rst
 %license LICENSE
-%python3_only %{_bindir}/importlab
+%python_alternative %{_bindir}/importlab
 %{python_sitelib}/*
 
 %changelog




commit python-importlab for openSUSE:Factory

2020-01-07 Thread root
Hello community,

here is the log from the commit of package python-importlab for 
openSUSE:Factory checked in at 2020-01-07 23:54:10

Comparing /work/SRC/openSUSE:Factory/python-importlab (Old)
 and  /work/SRC/openSUSE:Factory/.python-importlab.new.6675 (New)


Package is "python-importlab"

Tue Jan  7 23:54:10 2020 rev:3 rq:761196 version:0.5.1

Changes:

--- /work/SRC/openSUSE:Factory/python-importlab/python-importlab.changes
2019-09-13 14:59:53.773281247 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-importlab.new.6675/python-importlab.changes  
2020-01-07 23:54:30.076067059 +0100
@@ -1,0 +2,5 @@
+Mon Jan  6 15:18:28 UTC 2020 - Todd R 
+
+- Drop python2 package due to dependencies dropping python2.
+
+---



Other differences:
--
++ python-importlab.spec ++
--- /var/tmp/diff_new_pack.gKziIZ/_old  2020-01-07 23:54:33.096068627 +0100
+++ /var/tmp/diff_new_pack.gKziIZ/_new  2020-01-07 23:54:33.132068646 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-importlab
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:   python-importlab
 Version:0.5.1
 Release:0




commit python-importlab for openSUSE:Factory

2019-09-13 Thread root
Hello community,

here is the log from the commit of package python-importlab for 
openSUSE:Factory checked in at 2019-09-13 14:59:52

Comparing /work/SRC/openSUSE:Factory/python-importlab (Old)
 and  /work/SRC/openSUSE:Factory/.python-importlab.new.7948 (New)


Package is "python-importlab"

Fri Sep 13 14:59:52 2019 rev:2 rq:730195 version:0.5.1

Changes:

--- /work/SRC/openSUSE:Factory/python-importlab/python-importlab.changes
2019-03-04 09:21:38.984587220 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-importlab.new.7948/python-importlab.changes  
2019-09-13 14:59:53.773281247 +0200
@@ -1,0 +2,6 @@
+Wed Sep 11 14:58:59 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.5.1:
+  * FIX: Correct a broken import
+
+---

Old:

  importlab-0.5.tar.gz

New:

  importlab-0.5.1.tar.gz



Other differences:
--
++ python-importlab.spec ++
--- /var/tmp/diff_new_pack.MnKExf/_old  2019-09-13 14:59:54.189281265 +0200
+++ /var/tmp/diff_new_pack.MnKExf/_new  2019-09-13 14:59:54.189281265 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-importlab
-Version:0.5
+Version:0.5.1
 Release:0
 Summary:A library to calculate python dependency graphs
 License:Apache-2.0

++ importlab-0.5.tar.gz -> importlab-0.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlab-0.5/CHANGELOG new/importlab-0.5.1/CHANGELOG
--- old/importlab-0.5/CHANGELOG 2018-12-26 23:11:35.0 +0100
+++ new/importlab-0.5.1/CHANGELOG   2019-05-24 20:29:51.0 +0200
@@ -1,3 +1,6 @@
+Version 0.5.1 (2019-05-24)
+* FIX: Correct a broken import
+
 Version 0.5 (2018-12-26)
 * Support `from . import Symbol` style of relative imports
 * Set the default target Python version to the host version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlab-0.5/PKG-INFO new/importlab-0.5.1/PKG-INFO
--- old/importlab-0.5/PKG-INFO  2019-01-07 13:27:20.0 +0100
+++ new/importlab-0.5.1/PKG-INFO2019-05-24 20:47:35.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: importlab
-Version: 0.5
+Version: 0.5.1
 Summary: A library to calculate python dependency graphs.
 Home-page: https://github.com/google/importlab
 Maintainer: Google Inc.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlab-0.5/importlab/import_finder.py 
new/importlab-0.5.1/importlab/import_finder.py
--- old/importlab-0.5/importlab/import_finder.py2018-12-26 
19:43:06.0 +0100
+++ new/importlab-0.5.1/importlab/import_finder.py  2019-05-24 
20:29:51.0 +0200
@@ -12,7 +12,21 @@
 # Pytype doesn't recognize the `major` attribute:
 # https://github.com/google/pytype/issues/127.
 if sys.version_info[0] >= 3:
-import importlib
+# Note that `import importlib` does not work: accessing `importlib.util`
+# will give an attribute error. This is hard to reproduce in a unit test 
but
+# can be seen by install importlab in a Python 3 environment and running
+# `importlab --tree --trim` on a file that imports one of:
+#   * jsonschema (`pip install jsonschema`)
+#   * pytype (`pip install pytype`),
+#   * dotenv (`pip install python-dotenv`)
+#   * IPython (`pip install ipython`)
+# A correct output will look like:
+#   Reading 1 files
+#   Source tree:
+#   + foo.py
+#   :: jsonschema/__init__.py
+# An incorrect output will be missing the line with the import.
+import importlib.util
 else:
 import imp
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlab-0.5/importlab.egg-info/PKG-INFO 
new/importlab-0.5.1/importlab.egg-info/PKG-INFO
--- old/importlab-0.5/importlab.egg-info/PKG-INFO   2019-01-07 
13:27:20.0 +0100
+++ new/importlab-0.5.1/importlab.egg-info/PKG-INFO 2019-05-24 
20:47:35.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: importlab
-Version: 0.5
+Version: 0.5.1
 Summary: A library to calculate python dependency graphs.
 Home-page: https://github.com/google/importlab
 Maintainer: Google Inc.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlab-0.5/setup.py new/importlab-0.5.1/setup.py
--- old/importlab-0.5/setup.py  2018-12-26 23:11:47.0 +0100
+++ new/importlab-0.5.1/setup.py2019-05-24 20:29:51.0 +0200
@@ -13,7 +13,7 @@
 EMAIL = 'pytype-...@google.com'
 AUTHOR = 'Google Inc.'
 REQUIRES_PYTHON = '>=2.7.0'
-VERSION = '0.5'
+VERSION = '0.5.1'
 
 

commit python-importlab for openSUSE:Factory

2019-03-04 Thread root
Hello community,

here is the log from the commit of package python-importlab for 
openSUSE:Factory checked in at 2019-03-04 09:21:38

Comparing /work/SRC/openSUSE:Factory/python-importlab (Old)
 and  /work/SRC/openSUSE:Factory/.python-importlab.new.28833 (New)


Package is "python-importlab"

Mon Mar  4 09:21:38 2019 rev:1 rq:679749 version:0.5

Changes:

New Changes file:

--- /dev/null   2018-10-29 14:05:42.522318975 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-importlab.new.28833/python-importlab.changes 
2019-03-04 09:21:38.984587220 +0100
@@ -0,0 +1,4 @@
+---
+Wed Feb 27 06:35:15 AM UTC 2019 - John Vandenberg 
+
+- Initial spec for v0.5

New:

  importlab-0.5.tar.gz
  python-importlab.changes
  python-importlab.spec



Other differences:
--
++ python-importlab.spec ++
#
# spec file for package python-importlab
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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() python-%{**} python3-%{**}}
Name:   python-importlab
Version:0.5
Release:0
Summary:A library to calculate python dependency graphs
License:Apache-2.0
Group:  Development/Languages/Python
URL:https://github.com/google/importlab
Source: 
https://files.pythonhosted.org/packages/source/i/importlab/importlab-%{version}.tar.gz
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:   python-networkx
Requires:   python-six
BuildArch:  noarch
# SECTION test requirements
BuildRequires:  %{python_module networkx}
BuildRequires:  %{python_module six}
# /SECTION
%python_subpackages

%description
A library to calculate python dependency graphs.

%prep
%setup -q -n importlab-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%doc CHANGELOG README.rst
%license LICENSE
%python3_only %{_bindir}/importlab
%{python_sitelib}/*

%changelog