Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-rfc3339-validator for
openSUSE:Factory checked in at 2023-06-06 19:55:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rfc3339-validator (Old)
and /work/SRC/openSUSE:Factory/.python-rfc3339-validator.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rfc3339-validator"
Tue Jun 6 19:55:27 2023 rev:3 rq:1090916 version:0.1.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-rfc3339-validator/python-rfc3339-validator.changes
2023-04-22 21:59:32.940889505 +0200
+++
/work/SRC/openSUSE:Factory/.python-rfc3339-validator.new.15902/python-rfc3339-validator.changes
2023-06-06 19:56:19.118494387 +0200
@@ -1,0 +2,7 @@
+Mon Jun 5 09:53:54 UTC 2023 - [email protected]
+
+- do not require six
+- added patches
+ fix https://github.com/naimetti/rfc3339-validator/issues/11
+ + python-rfc3339-validator-no-six.patch
+
New:
----
python-rfc3339-validator-no-six.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-rfc3339-validator.spec ++++++
--- /var/tmp/diff_new_pack.uZuAQj/_old 2023-06-06 19:56:19.730498016 +0200
+++ /var/tmp/diff_new_pack.uZuAQj/_new 2023-06-06 19:56:19.730498016 +0200
@@ -16,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-rfc3339-validator
Version: 0.1.4
@@ -25,15 +24,15 @@
License: MIT
URL: https://github.com/naimetti/rfc3339-validator
Source:
https://files.pythonhosted.org/packages/source/r/rfc3339_validator/rfc3339_validator-%{version}.tar.gz
+# https://github.com/naimetti/rfc3339-validator/issues/11
+Patch0: python-rfc3339-validator-no-six.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-six
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest >= 3}
-BuildRequires: %{python_module six}
BuildRequires: %{python_module strict-rfc3339}
# /SECTION
%python_subpackages
@@ -42,7 +41,7 @@
A pure python RFC3339 validator
%prep
-%setup -q -n rfc3339_validator-%{version}
+%autosetup -p1 -n rfc3339_validator-%{version}
%build
%python_build
++++++ python-rfc3339-validator-no-six.patch ++++++
Index: rfc3339_validator-0.1.4/rfc3339_validator.egg-info/requires.txt
===================================================================
--- rfc3339_validator-0.1.4.orig/rfc3339_validator.egg-info/requires.txt
+++ rfc3339_validator-0.1.4/rfc3339_validator.egg-info/requires.txt
@@ -1 +0,0 @@
-six
Index: rfc3339_validator-0.1.4/rfc3339_validator.py
===================================================================
--- rfc3339_validator-0.1.4.orig/rfc3339_validator.py
+++ rfc3339_validator-0.1.4/rfc3339_validator.py
@@ -6,11 +6,9 @@ __version__ = '0.1.4'
import re
import calendar
-import six
RFC3339_REGEX_FLAGS = 0
-if six.PY3:
- RFC3339_REGEX_FLAGS |= re.ASCII
+RFC3339_REGEX_FLAGS |= re.ASCII
RFC3339_REGEX = re.compile(r"""
^
Index: rfc3339_validator-0.1.4/setup.py
===================================================================
--- rfc3339_validator-0.1.4.orig/setup.py
+++ rfc3339_validator-0.1.4/setup.py
@@ -8,9 +8,7 @@ from setuptools import setup, find_packa
with open('README.md') as readme_file:
readme = readme_file.read()
-requirements = [
- 'six',
-]
+requirements = []
setup_requirements = []
Index: rfc3339_validator-0.1.4/tests/test_rfc3339_validator.py
===================================================================
--- rfc3339_validator-0.1.4.orig/tests/test_rfc3339_validator.py
+++ rfc3339_validator-0.1.4/tests/test_rfc3339_validator.py
@@ -8,7 +8,6 @@ from rfc3339_validator import validate_r
import strict_rfc3339
from hypothesis import given, settings, example
import hypothesis.strategies as st
-import six
# It is supposed to be used to generate both valid and invalid dates
RFC3339_REGEX = r"""
@@ -30,16 +29,11 @@ RFC3339_REGEX = r"""
)
$
"""
-if six.PY3:
- RFC3339_REGEX_FLAG = re.X | re.A
-else:
- RFC3339_REGEX_FLAG = re.X
+RFC3339_REGEX_FLAG = re.X | re.A
RFC3339_REGEX_ASCII = re.compile(RFC3339_REGEX, RFC3339_REGEX_FLAG)
RFC3339_REGEX_UNICODE = re.compile(RFC3339_REGEX, re.X)
[email protected](six.PY2, reason="Requires python3 or higher, because
strftime on python 2 only supports dates "
- "newer than 1900")
@given(datetime_str=st.datetimes().filter(lambda d: d.year > 1000).map(lambda
d: d.strftime("%Y-%m-%dT%H:%M:%SZ")))
def test_valid_dates(datetime_str):
assert validate_rfc3339(datetime_str)