commit python-py for openSUSE:Factory

2024-10-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2024-10-14 13:06:28

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


Package is "python-py"

Mon Oct 14 13:06:28 2024 rev:43 rq:1207774 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2023-09-07 
21:12:12.844175085 +0200
+++ /work/SRC/openSUSE:Factory/.python-py.new.19354/python-py.changes   
2024-10-14 13:06:33.167055781 +0200
@@ -1,0 +2,5 @@
+Mon Oct 14 05:25:17 UTC 2024 - Steve Kowalik 
+
+- Skip a recalcitrant test for Python 3.13's benefit. 
+
+---



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.yEmT4F/_old  2024-10-14 13:06:33.815082983 +0200
+++ /var/tmp/diff_new_pack.yEmT4F/_new  2024-10-14 13:06:33.815082983 +0200
@@ -1,7 +1,7 @@
 #
-# spec file
+# spec file for package python-py
 #
-# 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
@@ -97,7 +97,8 @@
 # https://github.com/pytest-dev/py/issues/209
 # another failing tests with pytest 7.4: 
https://github.com/pytest-dev/pytest/commit/cc23ec91d042ee15145b890aea04e96f6e831101
 
https://github.com/pytest-dev/pytest/commit/0a20452f78a2f5401cf0fc05dad04c8aeee170d7
 # ...but the failure comes from py.core, which was integrated to pytest long 
ago and will probably be dropped soon: 
https://github.com/pytest-dev/py/issues/288
-%pytest -k 'not (test_getdimensions or test_format_excinfo or 
test_excinfo_repr or test_excinfo_str or test_syntaxerror_rerepresentation or 
test_len or test_power or test_comments or test_repr_traceback or 
test_traceback_getcrashentry)'
+# and failing tests with Python 3.13.
+%pytest -k 'not (test_getdimensions or test_format_excinfo or 
test_excinfo_repr or test_excinfo_str or test_syntaxerror_rerepresentation or 
test_len or test_power or test_comments or test_repr_traceback or 
test_traceback_getcrashentry or test_capturing_and_logging_fundamentals)'
 %endif
 
 %if !%{with test}


commit python-py for openSUSE:Factory

2023-09-07 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2023-09-07 21:12:07

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


Package is "python-py"

