forked from pool/python-vdirsyncer
- Update to 0.19.3:
* Added a no_delete option to the storage configuration. :gh:`1090` * Fix crash when running vdirsyncer repair on a collection. :gh:`1019` * Add an option to request vCard v4.0. :gh:`1066` * Require matching BEGIN and END lines in vobjects. :gh:`1103` * Implement digest auth. :gh:`1137` * Add filter_hook parameter to :storage:`http`. :gh:`1136` - Drop patch 3eb9ce5ae4320d52e6c876874511ff96a8a45f51.patch, included. - Switch to pyproject macros. - Stop skipping so many tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vdirsyncer?expand=0&rev=45
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-vdirsyncer
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,22 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
Name: python-vdirsyncer
|
||||
Version: 0.19.2
|
||||
Version: 0.19.3
|
||||
Release: 0
|
||||
Summary: CalDAV and CardDAV synchronization module
|
||||
License: BSD-3-Clause
|
||||
Group: Productivity/Networking/News/Utilities
|
||||
URL: https://github.com/pimutils/vdirsyncer
|
||||
Source0: https://files.pythonhosted.org/packages/source/v/vdirsyncer/vdirsyncer-%{version}.tar.gz
|
||||
Source1: vdirsyncer.service
|
||||
Source2: vdirsyncer.timer
|
||||
# Compatibility with latest click - taken directly from upstream git
|
||||
Patch0: 3eb9ce5ae4320d52e6c876874511ff96a8a45f51.patch
|
||||
BuildRequires: %{python_module atomicwrites}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -42,11 +39,9 @@ Requires: python-aiostream
|
||||
Requires: python-atomicwrites >= 0.1.7
|
||||
Requires: python-click >= 5.0
|
||||
Requires: python-click-log >= 0.3
|
||||
Requires: python-click-threading >= 0.2
|
||||
Requires: python-requests >= 2.20.0
|
||||
Requires: python-requests-toolbelt >= 0.4.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-requests-oauthlib
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
@@ -54,14 +49,12 @@ BuildRequires: %{python_module aiohttp}
|
||||
BuildRequires: %{python_module aioresponses}
|
||||
BuildRequires: %{python_module aiostream}
|
||||
BuildRequires: %{python_module click-log >= 0.3}
|
||||
BuildRequires: %{python_module click-threading >= 0.2}
|
||||
BuildRequires: %{python_module hypothesis >= 5.0.0}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-localserver}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests >= 2.20.0}
|
||||
BuildRequires: %{python_module requests-toolbelt >= 0.4.40}
|
||||
BuildRequires: %{python_module trustme}
|
||||
BuildRequires: %{python_module urllib3}
|
||||
# /SECTION
|
||||
@@ -81,10 +74,10 @@ what OfflineIMAP is for IMAP.
|
||||
rm -rf vdirsyncer.egg-info
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/vdirsyncer
|
||||
|
||||
mkdir -p %{buildroot}%{_userunitdir}
|
||||
@@ -98,10 +91,9 @@ install -Dpm 0644 %{SOURCE2} %{buildroot}%{_userunitdir}/vdirsyncer-%{$python_bi
|
||||
|
||||
%check
|
||||
export DETERMINISTIC_TESTS=true
|
||||
# test_verbosity - click changed syntax and returns different quotes
|
||||
# gh#pimutils/vdirsyncer#654 -- tests temporarily switched off
|
||||
# request_ssl - requires network
|
||||
%pytest -k 'not test_legacy_status and not test_open_graphical_browser and not test_verbosity and not request_ssl'
|
||||
# TestVobjectMachine -- broken upstream
|
||||
%pytest -k 'not (request_ssl or TestVobjectMachine)'
|
||||
|
||||
%post
|
||||
update-alternatives --install %{_bindir}/vdirsyncer vdirsyncer %{_bindir}/vdirsyncer-%{python_bin_suffix} %{python_version_nodots} \
|
||||
@@ -116,7 +108,7 @@ update-alternatives --auto vdirsyncer
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/vdirsyncer
|
||||
%{python_sitelib}/vdirsyncer-%{version}*-info
|
||||
%{python_sitelib}/vdirsyncer-%{version}.dist-info
|
||||
%{python_sitelib}/vdirsyncer
|
||||
%{_userunitdir}/vdirsyncer-%{python_bin_suffix}.service
|
||||
%{_userunitdir}/vdirsyncer-%{python_bin_suffix}.timer
|
||||
|
Reference in New Issue
Block a user