commit python-ana for openSUSE:Factory

2020-03-25 Thread root
Hello community,

here is the log from the commit of package python-ana for openSUSE:Factory 
checked in at 2020-03-25 23:47:31

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


Package is "python-ana"

Wed Mar 25 23:47:31 2020 rev:5 rq:788240 version:0.06

Changes:

--- /work/SRC/openSUSE:Factory/python-ana/python-ana.changes2019-06-12 
13:15:50.744719375 +0200
+++ /work/SRC/openSUSE:Factory/.python-ana.new.3160/python-ana.changes  
2020-03-25 23:49:18.840036170 +0100
@@ -1,0 +2,6 @@
+Wed Mar 25 13:44:05 UTC 2020 - Paolo Stivanin 
+
+- Add use_unittest.patch
+* switch to unittest as nose won't work with Python 3.9/3.10
+
+---

New:

  use_unittest.patch



Other differences:
--
++ python-ana.spec ++
--- /var/tmp/diff_new_pack.evEnpJ/_old  2020-03-25 23:49:26.120034243 +0100
+++ /var/tmp/diff_new_pack.evEnpJ/_new  2020-03-25 23:49:26.156034233 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ana
 #
-# Copyright (c) 2019 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
@@ -23,20 +23,19 @@
 Summary:The Python "ana" module
 License:BSD-2-Clause
 Group:  Development/Languages/Python
-Url:https://github.com/zardus/ana
+URL:https://github.com/zardus/ana
 Source: 
https://files.pythonhosted.org/packages/source/a/ana/ana-%{version}.tar.gz
 # https://github.com/zardus/ana/issues/13
 Source2:https://raw.githubusercontent.com/zardus/ana/master/test.py
 Source3:
https://raw.githubusercontent.com/zardus/ana/master/test_pickle.p
+# https://github.com/zardus/ana/pull/14
+Patch0: use_unittest.patch
 BuildRequires:  %{python_module future}
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-future
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -46,6 +45,7 @@
 %setup -q -n ana-%{version}
 [ -e test.py ] || cp %{SOURCE2} test.py
 [ -e test_pickle.p ] || cp %{SOURCE3} test_pickle.p
+%patch0
 
 %build
 %python_build
