commit python-cookies for openSUSE:Factory

2019-02-01 Thread root
Hello community,

here is the log from the commit of package python-cookies for openSUSE:Factory 
checked in at 2019-02-01 11:48:46

Comparing /work/SRC/openSUSE:Factory/python-cookies (Old)
 and  /work/SRC/openSUSE:Factory/.python-cookies.new.28833 (New)


Package is "python-cookies"

Fri Feb  1 11:48:46 2019 rev:4 rq:670534 version:2.2.1

Changes:

--- /work/SRC/openSUSE:Factory/python-cookies/python-cookies.changes
2018-10-25 08:14:23.128121233 +0200
+++ /work/SRC/openSUSE:Factory/.python-cookies.new.28833/python-cookies.changes 
2019-02-01 11:49:05.516327811 +0100
@@ -1,0 +2,6 @@
+Fri Feb  1 10:02:46 UTC 2019 - Tomáš Chvátal 
+
+- Apply patch to fix build on python3.7:
+  * python37.patch
+
+---

New:

  python37.patch



Other differences:
--
++ python-cookies.spec ++
--- /var/tmp/diff_new_pack.JbOP6d/_old  2019-02-01 11:49:05.888327429 +0100
+++ /var/tmp/diff_new_pack.JbOP6d/_new  2019-02-01 11:49:05.892327425 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cookies
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,7 @@
 Source1:
https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE
 # PATCH-FIX-OPENSUSE do-not-install-test_cookies.diff -- Do not install test 
files
 Patch0: do-not-install-test_cookies.diff
+Patch1: python37.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
@@ -67,7 +68,8 @@
 
 %prep
 %setup -q -n cookies-%{version}
-%patch0 -p1
+%autopatch -p1
+
 cp %{SOURCE1} .
 
 %build

++ python37.patch ++
Index: cookies-2.2.1/cookies.py
===
--- cookies-2.2.1.orig/cookies.py
+++ cookies-2.2.1/cookies.py
@@ -132,7 +132,7 @@ class Definitions(object):
 # attribute and extract it appropriately.
 # As compared with the RFC production grammar, it is must more liberal with
 # space characters, in order not to break on data made by barbarians.
-SET_COOKIE_HEADER = """(?x) # Verbose mode
+SET_COOKIE_HEADER = r"""(?x) # Verbose mode
 ^(?:Set-Cookie:[ ]*)?
 (?P[{name}:]+)
 [ ]*=[ ]*
@@ -203,7 +203,7 @@ class Definitions(object):
 # Here is the overall date format; ~99% of cases fold into one generalized
 # syntax like RFC 1123, and many of the rest use asctime-like formats.
 # (see test_date_formats for a full exegesis)
-DATE = """(?ix) # Case-insensitive mode, verbose mode
+_DATE = """
 (?:
 (?P(?:{wdy}|{weekday}),[ ])?
 (?P{day})
@@ -230,11 +230,17 @@ class Definitions(object):
 (?P\d\d\d\d)
 (?:[ ]GMT)?  # GMT (Amazon)
 )
-"""
-DATE = DATE.format(wdy=WEEKDAY_SHORT, weekday=WEEKDAY_LONG,
-   day=DAY_OF_MONTH, mon=MONTH_SHORT, month=MONTH_LONG)
+""".format(wdy=WEEKDAY_SHORT, weekday=WEEKDAY_LONG,
+   day=DAY_OF_MONTH, mon=MONTH_SHORT, month=MONTH_LONG)
+
+# Starting in Python 3.6, embedding a regex that starts with "(?ix)" in
+# the middle of another regex produces a warning (and will stop working
+# altogether in some future Python version).  We thus create two variables
+# here: _DATE is for embedding inside other regexes (which must themselves
+# begin with "(?ix)"), DATE is for standalone matching.
+DATE = '(?ix)' + _DATE
 
-EXPIRES_AV = "Expires=(?P%s)" % DATE
+EXPIRES_AV = "Expires=(?P%s)" % _DATE
 
 # Now we're ready to define a regexp which can match any number of attrs
 # in the variable portion of the Set-Cookie header (like the unnamed latter
@@ -263,7 +269,7 @@ class Definitions(object):
path=PATH_AV, stuff=EXTENSION_AV)
 
 # For request data ("Cookie: ") parsing, with finditer cf. RFC 6265 4.2.1
