From b23255fe7f1ce31e8995f446c339c7213467d21d30e4e0ed9cb65316bcaa44dc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 17 Nov 2025 21:12:14 +0000 Subject: [PATCH] - update to 1.1.2: * Update internal tables for Unicode 17.0. * Drop support for Python 3.5 and 3.6. * Update copyright year (2025). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-precis-i18n?expand=0&rev=21 --- .gitattributes | 23 +++++++++ .gitignore | 1 + precis_i18n-1.1.1.tar.gz | 3 ++ precis_i18n-1.1.2.tar.gz | 3 ++ python-precis-i18n.changes | 103 +++++++++++++++++++++++++++++++++++++ python-precis-i18n.spec | 71 +++++++++++++++++++++++++ 6 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 precis_i18n-1.1.1.tar.gz create mode 100644 precis_i18n-1.1.2.tar.gz create mode 100644 python-precis-i18n.changes create mode 100644 python-precis-i18n.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/precis_i18n-1.1.1.tar.gz b/precis_i18n-1.1.1.tar.gz new file mode 100644 index 0000000..83f50e8 --- /dev/null +++ b/precis_i18n-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d8791b2fa989e0aa1a6491256e774ae7d5adbc1046e8402dec17c87f9b330d7 +size 275590 diff --git a/precis_i18n-1.1.2.tar.gz b/precis_i18n-1.1.2.tar.gz new file mode 100644 index 0000000..11a7fcd --- /dev/null +++ b/precis_i18n-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ba244eb65a4c9db180b3223458acc9cce425ae5931ae4ccaad5a2cb351094aa +size 288116 diff --git a/python-precis-i18n.changes b/python-precis-i18n.changes new file mode 100644 index 0000000..4ecb44c --- /dev/null +++ b/python-precis-i18n.changes @@ -0,0 +1,103 @@ +------------------------------------------------------------------- +Mon Nov 17 21:11:57 UTC 2025 - Dirk Müller + +- update to 1.1.2: + * Update internal tables for Unicode 17.0. + * Drop support for Python 3.5 and 3.6. + * Update copyright year (2025). + +------------------------------------------------------------------- +Wed Nov 20 14:57:38 UTC 2024 - Dirk Müller + +- update to 1.1.1: + * Update internal tables for Unicode 16.0. + * Remove `test_suite` from setup.py file. Contributed by + `adrien-n` (PR #38). + * Add Python 3.14-dev to CI build environment. + * Update copyright year (2024). + +------------------------------------------------------------------- +Fri Apr 19 11:23:20 UTC 2024 - Max Lin + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Dec 27 15:12:17 UTC 2023 - Ben Greiner + +- Update specfile for PEP517 and python packaging best practices + +------------------------------------------------------------------- +Wed Dec 27 14:54:32 UTC 2023 - Dirk Müller + +- update to 1.1.0: + * Fixed an issue in the Nickname profile implementation that + trimmed extra leading/trailing white space beyond the `Zs` + category prescribed in RFC 8266. Python treats certain + Unicode control characters as white space. If these appeared + as leading/trailing spaces in a Nickname string, they + were stripped. With this release, the Nickname profile will + raise a UnicodeEncodeError `DISALLOWED/controls` if any control + characters are encountered. (Issue #29) + * Update internal tables for Unicode 15.1. + * Change format of README and CHANGELOG files to Markdown. + * Drop support for Python 3.3 and 3.4. + +------------------------------------------------------------------- +Wed Jan 4 20:08:03 UTC 2023 - Dirk Müller + +- update to 1.0.5: + * Update internal tables for Unicode 15.0. + * Small type hint fix to one ``.pyi`` file. + * Add Python 3.11 and 3.12 to CI build environment. + * Update copyright year (2023). + +------------------------------------------------------------------- +Mon Feb 14 21:48:20 UTC 2022 - Dirk Müller + +- update to 1.0.4: + * Update internal tables for Unicode 14.0. These updates also affect context + rules for Unicode 11.0 through 13.0. + * In limited cases under previous versions of precis_i18n, valid strings under + Unicode 11.0-13.0 were erroneously DISALLOWED due to context reasons + hebrew_punctuation, katakana_middle_dot, and zero_width_nonjoiner. (Issue #19) + * Add type hints for package + +------------------------------------------------------------------- +Sun May 2 14:26:42 UTC 2021 - Ben Greiner + +- Update to 1.0.3 + * MANIFEST.in excludes test_derived_props_files.py; test data + files are not packaged. + * CI script now builds source package and runs tests from it. + * Use Github Actions for continuous integration. + * Update copyright year (2021). +- Release 1.0.2 + * get_profile now supports alternative unicodedata2 module + (Issue #8). + * get_profile maps ':' to '_' before looking up profile name + (Issue #10). + * Test Unicode 12.1 for Python 3.8. + * Test Unicode 12.0 (Using optional unicodedata2 module) + * Test Unicode 13.0 for Python 3.9 (Issue #9). +Update copyright year (2020). +- Drop support_unicode_12.1_for_python_3.8.patch + +------------------------------------------------------------------- +Wed Mar 11 20:40:12 UTC 2020 - Benoît Monin + +- add support_unicode_12.1_for_python_3.8.patch to fix test under + python 3.8 + +------------------------------------------------------------------- +Tue Jul 23 11:14:01 UTC 2019 - Tomáš Chvátal + +- Update to 1.0.1: + * Fixed a dict/set syntax typo that has no runtime effect (6ae6876). + * Test forward compatibility of derived props test files as Unicode version increases. + * Test Unicode 11.0 (Python 3.7). +- Switch to github tarball for all test fixtures + +------------------------------------------------------------------- +Mon Nov 19 12:42:07 UTC 2018 - sor.alexei@meowr.ru + +- Initial package. diff --git a/python-precis-i18n.spec b/python-precis-i18n.spec new file mode 100644 index 0000000..0814f73 --- /dev/null +++ b/python-precis-i18n.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-precis-i18n +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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} +%define _name precis_i18n +Name: python-precis-i18n +Version: 1.1.2 +Release: 0 +Summary: Internationalised Usernames and Passwords +License: MIT +Group: Development/Languages/Python +URL: https://github.com/byllyfish/precis_i18n +Source: https://github.com/byllyfish/precis_i18n/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-unicodedata2 +BuildArch: noarch +Provides: python-%{_name} = %{version}-%{release} +%python_subpackages + +%description +The PRECIS framework makes internationalised user names and +passwords safer for use by applications. PRECIS profiles transform +unicode strings into a canonical form, suitable for comparison. + +This module implements the PRECIS Framework as described in: + - PRECIS Framework: Preparation, Enforcement, and Comparison of + Internationalized Strings in Application Protocols (RFC 8264). + - Preparation, Enforcement, and Comparison of Internationalized + Strings Representing Usernames and Passwords (RFC 8265). + - Preparation, Enforcement, and Comparison of Internationalized + Strings Representing Nicknames (RFC 8266). + +%prep +%autosetup -n %{_name}-%{version} -p1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib}/ + +%check +%pyunittest -v + +%files %{python_files} +%license LICENSE.txt +%doc CHANGELOG.md README.md +%{python_sitelib}/%{_name}/ +%{python_sitelib}/%{_name}-%{version}.dist-info + +%changelog