From a10be5223c4ebd8f7e96b7581851bab127d3a4832e9b3c1c29a4385547db5810 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 4 Sep 2024 10:01:09 +0000 Subject: [PATCH] - update to version 1.0.2: - Use @typing.overload to indicate str-to-str domain input/output. #32. - Address deprecation of ByteString in python 3.14. - update to version 1.0.1: - Fix internal logic where domain name passed as a tuple of bytes, that contains UTF-8 encoded non-ascii chars, unintentionally matched PSL. Fixes #31. - update to version 1.0.0: - This version drops support for Python 2.x and 3.4. - The internal logic has been slightly changed to address conflicting evaluation rules between the PSL wiki and the test data. As with versions before 1.0.0, this module assumes that wildcards have implicit public declarations on the wildcard root. - With the minimum Python version changed to 3.5, type annotations have been added to exposed API methods to clarify expected input types. For example, psl.publicsuffix() now accepts `str` or `Tuple[bytes, ...]`. - Add tuple of bytes style input - Add keep_case keyword argument - Accept trailing dot - Migrate CI to GitHub Actions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-publicsuffixlist?expand=0&rev=47 --- .gitattributes | 23 +++ .gitignore | 1 + change_psl_location.patch | 11 ++ publicsuffixlist-0.10.0.20240420.tar.gz | 3 + publicsuffixlist-1.0.2.20240903.tar.gz | 3 + python-publicsuffixlist.changes | 212 ++++++++++++++++++++++++ python-publicsuffixlist.spec | 72 ++++++++ 7 files changed, 325 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 change_psl_location.patch create mode 100644 publicsuffixlist-0.10.0.20240420.tar.gz create mode 100644 publicsuffixlist-1.0.2.20240903.tar.gz create mode 100644 python-publicsuffixlist.changes create mode 100644 python-publicsuffixlist.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/change_psl_location.patch b/change_psl_location.patch new file mode 100644 index 0000000..9691d1a --- /dev/null +++ b/change_psl_location.patch @@ -0,0 +1,11 @@ +--- publicsuffixlist-1.0.2.20240903/publicsuffixlist/__init__.py 2024-09-03 05:27:39.000000000 +0200 ++++ publicsuffixlist-1.0.2.20240903/publicsuffixlist/__init__.py 2024-09-04 11:59:54.896862467 +0200 +@@ -18,7 +18,7 @@ + + PSLURL = "https://publicsuffix.org/list/public_suffix_list.dat" + +-PSLFILE = os.path.join(os.path.dirname(__file__), "public_suffix_list.dat") ++PSLFILE = "/usr/share/publicsuffix/public_suffix_list.dat" + + BytesTuple = Tuple[bytes, ...] + ByteString = Union[bytes, bytearray] diff --git a/publicsuffixlist-0.10.0.20240420.tar.gz b/publicsuffixlist-0.10.0.20240420.tar.gz new file mode 100644 index 0000000..e9120a0 --- /dev/null +++ b/publicsuffixlist-0.10.0.20240420.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3cc4f91eb3fc4595e8ea7ce94c64e3cb98d2bdd9ed932cad7c5199afdff6ba2 +size 101205 diff --git a/publicsuffixlist-1.0.2.20240903.tar.gz b/publicsuffixlist-1.0.2.20240903.tar.gz new file mode 100644 index 0000000..09e16ab --- /dev/null +++ b/publicsuffixlist-1.0.2.20240903.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99c7f35974ef30a5dbe57739736a7078e16e304f0a520b7234fa11b2cc5fec40 +size 104838 diff --git a/python-publicsuffixlist.changes b/python-publicsuffixlist.changes new file mode 100644 index 0000000..7f25e42 --- /dev/null +++ b/python-publicsuffixlist.changes @@ -0,0 +1,212 @@ +------------------------------------------------------------------- +Wed Sep 4 09:57:53 UTC 2024 - Sebastian Wagner + +- update to version 1.0.2: + - Use @typing.overload to indicate str-to-str domain input/output. #32. + - Address deprecation of ByteString in python 3.14. +- update to version 1.0.1: + - Fix internal logic where domain name passed as a tuple of bytes, that contains + UTF-8 encoded non-ascii chars, unintentionally matched PSL. Fixes #31. +- update to version 1.0.0: + - This version drops support for Python 2.x and 3.4. + - The internal logic has been slightly changed to address conflicting evaluation + rules between the PSL wiki and the test data. + As with versions before 1.0.0, this module assumes that wildcards have + implicit public declarations on the wildcard root. + - With the minimum Python version changed to 3.5, type annotations have + been added to exposed API methods to clarify expected input types. + For example, psl.publicsuffix() now accepts `str` or `Tuple[bytes, ...]`. + - Add tuple of bytes style input + - Add keep_case keyword argument + - Accept trailing dot + - Migrate CI to GitHub Actions + +------------------------------------------------------------------- +Sun Apr 21 08:37:11 UTC 2024 - Dirk Müller + +- update to 0.10.0.20240420: + * various toplevel domain updates + +------------------------------------------------------------------- +Mon Apr 15 09:40:57 UTC 2024 - Dirk Müller + +- update to 0.10.0.20240412: + * various toplevel domain updates + +------------------------------------------------------------------- +Tue Mar 19 07:08:44 UTC 2024 - Dirk Müller + +- update to 0.10.0.20240312: + * various toplevel domain updates + +------------------------------------------------------------------- +Fri Mar 1 04:30:30 UTC 2024 - Steve Kowalik + +- Update to 0.10.0.20240214: + * various toplevel domain updates +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Tue Jan 9 21:34:35 UTC 2024 - Dirk Müller + +- update to 0.10.0.20240108: + * various toplevel domain updates + +------------------------------------------------------------------- +Wed Dec 27 14:08:21 UTC 2023 - Dirk Müller + +- update to 0.10.0.20231214: + * various toplevel domain updates + +------------------------------------------------------------------- +Tue Nov 14 13:17:06 UTC 2023 - Dirk Müller + +- Update to version 0.10.0.20231109: + * switch to automatically generated and uploaded to PyPI + release. + +------------------------------------------------------------------- +Fri Oct 28 20:00:11 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.9.1 + * Use underscore in setup.cfg format + +------------------------------------------------------------------- +Tue Oct 4 23:30:13 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version to 0.9.0 + * Update PSL + * Add tests for accept_unknown as method argument + * Fix using a non-default accept_unknown in privatesuffix() + +- Update to version to 0.8.0 + * Update PSL + * Ensure privateparts returns lowercase labels + * Fix is_public for upper case input + * Fix lowercase for TLD only suffix + * Update PSL + * Update PSL + * Update PSL + * Increment version + * Update PSL + * Add testcase for wildcard match + * Update test data and readme link + * Update PSL + * Update PSL + * Migrate CI to travis-ci.com + * Update PSL + * Update PSL + * Update PSL + * Update PSL + +------------------------------------------------------------------- +Thu Dec 16 08:10:00 UTC 2021 - Sebastian Wagner + +- Update to version 0.7.11: + - Add testcase for wildcard match. + - Update test data and readme link. + - Fixes issue #19 + - Update PSL. +- Update to version 0.7.10: + - Update PSL. +- Update to version 0.7.9: + - Update PSL. + +------------------------------------------------------------------- +Sun May 30 10:42:48 UTC 2021 - Sebastian Wagner + +- update to version 0.7.8: + - Update PSL + +------------------------------------------------------------------- +Thu May 27 08:06:33 UTC 2021 - pgajdos@suse.com + +- version update to 0.7.7 + * PSL updates + +------------------------------------------------------------------- +Thu Nov 19 06:34:19 UTC 2020 - John Vandenberg + +- Remove tests from runtime package +- Update to v0.7.3-5 + * PSL updates + +------------------------------------------------------------------- +Wed Jun 3 11:14:04 UTC 2020 - Sebastian Wagner + +- Update to version 0.7.2: + * Fix PSL file timestamp offset caused by TZ. +- Update to version 0.7.1: + * Update PSL. +- Update to version 0.7.0: + * Drop Python 2.5 support. + * Use file context managers. +- Update to version to 0.6.15: + * Update PSL. +- Update to version 0.6.14: + * Use privatesuffix instead of its alias. + * Fix typo. + +------------------------------------------------------------------- +Thu Mar 19 09:32:59 UTC 2020 - Marketa Calabkova + +- Update to 0.6.13 + * no changelog found + +------------------------------------------------------------------- +Tue Sep 10 12:57:43 UTC 2019 - Tomáš Chvátal + +- Update to 0.6.11: + * no upstream changelog + +------------------------------------------------------------------- +Tue Jul 23 10:56:41 UTC 2019 - Tomáš Chvátal + +- Update to 0.6.9: + * no upstream changelog + +------------------------------------------------------------------- +Mon May 20 08:06:14 UTC 2019 - pgajdos@suse.com + +- version update to 0.6.7 + * no upstream changelog + +------------------------------------------------------------------- +Sat Mar 16 13:25:05 UTC 2019 - Sebastian Wagner + +- Update to version 0.6.5: + * No changes +- Update to version 0.6.4: + * No changes + +------------------------------------------------------------------- +Tue Jan 15 21:29:54 UTC 2019 - Sebastian Wagner + +- Update to version 0.6.3: + * No changes +- Update to version 0.6.2: + * No changes + +------------------------------------------------------------------- +Tue Dec 4 12:51:48 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon May 21 06:48:00 UTC 2018 - sebix@sebix.at + +- update to version 0.6.1: + - cleanup pypi descriptors +- update to version 0.6.0: + - support for icann-only suffixes + +------------------------------------------------------------------- +Mon May 14 09:37:38 UTC 2018 - sebix@sebix.at + +- add change_psl_location.patch to use list from publicsuffix package. + +------------------------------------------------------------------- +Thu Mar 29 09:35:22 UTC 2018 - sebix@sebix.at + +- initial package for version 0.5.0 diff --git a/python-publicsuffixlist.spec b/python-publicsuffixlist.spec new file mode 100644 index 0000000..0bf2353 --- /dev/null +++ b/python-publicsuffixlist.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-publicsuffixlist +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-publicsuffixlist +Version: 1.0.2.20240903 +Release: 0 +Summary: Public suffix list implementaion in Python +License: MPL-2.0 +URL: https://github.com/ko-zu/psl +Source: https://files.pythonhosted.org/packages/source/p/publicsuffixlist/publicsuffixlist-%{version}.tar.gz +# PATCH-FIX-OPENSUSE change_psl_location.patch -- use list from publicsuffix package +Patch0: change_psl_location.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION tests +BuildRequires: publicsuffix +# /SECTION +Requires: publicsuffix +Recommends: python-requests +BuildArch: noarch + +%python_subpackages + +%description +Parser implementation for the Public Suffix List in Python. + +Support for IDN (unicode or punycoded). + +%prep +%autosetup -p1 -n publicsuffixlist-%{version} +sed -i '/public_suffix_list\.dat/ d' setup.py +rm publicsuffixlist/update.py + +%build +%pyproject_wheel + +%install +%pyproject_install +rm %{buildroot}%{_bindir}/publicsuffixlist-download +%{python_expand rm -f %{buildroot}%{$python_sitelib}/publicsuffixlist/test* %{buildroot}%{$python_sitelib}/publicsuffixlist/__pycache__/test* +%fdupes %{buildroot}%{$python_sitelib} +} + +%check +%pyunittest discover -v + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/publicsuffixlist +%{python_sitelib}/publicsuffixlist-%{version}.dist-info + +%changelog