Hello community,
here is the log from the commit of package python-icalendar for
openSUSE:Factory checked in at 2018-11-26 10:26:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-icalendar (Old)
and /work/SRC/openSUSE:Factory/.python-icalendar.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-icalendar"
Mon Nov 26 10:26:39 2018 rev:23 rq:651058 version:4.0.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-icalendar/python-icalendar.changes
2018-08-31 10:45:33.119282473 +0200
+++
/work/SRC/openSUSE:Factory/.python-icalendar.new.19453/python-icalendar.changes
2018-11-26 10:28:22.545163848 +0100
@@ -1,0 +2,8 @@
+Thu Nov 22 10:28:12 UTC 2018 - Karol Babioch <[email protected]>
+
+- Version update to 4.0.3
+ * Categories are comma separated not 1 per line #265.
+ * mark test with mixed timezoneaware and naive datetimes as an expected
+ failure.
+
+-------------------------------------------------------------------
Old:
----
icalendar-4.0.2.tar.gz
New:
----
icalendar-4.0.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-icalendar.spec ++++++
--- /var/tmp/diff_new_pack.wP3F7f/_old 2018-11-26 10:28:23.013163299 +0100
+++ /var/tmp/diff_new_pack.wP3F7f/_new 2018-11-26 10:28:23.017163295 +0100
@@ -14,14 +14,14 @@
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname icalendar
Name: python-%{modname}
-Version: 4.0.2
+Version: 4.0.3
Release: 0
Summary: Python parser/generator of iCalendar files package
License: BSD-2-Clause
++++++ icalendar-4.0.2.tar.gz -> icalendar-4.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/.gitignore
new/icalendar-4.0.3/.gitignore
--- old/icalendar-4.0.2/.gitignore 2018-06-20 14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/.gitignore 1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-*.mo
-*.py?
-*.sw?
-*~
-.*
-bin/
-build/
-coverage-*
-develop-eggs/
-dist/
-docs/_build/
-eggs/
-htmlcov/
-include/
-lib/
-lib64
-parts/
-pip-selfcheck.json
-src/icalendar.egg-info/
-!.gitattributes
-!.gitignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/.travis.yml
new/icalendar-4.0.3/.travis.yml
--- old/icalendar-4.0.2/.travis.yml 2018-06-20 14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,13 +0,0 @@
-language: python
-cache: pip
-python:
- - "2.7"
- - "3.4"
- - "3.5"
- - "3.6"
- - "pypy"
- - "pypy3"
-install:
- - pip install tox
-script:
- - tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/CHANGES.rst
new/icalendar-4.0.3/CHANGES.rst
--- old/icalendar-4.0.2/CHANGES.rst 2018-06-20 14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/CHANGES.rst 2018-10-10 09:41:19.000000000 +0200
@@ -1,6 +1,15 @@
Changelog
=========
+4.0.3 (2018-10-10)
+------------------
+
+Bug fixes:
+
+- Categories are comma separated not 1 per line #265. [cleder]
+- mark test with mixed timezoneaware and naive datetimes as an expected
failure. [cleder]
+
+
4.0.2 (2018-06-20)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/PKG-INFO new/icalendar-4.0.3/PKG-INFO
--- old/icalendar-4.0.2/PKG-INFO 2018-06-20 14:52:56.000000000 +0200
+++ new/icalendar-4.0.3/PKG-INFO 2018-10-10 09:41:19.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: icalendar
-Version: 4.0.2
+Version: 4.0.3
Summary: iCalendar parser/generator
Home-page: https://github.com/collective/icalendar
Author: Plone Foundation
@@ -69,6 +69,15 @@
Changelog
=========
+ 4.0.3 (2018-10-10)
+ ------------------
+
+ Bug fixes:
+
+ - Categories are comma separated not 1 per line #265. [cleder]
+ - mark test with mixed timezoneaware and naive datetimes as an
expected failure. [cleder]
+
+
4.0.2 (2018-06-20)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/bootstrap.py
new/icalendar-4.0.3/bootstrap.py
--- old/icalendar-4.0.2/bootstrap.py 2018-06-20 14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/bootstrap.py 1970-01-01 01:00:00.000000000 +0100
@@ -1,178 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-Simply run this script in a directory containing a buildout.cfg.
-The script accepts buildout command-line options, so you can
-use the -c option to specify an alternate configuration file.
-"""
-
-import os
-import shutil
-import sys
-import tempfile
-
-from optparse import OptionParser
-
-tmpeggs = tempfile.mkdtemp()
-
-usage = '''\
-[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options]
-
-Bootstraps a buildout-based project.
-
-Simply run this script in a directory containing a buildout.cfg, using the
-Python that you want bin/buildout to use.
-
-Note that by using --find-links to point to local resources, you can keep
-this script from going over the network.
-'''
-
-parser = OptionParser(usage=usage)
-parser.add_option("-v", "--version", help="use a specific zc.buildout version")
-
-parser.add_option("-t", "--accept-buildout-test-releases",
- dest='accept_buildout_test_releases',
- action="store_true", default=False,
- help=("Normally, if you do not specify a --version, the "
- "bootstrap script and buildout gets the newest "
- "*final* versions of zc.buildout and its recipes and "
- "extensions for you. If you use this flag, "
- "bootstrap and buildout will get the newest releases "
- "even if they are alphas or betas."))
-parser.add_option("-c", "--config-file",
- help=("Specify the path to the buildout configuration "
- "file to be used."))
-parser.add_option("-f", "--find-links",
- help=("Specify a URL to search for buildout releases"))
-parser.add_option("--allow-site-packages",
- action="store_true", default=False,
- help=("Let bootstrap.py use existing site packages"))
-
-
-options, args = parser.parse_args()
-
-######################################################################
-# load/install setuptools
-
-try:
- if options.allow_site_packages:
- import setuptools
- import pkg_resources
- from urllib.request import urlopen
-except ImportError:
- from urllib2 import urlopen
-
-ez = {}
-exec(urlopen('https://bootstrap.pypa.io/ez_setup.py').read(), ez)
-
-if not options.allow_site_packages:
- # ez_setup imports site, which adds site packages
- # this will remove them from the path to ensure that incompatible versions
- # of setuptools are not in the path
- import site
- # inside a virtualenv, there is no 'getsitepackages'.
- # We can't remove these reliably
- if hasattr(site, 'getsitepackages'):
- for sitepackage_path in site.getsitepackages():
- sys.path[:] = [x for x in sys.path if sitepackage_path not in x]
-
-setup_args = {'to_dir': tmpeggs, 'download_delay': 0}
-ez['use_setuptools'](**setup_args)
-import setuptools
-import pkg_resources
-
-# This does not (always?) update the default working set. We will
-# do it.
-for path in sys.path:
- if path not in pkg_resources.working_set.entries:
- pkg_resources.working_set.add_entry(path)
-
-######################################################################
-# Install buildout
-
-ws = pkg_resources.working_set
-
-cmd = [sys.executable, '-c',
- 'from setuptools.command.easy_install import main; main()',
- '-mZqNxd', tmpeggs]
-
-find_links = os.environ.get(
- 'bootstrap-testing-find-links',
- options.find_links or
- ('http://downloads.buildout.org/'
- if options.accept_buildout_test_releases else None)
- )
-if find_links:
- cmd.extend(['-f', find_links])
-
-setuptools_path = ws.find(
- pkg_resources.Requirement.parse('setuptools')).location
-
-requirement = 'zc.buildout'
-version = options.version
-if version is None and not options.accept_buildout_test_releases:
- # Figure out the most recent final version of zc.buildout.
- import setuptools.package_index
- _final_parts = '*final-', '*final'
-
- def _final_version(parsed_version):
- for part in parsed_version:
- if (part[:1] == '*') and (part not in _final_parts):
- return False
- return True
- index = setuptools.package_index.PackageIndex(
- search_path=[setuptools_path])
- if find_links:
- index.add_find_links((find_links,))
- req = pkg_resources.Requirement.parse(requirement)
- if index.obtain(req) is not None:
- best = []
- bestv = None
- for dist in index[req.project_name]:
- distv = dist.parsed_version
- if _final_version(distv):
- if bestv is None or distv > bestv:
- best = [dist]
- bestv = distv
- elif distv == bestv:
- best.append(dist)
- if best:
- best.sort()
- version = best[-1].version
-if version:
- requirement = '=='.join((requirement, version))
-cmd.append(requirement)
-
-import subprocess
-if subprocess.call(cmd, env=dict(os.environ, PYTHONPATH=setuptools_path)) != 0:
- raise Exception(
- "Failed to execute command:\n%s" % repr(cmd)[1:-1])
-
-######################################################################
-# Import and run buildout
-
-ws.add_entry(tmpeggs)
-ws.require(requirement)
-import zc.buildout.buildout
-
-if not [a for a in args if '=' not in a]:
- args.append('bootstrap')
-
-# if -c was provided, we push it back into args for buildout' main function
-if options.config_file is not None:
- args[0:0] = ['-c', options.config_file]
-
-zc.buildout.buildout.main(args)
-shutil.rmtree(tmpeggs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/buildout.cfg
new/icalendar-4.0.3/buildout.cfg
--- old/icalendar-4.0.2/buildout.cfg 2018-06-20 14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/buildout.cfg 1970-01-01 01:00:00.000000000 +0100
@@ -1,25 +0,0 @@
-[buildout]
-develop = .
-parts =
- test
- py
- coverage
-
-[test]
-recipe = zc.recipe.testrunner
-eggs =
- icalendar[test]
-defaults = ['--auto-color', '--auto-progress']
-
-[py]
-recipe = zc.recipe.egg
-interpreter = py
-eggs = ${test:eggs}
-
-[coverage]
-recipe = collective.recipe.template
-input = inline:
- #!/bin/sh
- ./bin/test --coverage ../../coverage -v --auto-progress "$@"
-output = ${buildout:directory}/bin/coverage
-mode = 755
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/requirements_docs.txt
new/icalendar-4.0.3/requirements_docs.txt
--- old/icalendar-4.0.2/requirements_docs.txt 2018-06-20 14:52:55.000000000
+0200
+++ new/icalendar-4.0.3/requirements_docs.txt 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-Sphinx>=1.2.3
-sphinx_rtd_theme
-.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/src/icalendar/__init__.py
new/icalendar-4.0.3/src/icalendar/__init__.py
--- old/icalendar-4.0.2/src/icalendar/__init__.py 2018-06-20
14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/src/icalendar/__init__.py 2018-10-10
09:41:19.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-__version__ = '4.0.2'
+__version__ = '4.0.3'
from icalendar.cal import (
Calendar,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/src/icalendar/cal.py
new/icalendar-4.0.3/src/icalendar/cal.py
--- old/icalendar-4.0.2/src/icalendar/cal.py 2018-06-20 14:52:55.000000000
+0200
+++ new/icalendar-4.0.3/src/icalendar/cal.py 2018-10-10 09:41:19.000000000
+0200
@@ -185,7 +185,7 @@
# encode value
if encode and isinstance(value, list) \
- and name.lower() not in ['rdate', 'exdate']:
+ and name.lower() not in ['rdate', 'exdate', 'categories']:
# Individually convert each value to an ical type except rdate and
# exdate, where lists of dates might be passed to vDDDLists.
value = [self._encode(name, v, parameters, encode) for v in value]
@@ -455,11 +455,11 @@
'CLASS', 'CREATED', 'DESCRIPTION', 'DTSTART', 'GEO', 'LAST-MODIFIED',
'LOCATION', 'ORGANIZER', 'PRIORITY', 'DTSTAMP', 'SEQUENCE', 'STATUS',
'SUMMARY', 'TRANSP', 'URL', 'RECURRENCE-ID', 'DTEND', 'DURATION',
- 'UID',
+ 'UID', 'CATEGORIES',
)
exclusive = ('DTEND', 'DURATION',)
multiple = (
- 'ATTACH', 'ATTENDEE', 'CATEGORIES', 'COMMENT', 'CONTACT', 'EXDATE',
+ 'ATTACH', 'ATTENDEE', 'COMMENT', 'CONTACT', 'EXDATE',
'RSTATUS', 'RELATED', 'RESOURCES', 'RDATE', 'RRULE'
)
ignore_exceptions = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/src/icalendar/prop.py
new/icalendar-4.0.3/src/icalendar/prop.py
--- old/icalendar-4.0.2/src/icalendar/prop.py 2018-06-20 14:52:55.000000000
+0200
+++ new/icalendar-4.0.3/src/icalendar/prop.py 2018-10-10 09:41:19.000000000
+0200
@@ -267,6 +267,21 @@
out.append(vDDDTypes.from_ical(ical_dt, timezone=timezone))
return out
+class vCategory(object):
+
+ def __init__(self, c_list):
+ if not hasattr(c_list, '__iter__'):
+ d_list = [c_list]
+ self.cats = [vText(c) for c in c_list]
+
+ def to_ical(self):
+ return b",".join([c.to_ical() for c in self.cats])
+
+ @staticmethod
+ def from_ical(ical, timezone=None):
+ out = unescape_char(ical).split(",")
+ return out
+
class vDDDTypes(object):
"""A combined Datetime, Date or Duration parser/generator. Their format
@@ -898,7 +913,8 @@
vTime,
vUTCOffset,
vUri,
- vWeekday
+ vWeekday,
+ vCategory,
)
self['binary'] = vBinary
self['boolean'] = vBoolean
@@ -917,6 +933,7 @@
self['geo'] = vGeo
self['inline'] = vInline
self['date-time-list'] = vDDDLists
+ self['categories'] = vCategory
#################################################
# Property types
@@ -932,7 +949,7 @@
'version': 'text',
# Descriptive Component Properties
'attach': 'uri',
- 'categories': 'text',
+ 'categories': 'categories',
'class': 'text',
'comment': 'text',
'description': 'text',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/icalendar-4.0.2/src/icalendar/tests/test_timezoned.py
new/icalendar-4.0.3/src/icalendar/tests/test_timezoned.py
--- old/icalendar-4.0.2/src/icalendar/tests/test_timezoned.py 2018-06-20
14:52:55.000000000 +0200
+++ new/icalendar-4.0.3/src/icalendar/tests/test_timezoned.py 2018-10-10
09:41:19.000000000 +0200
@@ -148,9 +148,15 @@
class TestTimezoneCreation(unittest.TestCase):
+
+ @unittest.expectedFailure
def test_create_america_new_york(self):
"""testing America/New_York, the most complex example from the
RFC"""
+ # FIXME
+ # This currently fails because of mixed naive and timezone
+ # aware datetimes in dtstart and until which breaks
+ # dateutil recurrence.
directory = os.path.dirname(__file__)
with open(os.path.join(directory, 'america_new_york.ics'), 'rb') as fp:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/src/icalendar.egg-info/PKG-INFO
new/icalendar-4.0.3/src/icalendar.egg-info/PKG-INFO
--- old/icalendar-4.0.2/src/icalendar.egg-info/PKG-INFO 2018-06-20
14:52:56.000000000 +0200
+++ new/icalendar-4.0.3/src/icalendar.egg-info/PKG-INFO 2018-10-10
09:41:19.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: icalendar
-Version: 4.0.2
+Version: 4.0.3
Summary: iCalendar parser/generator
Home-page: https://github.com/collective/icalendar
Author: Plone Foundation
@@ -69,6 +69,15 @@
Changelog
=========
+ 4.0.3 (2018-10-10)
+ ------------------
+
+ Bug fixes:
+
+ - Categories are comma separated not 1 per line #265. [cleder]
+ - mark test with mixed timezoneaware and naive datetimes as an
expected failure. [cleder]
+
+
4.0.2 (2018-06-20)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/icalendar-4.0.2/src/icalendar.egg-info/SOURCES.txt
new/icalendar-4.0.3/src/icalendar.egg-info/SOURCES.txt
--- old/icalendar-4.0.2/src/icalendar.egg-info/SOURCES.txt 2018-06-20
14:52:56.000000000 +0200
+++ new/icalendar-4.0.3/src/icalendar.egg-info/SOURCES.txt 2018-10-10
09:41:19.000000000 +0200
@@ -1,13 +1,8 @@
-.gitignore
-.travis.yml
CHANGES.rst
CONTRIBUTING.rst
LICENSE.rst
MANIFEST.in
README.rst
-bootstrap.py
-buildout.cfg
-requirements_docs.txt
setup.cfg
setup.py
tox.ini