Thu Sep  7 21:12:07 2023 rev:42 rq:1109354 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2023-07-27 
16:51:00.565882383 +0200
+++ /work/SRC/openSUSE:Factory/.python-py.new.1766/python-py.changes
2023-09-07 21:12:12.844175085 +0200
@@ -19,0 +20,7 @@
+Tue Jan 17 05:13:56 UTC 2023 - Steve Kowalik 
+
+- Remove all traces of py._path.svn{url,wc}. (bsc#1204364, CVE-2022-42969) 
+- Add patch remove-svn-remants.patch to help with that goal.
+- Refresh pr_222.patch as needed for above.
+
+---
@@ -30,0 +38,6 @@
+
+---
+Mon Mar 14 10:53:30 UTC 2022 - John Paul Adrian Glaubitz 

+
+- Update in SLE-15 (bsc#1195916, bsc#1196696, jsc#PM-3356, jsc#SLE-23972)
+- Drop CVE-2020-29651.patch, issue fixed upstream in 1.10.0

New:

  remove-svn-remants.patch



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.LDMT62/_old  2023-09-07 21:12:14.052218269 +0200
+++ /var/tmp/diff_new_pack.LDMT62/_new  2023-09-07 21:12:14.056218412 +0200
@@ -36,6 +36,8 @@
 Source: 
https://files.pythonhosted.org/packages/source/p/py/py-%{version}.tar.gz
 # https://github.com/pytest-dev/py/pull/222
 Patch0: pr_222.patch
+# CVE-2022-42969 Remove all traces of svn
+Patch1: remove-svn-remants.patch
 BuildRequires:  %{python_module apipkg}
 BuildRequires:  %{python_module iniconfig}
 BuildRequires:  %{python_module setuptools_scm}
@@ -71,6 +73,14 @@
 rm -f testing/log/test_warning.py
 rm -r py/_vendored_packages
 
+# CVE-2022-42969 Remove all traces of svn
+pushd py/_path
+rm svnwc.py svnurl.py
+popd
+pushd testing/path
+rm conftest.py svntestbase.py test_svnauth.py test_svnurl.py test_svnwc.py
+popd
+
 %build
 %python_build
 

++ pr_222.patch ++
--- /var/tmp/diff_new_pack.LDMT62/_old  2023-09-07 21:12:14.092219699 +0200
+++ /var/tmp/diff_new_pack.LDMT62/_new  2023-09-07 21:12:14.096219843 +0200
@@ -369,152 +369,6 @@
  
  def test_delentry_raising(self):
  self.cache.getorbuild(100, lambda: 100)
-Index: py-1.9.0/testing/path/test_svnauth.py
-===
 py-1.9.0.orig/testing/path/test_svnauth.py
-+++ py-1.9.0/testing/path/test_svnauth.py
-@@ -2,6 +2,7 @@ import py
- from py.path import SvnAuth
- import time
- import sys
-+import pytest
- 
- svnbin = py.path.local.sysfind('svn')
- 
-@@ -261,7 +262,8 @@ class TestSvnURLAuth(object):
- u.propget('foo')
- assert '--username="foo" --password="bar"' in u.commands[0]
- 
--def pytest_funcarg__setup(request):
-+@pytest.fixture
-+def setup(request):
- return Setup(request)
- 
- class Setup:
-@@ -271,7 +273,7 @@ class Setup:
- if not request.config.option.runslowtests:
- py.test.skip('use --runslowtests to run these tests')
- 
--tmpdir = request.getfuncargvalue("tmpdir")
-+tmpdir = request.getfixturevalue("tmpdir")
- repodir = tmpdir.join("repo")
- py.process.cmdexec('svnadmin create %s' % repodir)
- if sys.platform == 'win32':
-Index: py-1.9.0/testing/path/test_svnurl.py
-===
 py-1.9.0.orig/testing/path/test_svnurl.py
-+++ py-1.9.0/testing/path/test_svnurl.py
-@@ -2,10 +2,12 @@ import py
- from py._path.svnurl import InfoSvnCommand
- import datetime
- import time
-+import pytest
- from svntestbase import CommonSvnTests
- 
--def pytest_funcarg__path1(request):
--repo, repourl, wc = request.getfuncargvalue("repowc1")
-+@pytest.fixture
-+def path1(request):
-+repo, repourl, wc = request.getfixturevalue("repowc1")
- return py.path.svnurl(repourl)
- 
- class TestSvnURLCommandPath(CommonSvnTests):
-@@ -20,10 +22,12 @@ class TestSvnURLCommandPath(CommonSvnTes
- super(TestSvnURLCommandPath, self).test_visit_ignore(path1)
- 
- def test_svnurl_needs_arg(self, path1):
--py.test.raises(TypeError, "py.path.svnurl()")
-+with py.test.raises(TypeError):
-+py.path.svnurl()
- 
- def test_svnurl_does_not_accept_None_either(self, path1):
--py.test.raises(Exception, "py.path.svnurl(None)")
-+with py.test.raises(Exception):
-+py.path.svnurl(None)
- 
- def test_svnurl_characters_simple(self, path1):
- py.path.svnurl("svn+ssh://hello/world")
-@@ -32,7 +36

commit python-py for openSUSE:Factory

2023-07-27 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2023-07-27 16:50:36

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


Package is "python-py"

Thu Jul 27 16:50:36 2023 rev:41 rq:1100741 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2023-04-25 
16:53:42.974335606 +0200
+++ /work/SRC/openSUSE:Factory/.python-py.new.32662/python-py.changes   
2023-07-27 16:51:00.565882383 +0200
@@ -1,0 +2,8 @@
+Tue Jul 25 14:23:03 UTC 2023 - Markéta Machová 
+
+- Skip tests failing with pytest 7.4, they don't matter
+  * failure comes from py.core, which has low usage
+  * https://github.com/pytest-dev/py/issues/288
+  * according to that this code is not used in Tumbleweed anyway
+
+---



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.WaOb1Z/_old  2023-07-27 16:51:01.153885705 +0200
+++ /var/tmp/diff_new_pack.WaOb1Z/_new  2023-07-27 16:51:01.161885750 +0200
@@ -85,7 +85,9 @@
 export LANG=en_US.UTF-8
 # In addition to PR 222, there are other tests failing due to changes in 
pytest 5 & 6
 # https://github.com/pytest-dev/py/issues/209
-%pytest -k 'not (test_getdimensions or test_format_excinfo or 
test_excinfo_repr or test_excinfo_str or test_syntaxerror_rerepresentation or 
test_len or test_power or test_comments)'
+# another failing tests with pytest 7.4: 
https://github.com/pytest-dev/pytest/commit/cc23ec91d042ee15145b890aea04e96f6e831101
 
https://github.com/pytest-dev/pytest/commit/0a20452f78a2f5401cf0fc05dad04c8aeee170d7
+# ...but the failure comes from py.core, which was integrated to pytest long 
ago and will probably be dropped soon: 
https://github.com/pytest-dev/py/issues/288
+%pytest -k 'not (test_getdimensions or test_format_excinfo or 
test_excinfo_repr or test_excinfo_str or test_syntaxerror_rerepresentation or 
test_len or test_power or test_comments or test_repr_traceback or 
test_traceback_getcrashentry)'
 %endif
 
 %if !%{with test}


commit python-py for openSUSE:Factory

2023-04-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2023-04-25 16:53:42

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


Package is "python-py"

Tue Apr 25 16:53:42 2023 rev:40 rq:1082445 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2022-11-30 
16:07:55.339498507 +0100
+++ /work/SRC/openSUSE:Factory/.python-py.new.1533/python-py.changes
2023-04-25 16:53:42.974335606 +0200
@@ -1,0 +2,10 @@
+Fri Apr 21 12:30:10 UTC 2023 - Dirk Müller 
+
+- add sle15_python_module_pythons (jsc#PED-68)
+
+---
+Thu Apr 13 22:43:30 UTC 2023 - Matej Cepl 
+
+- Make calling of %{sle15modernpython} optional.
+
+---



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.jYcbvu/_old  2023-04-25 16:53:43.462340636 +0200
+++ /var/tmp/diff_new_pack.jYcbvu/_new  2023-04-25 16:53:43.466340677 +0200
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
+%{?sle15_python_module_pythons}
 Name:   python-py%{psuffix}
 Version:1.11.0
 Release:0


commit python-py for openSUSE:Factory

2022-11-30 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2022-11-30 16:07:55

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


Package is "python-py"

Wed Nov 30 16:07:55 2022 rev:39 rq:1038945 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2022-03-17 
17:01:22.585679758 +0100
+++ /work/SRC/openSUSE:Factory/.python-py.new.1597/python-py.changes
2022-11-30 16:07:55.339498507 +0100
@@ -1,0 +2,8 @@
+Tue Nov 29 17:04:41 UTC 2022 - Daniel Garcia 
+
+- Remove python_module macro definition
+- Add python-py dep for testing
+- Use autosetup insteado of setup + patch
+- More specific python_sitelib in %files
+
+---



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.VoA9cZ/_old  2022-11-30 16:07:55.851501308 +0100
+++ /var/tmp/diff_new_pack.VoA9cZ/_new  2022-11-30 16:07:55.855501330 +0100
@@ -17,7 +17,6 @@
 
 
 %define oldpython python
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
 %define psuffix -test
@@ -47,6 +46,7 @@
 Obsoletes:  %{oldpython}-py-docs
 BuildArch:  noarch
 %if %{with test}
+BuildRequires:  %{python_module py = %{version}}
 BuildRequires:  %{python_module pytest}
 %endif
 %python_subpackages
@@ -62,8 +62,7 @@
 * py.path:  uniform local and svn path objects
 
 %prep
-%setup -q -n py-%{version}
-%patch0 -p1
+%autosetup -p1 -n py-%{version}
 
 rm -rf py.egg-info
 rm -f tox.ini
@@ -92,7 +91,8 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/py
+%{python_sitelib}/py-%{version}*-info
 %endif
 
 %changelog


commit python-py for openSUSE:Factory

2022-03-17 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2022-03-17 17:01:14

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


Package is "python-py"

Thu Mar 17 17:01:14 2022 rev:38 rq:961815 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2022-01-26 
21:26:31.974179215 +0100
+++ /work/SRC/openSUSE:Factory/.python-py.new.25692/python-py.changes   
2022-03-17 17:01:22.585679758 +0100
@@ -1,0 +2,5 @@
+Tue Mar 15 08:13:43 UTC 2022 - Stephan Kulow 
+
+- use %python_expand for %fdupes
+
+---



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.pXTQIU/_old  2022-03-17 17:01:23.145680187 +0100
+++ /var/tmp/diff_new_pack.pXTQIU/_new  2022-03-17 17:01:23.149680189 +0100
@@ -77,7 +77,7 @@
 %install
 %if !%{with test}
 %python_install
-%python_exec %fdupes %{buildroot}%{$python_sitelib}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
 %check


commit python-py for openSUSE:Factory

2021-02-22 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-py for openSUSE:Factory 
checked in at 2021-02-22 14:39:32

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


Package is "python-py"

Mon Feb 22 14:39:32 2021 rev:36 rq:873825 version:1.10.0

Changes:

--- /work/SRC/openSUSE:Factory/python-py/python-py.changes  2020-06-30 
21:54:17.910356589 +0200
+++ /work/SRC/openSUSE:Factory/.python-py.new.2378/python-py.changes
2021-02-22 14:39:48.716581170 +0100
@@ -1,0 +2,13 @@
+Fri Feb 19 15:21:06 UTC 2021 - Ben Greiner 
+
+- Update to 1.10.0
+  * Fix a regular expression DoS vulnerability in the py.path.svnwc
+SVN blame functionality (CVE-2020-29651)
+
+---
+Sat Oct 17 11:43:32 UTC 2020 - John Vandenberg 
+
+- Devendor apipkg and iniconfig
+- Add pr_222.patch to activate test suite
+
+---

Old:

  py-1.9.0.tar.gz

New:

  pr_222.patch
  py-1.10.0.tar.gz



Other differences:
--
++ python-py.spec ++
--- /var/tmp/diff_new_pack.0RrGhx/_old  2021-02-22 14:39:49.208581716 +0100
+++ /var/tmp/diff_new_pack.0RrGhx/_new  2021-02-22 14:39:49.208581716 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-py
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,15 +27,21 @@
 %bcond_with test
 %endif
 Name:   python-py%{psuffix}
-Version:1.9.0
+Version:1.10.0
 Release:0
 Summary:Library with cross-python path, ini-parsing, io, code, log 
facilities
 License:MIT
 Group:  Development/Languages/Python
 URL:https://github.com/pytest-dev/py
 Source: 
https://files.pythonhosted.org/packages/source/p/py/py-%{version}.tar.gz
+# https://github.com/pytest-dev/py/pull/222
+Patch0: pr_222.patch
+BuildRequires:  %{python_module apipkg}
+BuildRequires:  %{python_module iniconfig}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
+Requires:   python-apipkg
+Requires:   python-iniconfig
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Obsoletes:  %{oldpython}-py-docs
@@ -57,11 +63,13 @@
 
 %prep
 %setup -q -n py-%{version}
+%patch0 -p1
 
 rm -rf py.egg-info
 rm -f tox.ini
 # https://github.com/pytest-dev/py/issues/162
 rm -f testing/log/test_warning.py
+rm -r py/_vendored_packages
 
 %build
 %python_build
@@ -75,10 +83,9 @@
 %check
 %if %{with test}
 export LANG=en_US.UTF-8
-# the passing is because upstream does not care about the results for now and
-# pinned pytest 3 in the repo (as this module is deprecated)
+# In addition to PR 222, there are other tests failing due to changes in 
pytest 5 & 6
 # https://github.com/pytest-dev/py/issues/209
-%pytest || :
+%pytest -k 'not (test_getdimensions or test_format_excinfo or 
test_excinfo_repr or test_excinfo_str or test_syntaxerror_rerepresentation or 
test_len or test_power or test_comments)'
 %endif
 
 %if !%{with test}

++ pr_222.patch ++
>From f4ed62ad39f289d09b3efdfed7305f935ce60bfc Mon Sep 17 00:00:00 2001
From: Stanislav Levin 
Date: Tue, 4 Jun 2019 14:33:36 +0300
Subject: [PATCH] Fix Pytest4.x compatibility errors

This patch should fix such errors/warnings as:

- raises / warns with a string as the second argument
Deprecated since version 4.1.

- pytest_funcarg__ prefix
Removed in version 4.0.

- getfuncargvalue

- Metafunc.addcall
Removed in version 4.0.

Fixes: https://github.com/pytest-dev/py/issues/209
Signed-off-by: Stanislav Levin 
---
 doc/faq.txt  | 14 -
 testing/code/test_assertion.py   |  9 +++--
 testing/code/test_code.py|  3 ++-
 testing/code/test_excinfo.py | 12 ++-
 testing/code/test_source.py  | 18 -
 testing/io_/test_capture.py  | 15 +-
 testing/io_/test_terminalwriter.py   | 17 
 testing/io_/test_terminalwriter_linewidth.py |  6 ++
 testing/log/test_log.py  |  6 --
 testing/path/common.py   |  7 ---
 testing/path/conftest.py | 16 +++
 testing/path/test_cacheutil.py   |  6 --
 testing/path/test_svnauth.py |  6 --
 testing/path/test_svnurl.py  | 21 +---
 testing/path/test_svnwc.py   | 17