Hello community,

here is the log from the commit of package python-GooCalendar for 
openSUSE:Factory checked in at 2019-02-01 11:44:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-GooCalendar (Old)
 and      /work/SRC/openSUSE:Factory/.python-GooCalendar.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-GooCalendar"

Fri Feb  1 11:44:26 2019 rev:3 rq:668149 version:0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-GooCalendar/python-GooCalendar.changes    
2016-12-09 09:39:16.455552873 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-GooCalendar.new.28833/python-GooCalendar.changes
 2019-02-01 11:44:27.208613615 +0100
@@ -1,0 +2,21 @@
+Wed Jan 23 16:51:29 UTC 2019 - Todd R <[email protected]>
+
+- Disable for python3.  This doesn't work without python-goocanvas,
+  which doesn't support python3.
+
+-------------------------------------------------------------------
+Wed Jun 27 10:06:50 UTC 2018 - [email protected]
+
+- Upgrade to 0.4, where the change is that it supports python3 now.
+
+-------------------------------------------------------------------
+Mon Jun 25 14:50:29 UTC 2018 - [email protected]
+
+- Clean SPEC file
+
+-------------------------------------------------------------------
+Thu Aug 24 13:39:48 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -24,0 +46 @@
+

Old:
----
  GooCalendar-0.3.tar.gz
  _service

New:
----
  GooCalendar-0.4.tar.gz

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

Other differences:
------------------
++++++ python-GooCalendar.spec ++++++
--- /var/tmp/diff_new_pack.5EVvqy/_old  2019-02-01 11:44:28.552612235 +0100
+++ /var/tmp/diff_new_pack.5EVvqy/_new  2019-02-01 11:44:28.556612231 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-GooCalendar
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2016 Dr. Axel Braun
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,41 +17,42 @@
 #
 
 
-#
-%define mod_name GooCalendar
-
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define         skip_python3 1
 Name:           python-GooCalendar
-BuildRequires:  python-devel
-BuildRequires:  python-genshi
-BuildRequires:  python-lxml
-BuildRequires:  python-setuptools
-Version:        0.3
+Version:        0.4
 Release:        0
-Source:         
https://files.pythonhosted.org/packages/source/G/%{mod_name}/%{mod_name}-%{version}.tar.gz
-Url:            https://pypi.io/project/GooCalendar/
 Summary:        A calendar widget for GTK using PyGoocanvas
-License:        GPL-2.0
+License:        GPL-2.0-only
 Group:          Development/Languages/Python
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} > 1110
+URL:            https://goocalendar.tryton.org/
+Source:         
https://files.pythonhosted.org/packages/source/G/GooCalendar/GooCalendar-%{version}.tar.gz
+BuildRequires:  %{python_module Genshi}
+BuildRequires:  %{python_module lxml}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%endif
+Requires:       goocanvas >= 2.0
+Requires:       python-goocanvas
+%python_subpackages
 
 %description
-A calendar widget for GTK using PyGoocanvas
+A calendar widget for GTK using PyGoocanvas (Gnome widget linrary).
 
 %prep
