python-caldav/python-caldav.spec
Daniel Garcia 07773a870a Accepting request 1006203 from home:yarunachalam:branches:devel:languages:python
- Update to v0.9.1
  ## Quick summary
  * Tweaks to support the DAVMail server implementation
  * v0.9.0 broke for python 3.5 and lower, due to usage of fstrings.  v0.9.1 has been tested with python 3.5.
  * Discovery of some cases of broken support of recurring events on the server side, and logging of errors (optionally raising of errors)
  * New method .close on the DAVClient object.
  ## Minor changes
  * Quite some users are complaining because recurring events aren't supported - which is intentional, because the server is supposed to take
    care of that.  Unfortunately quite some servers doesn't.  Thanks to cos, at least we now have some code in place to log an error
    (or optionally raising an error) when recurrences aren't taken care of (though, it only works if the server is returning non-expanded
    recurring events - if searching for a recurrence and the server doesn't find it, then ... no error logged).
    The error message is referring to https://github.com/python-caldav/caldav/issues/157
* New method `.close` on the DAVClient object
  ## Documentation fixes
  * Added the fastmail caldav URL to the documentation - including note that they are picky on the trailing slash
    - ref https://github.com/home-assistant/core/issues/66599
  * Keeping the changelog up-to-date
  ## Bugfixes
  * v0.9.0 broke on elder python versions due to an f"string".  The f-format was introduced in python 3.6.  Anything below is actually
    End of Life versions, but still ... it's a very small effort here to preserve compatibility with elder python versions.
  * The library had some difficulties with the DAVMail server - at one point it does not return a calendar home set property, and at 
    another point the calendar home set URL is the same as the calendar URL.
  * The `URL.canonical()` method should rewrite variants of the same URL into something that will be equal - some work has been put making it more robust.
  Issues: https://github.com/python-caldav/caldav/issues/189.  f-strings discussed outside github.
  ## Linting
  Removal of some extra white space
  ## Testing framework and incompatibility matrix
  * The testTodoDatesearch is pesky - because every server has different visions on how (or weather) to support recurring tasks.
    Added yet more complexity to allow the test code to pass on different servers.
  * Removed some silly test code in testSetCalendarProperties - seems to be just recreating a calendar, which we do in the setup of any test

OBS-URL: https://build.opensuse.org/request/show/1006203
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-caldav?expand=0&rev=20
2022-09-27 05:25:48 +00:00

75 lines
2.2 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
# 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-%{**}}
%global modname caldav
Name: python-%{modname}
Version: 0.9.1
Release: 0
Summary: CalDAV (RFC4791) client library for Python
License: Apache-2.0 AND GPL-3.0-or-later
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/%{modname}
Source: https://files.pythonhosted.org/packages/source/c/caldav/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module vobject}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml
Requires: python-requests
Requires: python-six
Requires: python-vobject
BuildArch: noarch
%ifpython2
Requires: python-pytz
Requires: python-tzlocal
%endif
%python_subpackages
%description
This project is a CalDAV (RFC4791) client library for Python.
It can read all the tags, but only write a few things (create calendars,
events, modify events and properties).
%prep
%setup -q -n %{modname}-%{version}
# Remove shebangs
find caldav -name "*.py" | xargs sed -i '1 {/^#!/d}'
%build
%python_build
%check
# almost all tests are online, would require
# caldav server to run
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license COPYING.APACHE COPYING.GPL
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%{python_sitelib}/%{modname}/
%changelog