forked from pool/python-publicsuffixlist
- update to 1.0.2.20250428:
* various toplevel domain updates OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-publicsuffixlist?expand=0&rev=59
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
11
change_psl_location.patch
Normal file
11
change_psl_location.patch
Normal file
@@ -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]
|
||||
3
publicsuffixlist-0.10.0.20240420.tar.gz
Normal file
3
publicsuffixlist-0.10.0.20240420.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3cc4f91eb3fc4595e8ea7ce94c64e3cb98d2bdd9ed932cad7c5199afdff6ba2
|
||||
size 101205
|
||||
3
publicsuffixlist-1.0.2.20240903.tar.gz
Normal file
3
publicsuffixlist-1.0.2.20240903.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:99c7f35974ef30a5dbe57739736a7078e16e304f0a520b7234fa11b2cc5fec40
|
||||
size 104838
|
||||
3
publicsuffixlist-1.0.2.20241018.tar.gz
Normal file
3
publicsuffixlist-1.0.2.20241018.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4f79b29a1e0538055b31d7a9e89851e89b9dd8d3b01b06e4828d3c5dc89d15b1
|
||||
size 104431
|
||||
3
publicsuffixlist-1.0.2.20241107.tar.gz
Normal file
3
publicsuffixlist-1.0.2.20241107.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d7c7839350f9d053245b549d499605843b755dbdefc2cf92d5dc69b81e5bf923
|
||||
size 104411
|
||||
3
publicsuffixlist-1.0.2.20241120.tar.gz
Normal file
3
publicsuffixlist-1.0.2.20241120.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bc8805fa02e4bc82745405896999a6450098c1551d66491cebb36f57f5f402a8
|
||||
size 104749
|
||||
3
publicsuffixlist-1.0.2.20250225.tar.gz
Normal file
3
publicsuffixlist-1.0.2.20250225.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fb78dab1e437a84aacaed63c40fd18a0d34e0bf280d6d8acab890b472fdfd764
|
||||
size 104803
|
||||
3
publicsuffixlist-1.0.2.20250428.tar.gz
Normal file
3
publicsuffixlist-1.0.2.20250428.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:03287ce5fb357a234d27324d8055776d661cdccc3e88476f341f7e722dc163af
|
||||
size 105221
|
||||
248
python-publicsuffixlist.changes
Normal file
248
python-publicsuffixlist.changes
Normal file
@@ -0,0 +1,248 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 16:56:06 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2.20250428:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 25 20:31:07 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2.20250225:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 15:26:51 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2.20241120:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 09:08:53 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2.20241107:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 18 10:50:09 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2.20241018:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 30 10:37:49 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2.20240927:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 4 09:57:53 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- update to 0.10.0.20240420:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 15 09:40:57 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.10.0.20240412:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 19 07:08:44 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.10.0.20240312:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 1 04:30:30 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- update to 0.10.0.20240108:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 27 14:08:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.10.0.20231214:
|
||||
* various toplevel domain updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 14 13:17:06 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <yarunachalam@suse.com>
|
||||
|
||||
- Update to version 0.9.1
|
||||
* Use underscore in setup.cfg format
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 4 23:30:13 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- 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 <sebix@sebix.at>
|
||||
|
||||
- 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 <sebix@sebix.at>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- Remove tests from runtime package
|
||||
- Update to v0.7.3-5
|
||||
* PSL updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 11:14:04 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
|
||||
|
||||
- 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 <mcalabkova@suse.com>
|
||||
|
||||
- Update to 0.6.13
|
||||
* no changelog found
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 10 12:57:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 0.6.11:
|
||||
* no upstream changelog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 23 10:56:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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 <sebix@sebix.at>
|
||||
|
||||
- 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 <sebix@sebix.at>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
- 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
|
||||
72
python-publicsuffixlist.spec
Normal file
72
python-publicsuffixlist.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# spec file for package python-publicsuffixlist
|
||||
#
|
||||
# Copyright (c) 2025 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.20250428
|
||||
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 <https://publicsuffix.org/> 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
|
||||
Reference in New Issue
Block a user