-%setup -q -n %{mod_name}-%{version}
+%setup -q -n GooCalendar-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%_prefix --root=%buildroot 
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
-%defattr(-,root,root)
-%doc README COPYRIGHT LICENSE
+%files %{python_files}
+%license LICENSE
+%doc README COPYRIGHT
 %{python_sitelib}/*
 
 %changelog

++++++ GooCalendar-0.3.tar.gz -> GooCalendar-0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/.hgtags new/GooCalendar-0.4/.hgtags
--- old/GooCalendar-0.3/.hgtags 1970-01-01 01:00:00.000000000 +0100
+++ new/GooCalendar-0.4/.hgtags 2018-06-26 10:39:40.000000000 +0200
@@ -0,0 +1,4 @@
+cdb64952c702cd474b4fd28dd4e12aab2a973448 0.1
+d30305cc7226e493679ad7b53f959bf882f4c9ca 0.2
+27cc16bf82003592e0dbca15f829596b0aef9a12 0.3
+66ceeaa15674495de2792c790c2ee4eacf32a341 0.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/CHANGELOG 
new/GooCalendar-0.4/CHANGELOG
--- old/GooCalendar-0.3/CHANGELOG       2016-11-28 15:41:27.000000000 +0100
+++ new/GooCalendar-0.4/CHANGELOG       2018-06-26 10:38:41.000000000 +0200
@@ -1,3 +1,6 @@
+Version 0.4 - 2018-06-26
+* Add support for Python 3
+
 Version 0.3 - 2016-11-28
 * Add support for goocanvas >= 2.0
 * Add colors and font-desc properties to Calendar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/GooCalendar.egg-info/PKG-INFO 
new/GooCalendar-0.4/GooCalendar.egg-info/PKG-INFO
--- old/GooCalendar-0.3/GooCalendar.egg-info/PKG-INFO   2016-11-28 
15:42:39.000000000 +0100
+++ new/GooCalendar-0.4/GooCalendar.egg-info/PKG-INFO   2018-06-26 
10:42:21.000000000 +0200
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: GooCalendar
-Version: 0.3
+Version: 0.4
 Summary: A calendar widget for GTK using PyGoocanvas
 Home-page: https://goocalendar.tryton.org/
 Author: Cédric Krier
 Author-email: [email protected]
 License: GPL-2
+Description-Content-Type: UNKNOWN
 Description: GooCalendar
         ===========
         
@@ -31,6 +32,9 @@
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
 Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2 :: Only
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Widget Sets
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/GooCalendar.egg-info/SOURCES.txt 
new/GooCalendar-0.4/GooCalendar.egg-info/SOURCES.txt
--- old/GooCalendar-0.3/GooCalendar.egg-info/SOURCES.txt        2016-11-28 
15:42:39.000000000 +0100
+++ new/GooCalendar-0.4/GooCalendar.egg-info/SOURCES.txt        2018-06-26 
10:42:21.000000000 +0200
@@ -1,3 +1,4 @@
+.hgtags
 CHANGELOG
 COPYRIGHT
 INSTALL
@@ -12,6 +13,8 @@
 doc/Makefile
 doc/conf.py
 doc/index.rst
+examples/simple.py
+examples/simple3.py
 goocalendar/__init__.py
 goocalendar/_calendar.py
 goocalendar/_event.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/PKG-INFO new/GooCalendar-0.4/PKG-INFO
--- old/GooCalendar-0.3/PKG-INFO        2016-11-28 15:42:42.000000000 +0100
+++ new/GooCalendar-0.4/PKG-INFO        2018-06-26 10:42:21.000000000 +0200
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: GooCalendar
-Version: 0.3
+Version: 0.4
 Summary: A calendar widget for GTK using PyGoocanvas
 Home-page: https://goocalendar.tryton.org/
 Author: Cédric Krier
 Author-email: [email protected]
 License: GPL-2
+Description-Content-Type: UNKNOWN
 Description: GooCalendar
         ===========
         
@@ -31,6 +32,9 @@
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
 Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2 :: Only
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Widget Sets
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/doc/conf.py 
new/GooCalendar-0.4/doc/conf.py
--- old/GooCalendar-0.3/doc/conf.py     2015-02-11 21:21:46.000000000 +0100
+++ new/GooCalendar-0.4/doc/conf.py     2016-11-28 15:43:21.000000000 +0100
@@ -48,7 +48,7 @@
 # The short X.Y version.
 version = '0.3'
 # The full version, including alpha/beta/rc tags.
-release = '0.3'
+release = '0.4'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/examples/simple.py 
new/GooCalendar-0.4/examples/simple.py
--- old/GooCalendar-0.3/examples/simple.py      1970-01-01 01:00:00.000000000 
+0100
+++ new/GooCalendar-0.4/examples/simple.py      2016-09-12 14:31:33.000000000 
+0200
@@ -0,0 +1,91 @@
+# This file is part of GooCalendar.  The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import datetime
+
+import gtk
+
+import goocalendar
+
+
+def on_event_pressed(calendar, event, event_store):
+    print "Event %s was pressed" % event.caption
+
+
+def on_day_selected(calendar, day):
+    print "Day %s was selected" % day
+
+
+def on_key_pressed(widget, event):
+    if (event.state & gtk.gdk.CONTROL_MASK and
+            event.keyval == gtk.gdk.keyval_from_name('l')):
+        if widget.view == 'week':
+            widget.set_view('month')
+        else:
+            widget.set_view('week')
+
+window = gtk.Window()
+event_store = goocalendar.EventStore()
+calendar = goocalendar.Calendar(event_store)
+calendar.set_has_tooltip(True)
+
+# Normal events.
+event = goocalendar.Event('Event number 1',
+    datetime.datetime(2007, 10, 8, 02),
+    datetime.datetime(2007, 10, 8, 17),
+    bg_color='lightgreen')
+event_store.add(event)
+event = goocalendar.Event('Event number 2',
+    datetime.datetime(2007, 10, 8, 12),
+    datetime.datetime(2007, 10, 8, 14),
+    bg_color='lightblue')
+event_store.add(event)
+event = goocalendar.Event('Event number 3',
+    datetime.datetime(2007, 10, 8, 15),
+    datetime.datetime(2007, 10, 8, 16, 30),
+    bg_color='lightgrey')
+event_store.add(event)
+event = goocalendar.Event('Event number 3b',
+    datetime.datetime(2007, 10, 8, 15, 30),
+    datetime.datetime(2007, 10, 8, 17, 15),
+    bg_color='lightgrey')
+event_store.add(event)
+event = goocalendar.Event('Event number 4',
+    datetime.datetime(2007, 10, 8, 17),
+    datetime.datetime(2007, 10, 8, 18),
+    bg_color='yellow')
+event_store.add(event)
+
+# A singularity event.
+event = goocalendar.Event('Singularity',
+    datetime.datetime(2007, 10, 7, 12),
+    datetime.datetime(2007, 10, 7, 12))
+event_store.add(event)
+
+# A normal multi-day event.
+event = goocalendar.Event('Long Event',
+    datetime.datetime(2007, 10, 9),
+    datetime.datetime(2007, 10, 11))
+event_store.add(event)
+
+# The following events are all-day events and displayed differently in
+# week mode.
+event = goocalendar.Event('One-day Event', datetime.datetime(2007, 10, 9))
+event_store.add(event)
+event = goocalendar.Event('Four-day Event',
+    datetime.datetime(2007, 10, 9),
+    datetime.datetime(2007, 10, 12),
+    all_day=True,
+    bg_color='navy',
+    text_color='white')
+event_store.add(event)
+
+calendar.select(datetime.date(2007, 10, 8))
+window.add(calendar)
+window.set_size_request(400, 400)
+window.show_all()
+
+window.connect('delete-event', gtk.main_quit)
+calendar.connect('event-pressed', on_event_pressed, event_store)
+calendar.connect('day-selected', on_day_selected)
+calendar.connect('key-press-event', on_key_pressed)
+gtk.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/examples/simple3.py 
new/GooCalendar-0.4/examples/simple3.py
--- old/GooCalendar-0.3/examples/simple3.py     1970-01-01 01:00:00.000000000 
+0100
+++ new/GooCalendar-0.4/examples/simple3.py     2016-09-06 16:00:20.000000000 
+0200
@@ -0,0 +1,7 @@
+# This file is part of GooCalendar.  The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import pygtkcompat
+pygtkcompat.enable()
+pygtkcompat.enable_gtk(version='3.0')
+pygtkcompat.enable_goocanvas()
+import simple
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/goocalendar/__init__.py 
new/GooCalendar-0.4/goocalendar/__init__.py
--- old/GooCalendar-0.3/goocalendar/__init__.py 2016-09-09 16:33:47.000000000 
+0200
+++ new/GooCalendar-0.4/goocalendar/__init__.py 2018-05-08 15:41:42.000000000 
+0200
@@ -15,4 +15,4 @@
 from ._event import Event, EventStore
 
 __all__ = ['Calendar', 'EventStore', 'Event']
-__version__ = '0.3'
+__version__ = '0.4'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/goocalendar/_calendar.py 
new/GooCalendar-0.4/goocalendar/_calendar.py
--- old/GooCalendar-0.3/goocalendar/_calendar.py        2016-09-12 
14:39:54.000000000 +0200
+++ new/GooCalendar-0.4/goocalendar/_calendar.py        2018-06-21 
23:54:53.000000000 +0200
@@ -10,8 +10,7 @@
 import goocanvas
 import pango
 
-import util
-from .util import left_click
+from . import util
 
 
 class Calendar(goocanvas.Canvas):
@@ -466,7 +465,7 @@
         end = datetime.datetime.combine(dates[-1], datetime.time()) \
             + onedaydelta
         events = self._event_store.get_events(start, end)
-        events.sort(util.event_days, reverse=True)
+        events.sort(key=util.event_days, reverse=True)
 
         # Draw all-day events, longest event first.
         max_y = self._selected_day.line_height
@@ -666,7 +665,7 @@
         elif event.keyval == gtk.gdk.keyval_from_name('Right'):
             self.select(date + datetime.timedelta(1))
 
-    @left_click
+    @util.left_click
     def on_day_item_button_press_event(self, day, widget2, event):
         self.emit('day-pressed', day.date)
         self.select(day.date)
@@ -723,7 +722,7 @@
             day_no = int((x - offset_x) / self._day_width)
         return cur_week[day_no]
 
-    @left_click
+    @util.left_click
     def on_event_item_button_press_event(self, event_item, rect, event):
 
         # Drag and drop starting coordinates
@@ -893,6 +892,7 @@
             event_item.update()
             self._drag_height -= pxdelta
 
+
 gobject.signal_new('event-pressed',
     Calendar,
     gobject.SIGNAL_RUN_FIRST,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/goocalendar/_event.py 
new/GooCalendar-0.4/goocalendar/_event.py
--- old/GooCalendar-0.3/goocalendar/_event.py   2016-08-15 00:35:39.000000000 
+0200
+++ new/GooCalendar-0.4/goocalendar/_event.py   2018-06-01 14:08:56.000000000 
+0200
@@ -2,11 +2,10 @@
 # this repository contains the full copyright notices and license terms.
 import gobject
 
-import util
-from .util import total_ordering
+from . import util
 
 
-@total_ordering
[email protected]_ordering
 class Event(object):
     """
     This class represents an event that can be displayed in the calendar.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/goocalendar/util.py 
new/GooCalendar-0.4/goocalendar/util.py
--- old/GooCalendar-0.3/goocalendar/util.py     2016-09-12 12:39:50.000000000 
+0200
+++ new/GooCalendar-0.4/goocalendar/util.py     2018-06-01 14:11:04.000000000 
+0200
@@ -79,11 +79,9 @@
     return delta
 
 
-def event_days(event1, event2):
-    end1 = event1.end if event1.end else event1.start
-    end2 = event2.end if event2.end else event2.start
-    return (time_delta(event1.start, end1).days
-         - time_delta(event2.start, end2).days)
+def event_days(event):
+    end = event.end if event.end else event.start
+    return time_delta(event.start, end).days
 
 
 def event_intersects(event, start, end=None):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/setup.cfg 
new/GooCalendar-0.4/setup.cfg
--- old/GooCalendar-0.3/setup.cfg       2016-11-28 15:42:42.000000000 +0100
+++ new/GooCalendar-0.4/setup.cfg       2018-06-26 10:42:21.000000000 +0200
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/GooCalendar-0.3/setup.py new/GooCalendar-0.4/setup.py
--- old/GooCalendar-0.3/setup.py        2015-05-12 07:55:03.000000000 +0200
+++ new/GooCalendar-0.4/setup.py        2018-06-01 14:14:37.000000000 +0200
@@ -3,15 +3,19 @@
 # This file is part of GooCalendar.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 
+import io
 import os
 from setuptools import setup, find_packages
 
 
 def read(fname):
-    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+    return io.open(
+        os.path.join(os.path.dirname(__file__), fname),
+        'r', encoding='utf-8').read()
+
 
 setup(name='GooCalendar',
-    version='0.3',
+    version='0.4',
     author='Cédric Krier',
     author_email='[email protected]',
     url='https://goocalendar.tryton.org/',
@@ -24,7 +28,10 @@
         'Intended Audience :: Developers',
         'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
         'Operating System :: OS Independent',
-        'Programming Language :: Python :: 2 :: Only',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
         'Topic :: Software Development :: Libraries :: Python Modules',
         'Topic :: Software Development :: Widget Sets',
         ],


Reply via email to