Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tldextract for openSUSE:Factory checked in at 2023-12-08 22:33:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tldextract (Old) and /work/SRC/openSUSE:Factory/.python-tldextract.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tldextract" Fri Dec 8 22:33:39 2023 rev:23 rq:1132106 version:5.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tldextract/python-tldextract.changes 2023-11-14 21:42:09.358672994 +0100 +++ /work/SRC/openSUSE:Factory/.python-tldextract.new.25432/python-tldextract.changes 2023-12-08 22:34:30.753428837 +0100 @@ -1,0 +2,7 @@ +Fri Dec 8 13:44:38 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 5.1.1: + * Fix path join on Windows (#314) + * Support Python 3.12 + +------------------------------------------------------------------- Old: ---- tldextract-5.1.0.tar.gz New: ---- tldextract-5.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tldextract.spec ++++++ --- /var/tmp/diff_new_pack.kUcN2T/_old 2023-12-08 22:34:31.213445763 +0100 +++ /var/tmp/diff_new_pack.kUcN2T/_new 2023-12-08 22:34:31.213445763 +0100 @@ -19,7 +19,7 @@ %define oldpython python %{?sle15_python_module_pythons} Name: python-tldextract -Version: 5.1.0 +Version: 5.1.1 Release: 0 Summary: Python module to separate the TLD of a URL License: BSD-3-Clause ++++++ tldextract-5.1.0.tar.gz -> tldextract-5.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/.github/workflows/ci.yml new/tldextract-5.1.1/.github/workflows/ci.yml --- old/tldextract-5.1.0/.github/workflows/ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/tldextract-5.1.1/.github/workflows/ci.yml 2023-11-13 21:07:39.000000000 +0100 @@ -0,0 +1,40 @@ +name: build +on: [push, pull_request] +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + language: + [ + {python-version: "3.8", toxenv: "py38"}, + {python-version: "3.9", toxenv: "py39"}, + {python-version: "3.10", toxenv: "py310"}, + {python-version: "3.11", toxenv: "py311"}, + {python-version: "3.12", toxenv: "py312"}, + {python-version: "pypy3.8", toxenv: "pypy38"}, + ] + include: + - os: ubuntu-latest + language: {python-version: "3.8", toxenv: "codestyle"} + - os: ubuntu-latest + language: {python-version: "3.8", toxenv: "lint"} + - os: ubuntu-latest + language: {python-version: "3.8", toxenv: "typecheck"} + runs-on: ${{ matrix.os }} + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.language.python-version }} + - name: Install Python requirements + run: | + pip install --upgrade pip + pip install --upgrade --editable '.[testing]' + - name: Test + run: tox + env: + TOXENV: ${{ matrix.language.toxenv }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/.travis.yml new/tldextract-5.1.1/.travis.yml --- old/tldextract-5.1.0/.travis.yml 2023-10-28 20:47:14.000000000 +0200 +++ new/tldextract-5.1.1/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ -dist: focal -language: python -matrix: - include: - - python: "3.8" - env: TOXENV=py38 - - python: "3.9" - env: TOXENV=py39 - - python: "3.10" - env: TOXENV=py310 - - python: "3.11" - env: TOXENV=py311 - - python: pypy3.8-7.3.9 - dist: xenial - env: TOXENV=pypy3 - - env: TOXENV=codestyle - - env: TOXENV=lint - - env: TOXENV=typecheck -python: "3.10" -install: - - pip install --upgrade pip - - pip install --upgrade --editable '.[testing]' -script: tox diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/CHANGELOG.md new/tldextract-5.1.1/CHANGELOG.md --- old/tldextract-5.1.0/CHANGELOG.md 2023-11-06 07:09:30.000000000 +0100 +++ new/tldextract-5.1.1/CHANGELOG.md 2023-11-17 04:39:20.000000000 +0100 @@ -3,6 +3,12 @@ After upgrading, update your cache file by deleting it or via `tldextract --update`. +## 5.1.1 (2023-11-16) + +* Bugfixes + * Fix path join on Windows ([#314](https://github.com/john-kurkowski/tldextract/issues/314)) + * Support Python 3.12 + ## 5.1.0 (2023-11-05) * Features diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/PKG-INFO new/tldextract-5.1.1/PKG-INFO --- old/tldextract-5.1.0/PKG-INFO 2023-11-06 07:11:58.886822700 +0100 +++ new/tldextract-5.1.1/PKG-INFO 2023-11-17 04:43:35.332430400 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tldextract -Version: 5.1.0 +Version: 5.1.1 Summary: Accurately separates a URL's subdomain, domain, and public suffix, using the Public Suffix List (PSL). By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well. Author-email: John Kurkowski <john.kurkow...@gmail.com> License: BSD-3-Clause @@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Requires-Python: >=3.8 Description-Content-Type: text/markdown License-File: LICENSE @@ -33,7 +34,7 @@ Requires-Dist: types-filelock; extra == "testing" Requires-Dist: types-requests; extra == "testing" -# tldextract [![PyPI version](https://badge.fury.io/py/tldextract.svg)](https://badge.fury.io/py/tldextract) [![Build Status](https://travis-ci.com/john-kurkowski/tldextract.svg?branch=master)](https://app.travis-ci.com/github/john-kurkowski/tldextract) +# tldextract [![PyPI version](https://badge.fury.io/py/tldextract.svg)](https://badge.fury.io/py/tldextract) [![Build Status](https://github.com/john-kurkowski/tldextract/actions/workflows/ci.yml/badge.svg)](https://github.com/john-kurkowski/tldextract/actions/workflows/ci.yml) `tldextract` accurately separates a URL's subdomain, domain, and public suffix, using [the Public Suffix List (PSL)](https://publicsuffix.org). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/README.md new/tldextract-5.1.1/README.md --- old/tldextract-5.1.0/README.md 2023-10-28 20:47:14.000000000 +0200 +++ new/tldextract-5.1.1/README.md 2023-11-13 21:07:39.000000000 +0100 @@ -1,4 +1,4 @@ -# tldextract [![PyPI version](https://badge.fury.io/py/tldextract.svg)](https://badge.fury.io/py/tldextract) [![Build Status](https://travis-ci.com/john-kurkowski/tldextract.svg?branch=master)](https://app.travis-ci.com/github/john-kurkowski/tldextract) +# tldextract [![PyPI version](https://badge.fury.io/py/tldextract.svg)](https://badge.fury.io/py/tldextract) [![Build Status](https://github.com/john-kurkowski/tldextract/actions/workflows/ci.yml/badge.svg)](https://github.com/john-kurkowski/tldextract/actions/workflows/ci.yml) `tldextract` accurately separates a URL's subdomain, domain, and public suffix, using [the Public Suffix List (PSL)](https://publicsuffix.org). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/pyproject.toml new/tldextract-5.1.1/pyproject.toml --- old/tldextract-5.1.0/pyproject.toml 2023-11-05 01:24:19.000000000 +0100 +++ new/tldextract-5.1.1/pyproject.toml 2023-11-13 21:07:39.000000000 +0100 @@ -27,6 +27,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] requires-python = ">=3.8" dynamic = ["version"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tests/custom_suffix_test.py new/tldextract-5.1.1/tests/custom_suffix_test.py --- old/tldextract-5.1.0/tests/custom_suffix_test.py 2023-10-11 10:30:22.000000000 +0200 +++ new/tldextract-5.1.1/tests/custom_suffix_test.py 2023-11-13 21:07:39.000000000 +0100 @@ -2,13 +2,17 @@ import os import tempfile +from pathlib import Path import tldextract from tldextract.tldextract import ExtractResult -FAKE_SUFFIX_LIST_URL = "file://" + os.path.join( - os.path.dirname(os.path.abspath(__file__)), "fixtures/fake_suffix_list_fixture.dat" -) +FAKE_SUFFIX_LIST_URL = Path( + os.path.dirname(os.path.abspath(__file__)), + "fixtures", + "fake_suffix_list_fixture.dat", +).as_uri() + EXTRA_SUFFIXES = ["foo1", "bar1", "baz1"] extract_using_fake_suffix_list = tldextract.TLDExtract( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tests/test_cache.py new/tldextract-5.1.1/tests/test_cache.py --- old/tldextract-5.1.0/tests/test_cache.py 2023-10-11 21:15:35.000000000 +0200 +++ new/tldextract-5.1.1/tests/test_cache.py 2023-11-13 21:07:39.000000000 +0100 @@ -1,7 +1,6 @@ """Test the caching functionality.""" from __future__ import annotations -import os.path import sys import types from collections.abc import Hashable @@ -56,14 +55,14 @@ monkeypatch.delenv("HOME", raising=False) monkeypatch.delenv("XDG_CACHE_HOME", raising=False) monkeypatch.delenv("TLDEXTRACT_CACHE", raising=False) - assert get_cache_dir().endswith("tldextract/.suffix_cache/") + assert get_cache_dir().endswith(str(Path("tldextract", ".suffix_cache"))) # with home set, but not anything else specified, use XDG_CACHE_HOME default monkeypatch.setenv("HOME", "/home/john") monkeypatch.delenv("XDG_CACHE_HOME", raising=False) monkeypatch.delenv("TLDEXTRACT_CACHE", raising=False) - assert get_cache_dir() == os.path.join( - "/home/john", ".cache/python-tldextract", pkg_identifier + assert get_cache_dir() == str( + Path("/home/john", ".cache/python-tldextract", pkg_identifier) ) # if XDG_CACHE_HOME is set, use it @@ -71,8 +70,8 @@ monkeypatch.setenv("XDG_CACHE_HOME", "/my/alt/cache") monkeypatch.delenv("TLDEXTRACT_CACHE", raising=False) - assert get_cache_dir() == os.path.join( - "/my/alt/cache/python-tldextract", pkg_identifier + assert get_cache_dir() == str( + Path("/my/alt/cache/python-tldextract", pkg_identifier) ) # if TLDEXTRACT_CACHE is set, use it diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tests/test_parallel.py new/tldextract-5.1.1/tests/test_parallel.py --- old/tldextract-5.1.0/tests/test_parallel.py 2023-11-06 05:56:54.000000000 +0100 +++ new/tldextract-5.1.1/tests/test_parallel.py 2023-11-17 04:34:21.000000000 +0100 @@ -1,7 +1,8 @@ """Test ability to run in parallel with shared cache.""" +from __future__ import annotations + import os -import os.path from multiprocessing import Pool from pathlib import Path @@ -43,9 +44,23 @@ extract("google.com") orig_unlink = os.unlink - def evil_unlink(filename: str) -> None: + def is_relative_to(path: Path, other_path: str | Path) -> bool: + """Return True if path is relative to other_path or False. + + Taken from the Python 3.9 standard library. + Reference: https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.is_relative_to + """ + try: + path.relative_to(other_path) + return True + except ValueError: + return False + + def evil_unlink(filename: str | Path) -> None: """Simulate someone deletes the file right before we try to.""" - if filename.startswith(cache_dir): + if (isinstance(filename, str) and filename.startswith(cache_dir)) or ( + isinstance(filename, Path) and is_relative_to(filename, cache_dir) + ): orig_unlink(filename) orig_unlink(filename) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tldextract/_version.py new/tldextract-5.1.1/tldextract/_version.py --- old/tldextract-5.1.0/tldextract/_version.py 2023-11-06 07:11:58.000000000 +0100 +++ new/tldextract-5.1.1/tldextract/_version.py 2023-11-17 04:43:35.000000000 +0100 @@ -12,5 +12,5 @@ __version_tuple__: VERSION_TUPLE version_tuple: VERSION_TUPLE -__version__ = version = '5.1.0' -__version_tuple__ = version_tuple = (5, 1, 0) +__version__ = version = '5.1.1' +__version_tuple__ = version_tuple = (5, 1, 1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tldextract/cache.py new/tldextract-5.1.1/tldextract/cache.py --- old/tldextract-5.1.0/tldextract/cache.py 2023-10-18 02:07:17.000000000 +0200 +++ new/tldextract-5.1.1/tldextract/cache.py 2023-11-13 21:07:39.000000000 +0100 @@ -6,9 +6,9 @@ import json import logging import os -import os.path import sys from collections.abc import Callable, Hashable, Iterable +from pathlib import Path from typing import ( TypeVar, cast, @@ -79,15 +79,15 @@ if xdg_cache_home is None: user_home = os.getenv("HOME", None) if user_home: - xdg_cache_home = os.path.join(user_home, ".cache") + xdg_cache_home = str(Path(user_home, ".cache")) if xdg_cache_home is not None: - return os.path.join( - xdg_cache_home, "python-tldextract", get_pkg_unique_identifier() + return str( + Path(xdg_cache_home, "python-tldextract", get_pkg_unique_identifier()) ) # fallback to trying to use package directory itself - return os.path.join(os.path.dirname(__file__), ".suffix_cache/") + return str(Path(os.path.dirname(__file__), ".suffix_cache")) class DiskCache: @@ -153,7 +153,7 @@ self.file_ext + ".lock" ): try: - os.unlink(os.path.join(root, filename)) + os.unlink(str(Path(root, filename))) except FileNotFoundError: pass except OSError as exc: @@ -165,10 +165,10 @@ def _key_to_cachefile_path( self, namespace: str, key: str | dict[str, Hashable] ) -> str: - namespace_path = os.path.join(self.cache_dir, namespace) + namespace_path = str(Path(self.cache_dir, namespace)) hashed_key = _make_cache_key(key) - cache_path = os.path.join(namespace_path, hashed_key + self.file_ext) + cache_path = str(Path(namespace_path, hashed_key + self.file_ext)) return cache_path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tldextract.egg-info/PKG-INFO new/tldextract-5.1.1/tldextract.egg-info/PKG-INFO --- old/tldextract-5.1.0/tldextract.egg-info/PKG-INFO 2023-11-06 07:11:58.000000000 +0100 +++ new/tldextract-5.1.1/tldextract.egg-info/PKG-INFO 2023-11-17 04:43:35.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tldextract -Version: 5.1.0 +Version: 5.1.1 Summary: Accurately separates a URL's subdomain, domain, and public suffix, using the Public Suffix List (PSL). By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well. Author-email: John Kurkowski <john.kurkow...@gmail.com> License: BSD-3-Clause @@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Requires-Python: >=3.8 Description-Content-Type: text/markdown License-File: LICENSE @@ -33,7 +34,7 @@ Requires-Dist: types-filelock; extra == "testing" Requires-Dist: types-requests; extra == "testing" -# tldextract [![PyPI version](https://badge.fury.io/py/tldextract.svg)](https://badge.fury.io/py/tldextract) [![Build Status](https://travis-ci.com/john-kurkowski/tldextract.svg?branch=master)](https://app.travis-ci.com/github/john-kurkowski/tldextract) +# tldextract [![PyPI version](https://badge.fury.io/py/tldextract.svg)](https://badge.fury.io/py/tldextract) [![Build Status](https://github.com/john-kurkowski/tldextract/actions/workflows/ci.yml/badge.svg)](https://github.com/john-kurkowski/tldextract/actions/workflows/ci.yml) `tldextract` accurately separates a URL's subdomain, domain, and public suffix, using [the Public Suffix List (PSL)](https://publicsuffix.org). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tldextract.egg-info/SOURCES.txt new/tldextract-5.1.1/tldextract.egg-info/SOURCES.txt --- old/tldextract-5.1.0/tldextract.egg-info/SOURCES.txt 2023-11-06 07:11:58.000000000 +0100 +++ new/tldextract-5.1.1/tldextract.egg-info/SOURCES.txt 2023-11-17 04:43:35.000000000 +0100 @@ -1,11 +1,11 @@ .gitignore -.travis.yml CHANGELOG.md LICENSE README.md pyproject.toml tox.ini .github/FUNDING.yml +.github/workflows/ci.yml tests/__init__.py tests/cli_test.py tests/conftest.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tldextract-5.1.0/tox.ini new/tldextract-5.1.1/tox.ini --- old/tldextract-5.1.0/tox.ini 2023-10-28 20:47:14.000000000 +0200 +++ new/tldextract-5.1.1/tox.ini 2023-11-13 21:07:39.000000000 +0100 @@ -1,5 +1,5 @@ [tox] -envlist = py{38,39,310,311,py3},codestyle,lint,typecheck +envlist = py{38,39,310,311,312,py38},codestyle,lint,typecheck [testenv] commands = pytest {posargs}