- update to 1.2.1:

* Fixed parser issues regarding missing comma in tests accepting testlist arguments.
  * remove python 2.x support
- drop fix_pip_version.patch: obsolete

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sievelib?expand=0&rev=9
This commit is contained in:
Dirk Mueller 2021-01-25 08:01:56 +00:00 committed by Git OBS Bridge
parent 52ab0516d4
commit 27430de049
5 changed files with 16 additions and 24 deletions

View File

@ -1,14 +0,0 @@
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,10 @@ from __future__ import unicode_literals
import io
from os import path
-from pip.req import parse_requirements
+try: # for pip >= 10
+ from pip._internal.req import parse_requirements
+except ImportError:
+ from pip.req import parse_requirements
from setuptools import setup, find_packages

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jan 25 08:00:46 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.2.1:
* Fixed parser issues regarding missing comma in tests accepting testlist arguments.
* remove python 2.x support
- drop fix_pip_version.patch: obsolete
-------------------------------------------------------------------
Mon May 28 14:38:41 UTC 2018 - mcepl@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-sievelib
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2016 Aeneas Jaissle <aj@ajaissle.de>
#
# All modifications and additions to the file contributed by third parties
@ -13,25 +13,24 @@
# 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/
#
%define modname sievelib
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-%{modname}
Version: 1.1.1
Version: 1.2.1
Release: 0
Summary: Client-side Sieve and Managesieve library written in Python
License: MIT
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/sievelib
Source: https://files.pythonhosted.org/packages/source/s/sievelib/%{modname}-%{version}.tar.gz
Patch0: fix_pip_version.patch
BuildRequires: %{python_module future}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@ -44,7 +43,6 @@ Client-side Sieve and Managesieve library written in Python.
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
sed -i -e '/^#!\/usr\/bin.*python/d' sievelib/parser.py
chmod -x sievelib/parser.py

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf1e684881483e33d4c37687d147ebbe85bd09fc3b0b6c7366aac992b97581ea
size 29647

3
sievelib-1.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:edcb9b416a985a3cc5b7d7f4d7ec013e372ebf90e64c9d9e00e2031299af38fd
size 35323