@@ -55,10 +55,9 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand nosetests-%{$python_bin_suffix} -v
+%python_exec -m unittest discover
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %license LICENSE
 %doc README.md
 %{python_sitelib}/*

++ test.py ++
--- /var/tmp/diff_new_pack.evEnpJ/_old  2020-03-25 23:49:26.596034117 +0100
+++ /var/tmp/diff_new_pack.evEnpJ/_new  2020-03-25 23:49:26.620034111 +0100
@@ -138,3 +138,4 @@
 test_simple()
 test_dict()
 test_dir()
+

++ use_unittest.patch ++
--- test.py.orig2020-03-25 14:52:11.172556627 +0100
+++ test.py 2020-03-25 14:41:33.347473176 +0100
@@ -1,7 +1,7 @@
 import os
 import gc
 import ana
-import nose
+import unittest
 import pickle
 
 import logging
@@ -9,8 +9,6 @@
 
 class A(ana.Storable):
 def __init__(self, n):
-nose.tools.assert_false(hasattr(self, 'n'))
-
 self.n = n
 l.debug("%s.__init__", self)
 
@@ -28,114 +26,104 @@
 def _ana_getliteral(self):
 return { 'n': self.n }
 
-def test_simple():
-ana.set_dl(ana.SimpleDataLayer())
-one = A(1)
-one.make_uuid()
-o = pickle.dumps(one)
-one_copy = pickle.loads(o)
-assert one is one_copy
-
-two = A(1)
-t = pickle.dumps(one)
-two_copy = pickle.loads(t)
-assert two_copy is not two
-
-assert pickle.load(open(os.path.join(os.path.dirname(__file__), 
'test_pickle.p'), 'rb')).n == 1337
-
-def write_a1337():
-a1337 = A(1337)
-a1337.make_uuid()
-pickle.dump(a1337, open(os.path.join(os.path.dirname(__file__), 
'test_pickle.p'), 'w'))
-
-def test_dict():
-ana.set_dl(ana.DictDataLayer())
-l.debug("Initializing 1")
-one = A(1)
-l.debug("Initializing 2")
-two = A(2)
-
-one.make_uuid()
-
-l.debug("Copying 1")
-one_p = pickle.dumps(one)
-one_copy = pickle.loads(one_p)
-l.debug("Copying 2")
-two_p = pickle.dumps(two)
-two_copy = pickle.loads(two_p)
-
-nose.tools.assert_is(one_copy, one)
-nose.tools.assert_is_not(two_copy, two)
-nose.tools.assert_equal(str(two_copy), str(two))
-
-nose.tools.assert_is(one, A.ana_load(one.ana_store()))
-nose.tools.assert_is(two, A.ana_load(two.ana_store()))
-
-two_copy2 = pickle.loads(pickle.dumps(two))
-

commit python-ana for openSUSE:Factory

2019-06-12 Thread root
Hello community,

here is the log from the commit of package python-ana for openSUSE:Factory 
checked in at 2019-06-12 13:15:47

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


Package is "python-ana"

Wed Jun 12 13:15:47 2019 rev:4 rq:708982 version:0.06

Changes:

--- /work/SRC/openSUSE:Factory/python-ana/python-ana.changes2018-12-12 
17:24:49.415156073 +0100
+++ /work/SRC/openSUSE:Factory/.python-ana.new.4811/python-ana.changes  
2019-06-12 13:15:50.744719375 +0200
@@ -1,0 +2,24 @@
+Mon Jun 10 14:19:34 UTC 2019 - Andreas Färber 
+
+- Update to v0.06
+* LICENSE and README.md files are now included in the tarball
+* Repo URL is deprecated but no new one known (gh#zardus/ana#13)
+- Don't overwrite tarball files with local copies
+
+---
+Thu Jun  6 12:58:58 UTC 2019 - pgaj...@suse.com
+
+- revert to previous behaviour: in case LICENSE, test.py or
+  test_pickle.p are shipped in future upstream version, do not
+  abort build (but also do not overwrite them)
+
+---
+Thu Jun  6 07:33:30 UTC 2019 - pgaj...@suse.com
+
+- run tests
+- added sources
+  https://github.com/zardus/ana/issues/13
+  + test.py
+  + test_pickle.p
+
+---

Old:

  LICENSE
  ana-0.05.tar.gz

New:

  ana-0.06.tar.gz
  test.py
  test_pickle.p



Other differences:
--
++ python-ana.spec ++
--- /var/tmp/diff_new_pack.cApDJB/_old  2019-06-12 13:15:52.312717731 +0200
+++ /var/tmp/diff_new_pack.cApDJB/_new  2019-06-12 13:15:52.352717689 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ana
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -18,15 +18,18 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-ana
-Version:0.05
+Version:0.06
 Release:0
 Summary:The Python "ana" module
 License:BSD-2-Clause
 Group:  Development/Languages/Python
 Url:https://github.com/zardus/ana
 Source: 
https://files.pythonhosted.org/packages/source/a/ana/ana-%{version}.tar.gz
-Source1:https://github.com/zardus/ana/raw/master/LICENSE
+# https://github.com/zardus/ana/issues/13
+Source2:https://raw.githubusercontent.com/zardus/ana/master/test.py
+Source3:
https://raw.githubusercontent.com/zardus/ana/master/test_pickle.p
 BuildRequires:  %{python_module future}
+BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -41,7 +44,8 @@
 
 %prep
 %setup -q -n ana-%{version}
-[ -e LICENSE ] || cp %{SOURCE1} LICENSE
+[ -e test.py ] || cp %{SOURCE2} test.py
+[ -e test_pickle.p ] || cp %{SOURCE3} test_pickle.p
 
 %build
 %python_build
@@ -50,9 +54,13 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+%python_expand nosetests-%{$python_bin_suffix} -v
+
 %files %{python_files}
 %defattr(-,root,root,-)
 %license LICENSE
+%doc README.md
 %{python_sitelib}/*
 
 %changelog

++ ana-0.05.tar.gz -> ana-0.06.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ana-0.05/LICENSE new/ana-0.06/LICENSE
--- old/ana-0.05/LICENSE1970-01-01 01:00:00.0 +0100
+++ new/ana-0.06/LICENSE2018-05-31 09:48:43.0 +0200
@@ -0,0 +1,24 @@
+Copyright (c) 2015, The Regents of the University of California
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT 

commit python-ana for openSUSE:Factory

2018-12-12 Thread root
Hello community,

here is the log from the commit of package python-ana for openSUSE:Factory 
checked in at 2018-12-12 17:24:47

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


Package is "python-ana"

Wed Dec 12 17:24:47 2018 rev:3 rq:653909 version:0.05

Changes:

--- /work/SRC/openSUSE:Factory/python-ana/python-ana.changes2018-04-19 
15:30:31.096522996 +0200
+++ /work/SRC/openSUSE:Factory/.python-ana.new.28833/python-ana.changes 
2018-12-12 17:24:49.415156073 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:45:32 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-ana.spec ++
--- /var/tmp/diff_new_pack.MBF8Ko/_old  2018-12-12 17:24:49.887155471 +0100
+++ /var/tmp/diff_new_pack.MBF8Ko/_new  2018-12-12 17:24:49.891155465 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -26,7 +26,6 @@
 Url:https://github.com/zardus/ana
 Source: 
https://files.pythonhosted.org/packages/source/a/ana/ana-%{version}.tar.gz
 Source1:https://github.com/zardus/ana/raw/master/LICENSE
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module future}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes




commit python-ana for openSUSE:Factory

2018-04-19 Thread root
Hello community,

here is the log from the commit of package python-ana for openSUSE:Factory 
checked in at 2018-04-19 15:30:20

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


Package is "python-ana"

Thu Apr 19 15:30:20 2018 rev:2 rq:597451 version:0.05

Changes:

--- /work/SRC/openSUSE:Factory/python-ana/python-ana.changes2018-04-16 
12:50:25.621973927 +0200
+++ /work/SRC/openSUSE:Factory/.python-ana.new/python-ana.changes   
2018-04-19 15:30:31.096522996 +0200
@@ -1,0 +2,5 @@
+Tue Apr 17 11:33:47 UTC 2018 - jeng...@inai.de
+
+- Update descriptions
+
+---



Other differences:
--
++ python-ana.spec ++
--- /var/tmp/diff_new_pack.MrDM1P/_old  2018-04-19 15:30:31.996486070 +0200
+++ /var/tmp/diff_new_pack.MrDM1P/_new  2018-04-19 15:30:32.000485906 +0200
@@ -13,21 +13,22 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-ana
 Version:0.05
 Release:0
+Summary:The Python "ana" module
 License:BSD-2-Clause
-Summary:ANA
-Url:https://github.com/zardus/ana
 Group:  Development/Languages/Python
+Url:https://github.com/zardus/ana
 Source: 
https://files.pythonhosted.org/packages/source/a/ana/ana-%{version}.tar.gz
 Source1:https://github.com/zardus/ana/raw/master/LICENSE
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module future}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-future
@@ -37,7 +38,7 @@
 %python_subpackages
 
 %description
-ANA provides a place for objects to live out their lives and be distributed to 
other python instances.
+A Python module that provides an undocumented data layer for Python objects.
 
 %prep
 %setup -q -n ana-%{version}