-COOKIE = """(?x) # Verbose mode
+COOKIE = r"""(?x) # Verbose mode
 (?: # Either something close to valid...
 
 # Match starts at start of string, or at separator.
@@ -306,13 +312,13 @@ class Definitions(object):
 """.format(name=COOKIE_NAME, value=COOKIE_OCTET)
 
 # Precompile externally useful definitions into re objects.
-COOKIE_NAME_RE = re.compile("^([%s:]+)\Z" % COOKIE_NAME)
+COOKIE_NAME_RE = re.compile(r"^([%s:]+)\Z" % COOKIE_NAME)
 COOKIE_RE = re.compile(COOKIE)
 SET_COOKIE_HEADER_RE = re.compile(SET_COOKIE_HEADER)
 ATTR_RE = re.compile(ATTR)
 DATE_RE = 

commit python-cookies for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package python-cookies for openSUSE:Factory 
checked in at 2018-10-25 08:13:46

Comparing /work/SRC/openSUSE:Factory/python-cookies (Old)
 and  /work/SRC/openSUSE:Factory/.python-cookies.new (New)


Package is "python-cookies"

Thu Oct 25 08:13:46 2018 rev:3 rq:642833 version:2.2.1

Changes:

--- /work/SRC/openSUSE:Factory/python-cookies/python-cookies.changes
2018-08-31 10:45:28.139276453 +0200
+++ /work/SRC/openSUSE:Factory/.python-cookies.new/python-cookies.changes   
2018-10-25 08:14:23.128121233 +0200
@@ -1,0 +2,5 @@
+Thu Oct 18 09:36:51 UTC 2018 - Tomáš Chvátal 
+
+- Upstream moved to gitlab
+
+---



Other differences:
--
++ python-cookies.spec ++
--- /var/tmp/diff_new_pack.xoKOWe/_old  2018-10-25 08:14:23.728120976 +0200
+++ /var/tmp/diff_new_pack.xoKOWe/_new  2018-10-25 08:14:23.728120976 +0200
@@ -12,7 +12,7 @@
 # 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/
 #
 
 
@@ -23,13 +23,13 @@
 Summary:Friendlier RFC 6265-compliant cookie parser/renderer
 License:MIT
 Group:  Development/Languages/Python
-URL:https://github.com/sashahart/cookies
+URL:https://gitlab.com/sashahart/cookies
 Source: 
https://files.pythonhosted.org/packages/source/c/cookies/cookies-%{version}.tar.gz
+Source1:
https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE
 # PATCH-FIX-OPENSUSE do-not-install-test_cookies.diff -- Do not install test 
files
 Patch0: do-not-install-test_cookies.diff
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
-Source1:
https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE
 BuildRequires:  python-rpm-macros
 BuildArch:  noarch
 %python_subpackages




commit python-cookies for openSUSE:Factory

2018-08-31 Thread root
Hello community,

here is the log from the commit of package python-cookies for openSUSE:Factory 
checked in at 2018-08-31 10:45:25

Comparing /work/SRC/openSUSE:Factory/python-cookies (Old)
 and  /work/SRC/openSUSE:Factory/.python-cookies.new (New)


Package is "python-cookies"

Fri Aug 31 10:45:25 2018 rev:2 rq:632124 version:2.2.1

Changes:

--- /work/SRC/openSUSE:Factory/python-cookies/python-cookies.changes
2017-08-24 18:51:10.299788695 +0200
+++ /work/SRC/openSUSE:Factory/.python-cookies.new/python-cookies.changes   
2018-08-31 10:45:28.139276453 +0200
@@ -1,0 +2,6 @@
+Wed Aug 29 10:33:58 UTC 2018 - tchva...@suse.com
+
+- Add license
+- Run the tests in a way to work on 42.3
+
+---

New:

  LICENSE



Other differences:
--
++ python-cookies.spec ++
--- /var/tmp/diff_new_pack.69pU81/_old  2018-08-31 10:45:29.675278309 +0200
+++ /var/tmp/diff_new_pack.69pU81/_new  2018-08-31 10:45:29.679278314 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cookies
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,17 +23,15 @@
 Summary:Friendlier RFC 6265-compliant cookie parser/renderer
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/sashahart/cookies
+URL:https://github.com/sashahart/cookies
 Source: 
https://files.pythonhosted.org/packages/source/c/cookies/cookies-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE do-not-install-test_cookies.diff -- Do not install test 
files
 Patch0: do-not-install-test_cookies.diff
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+Source1:
https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE
 BuildRequires:  python-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -70,6 +68,7 @@
 %prep
 %setup -q -n cookies-%{version}
 %patch0 -p1
+cp %{SOURCE1} .
 
 %build
 %python_build
@@ -78,10 +77,10 @@
 %python_install
 
 %check
-%python_expand pytest-%{$python_version} test_cookies.py
+%python_expand py.test-%{$python_version} test_cookies.py
 
 %files %{python_files}
-%defattr(-,root,root,-)
+%license LICENSE
 %doc README
 %{python_sitelib}/*
 

++ LICENSE ++
Copyright (c) 2011 Sasha Hart.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.