From c2f37227abf5a1415158f2f6f10820491c7f113ba37620eb54f3ec8b42dd6c73 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 25 Mar 2025 02:47:46 +0000 Subject: [PATCH 1/2] - Lowercase metadata directory name. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-IMAPClient?expand=0&rev=15 --- .gitattributes | 23 ++++++ .gitignore | 1 + 3.0.1.tar.gz | 3 + python-IMAPClient.changes | 145 ++++++++++++++++++++++++++++++++++++++ python-IMAPClient.spec | 72 +++++++++++++++++++ 5 files changed, 244 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 3.0.1.tar.gz create mode 100644 python-IMAPClient.changes create mode 100644 python-IMAPClient.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/3.0.1.tar.gz b/3.0.1.tar.gz new file mode 100644 index 0000000..635e88b --- /dev/null +++ b/3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dff1dfe7e7cc16428053dd2cd9895623e97f733ce1ec0a9c1c21557821146cb3 +size 93611 diff --git a/python-IMAPClient.changes b/python-IMAPClient.changes new file mode 100644 index 0000000..725c8bb --- /dev/null +++ b/python-IMAPClient.changes @@ -0,0 +1,145 @@ +------------------------------------------------------------------- +Tue Mar 25 02:47:32 UTC 2025 - Steve Kowalik + +- Lowercase metadata directory name. + +------------------------------------------------------------------- +Sat Jan 6 20:21:57 UTC 2024 - Dirk Müller + +- update to 3.0.1: + * Fix missing test files +- update to 3.0.0: + * Remove support for Python 2 + * Default contexts should use SERVER_AUTH not CLIENT_AUTH + * New function `uid_expunge`, which requires the capability + UIDPLUS. + * fix: broken `get()` & `getboolean()` + * Remove configparser deprecation warnings + * chore: convert from `optparse` to `argparse` + * Fix typos in docs' index file + * Update documentation links + * Remove usage of deprecated imp module + * Update actions to current versions + * Fix license in setup.py + * Add use of the `isort` linter + * Initial framework for adding type-hints and added type-hints + to `version.py` + * Bump flake8 from 4.0.1 to 6.1.0 + * Bump black from 22.3.0 to 23.7.0 +- drop python-IMAPClient-no-python2.patch (upstream) + +------------------------------------------------------------------- +Mon Nov 7 10:45:39 UTC 2022 - pgajdos@suse.com + +- do not require six for build +- added patches + fix https://github.com/mjs/imapclient/commit/6e6ec34b0e71975134d9492add22361ce4beb2a0 + + python-IMAPClient-no-python2.patch + +------------------------------------------------------------------- +Tue Aug 2 15:54:01 UTC 2022 - Otto Hollmann + +- Update to 2.3.1 + Changed + ------- + - Use GitHub Actions instead of TravisCI + - Improvements to code examples + - Run tests with unittest instead of setup.py + Added + ----- + - New socket() method which provides access to the underlying network socket. This is useful for allowing the socket to be polled. + - Allow flags and internaldate to be specified for MULTIAPPEND + Fixed + ----- + - Default SSL contexts are now created with correct purpose + - Fixed undiscoverable tests due to name shadowing + - Fixed missing code block directives in documentation + - Fixed typo in tox envlist + - Fixed formatting in release notes + +------------------------------------------------------------------- +Mon Mar 21 11:09:15 UTC 2022 - pgajdos@suse.com + +- python-mock is actually not required for build + +------------------------------------------------------------------- +Thu Aug 26 11:12:06 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 2.2.0: + Changed + ------- + - Performance improvements (thanks Carson Ip!) + - 2x faster _maybe_int_to_bytes for Python 2 (#375) + - Fix _proc_folder_list quadratic runtime (#374) + - Faster utf7 encode (#373). ~40% faster for input with a mix of unicode and + ASCII chars. + - Cache regex in _process_select_response + - poll() when available to surpass 1024 file descriptor limit with select() + (#377) (thanks Jonny Hatch) + - Use next instead of six.next as imapclient doesn't claim Python 2.5 support. + (#396) (thanks Jasper Spaans) + - Moved "Logged in/out" traces from INFO to DEBUG level (thanks Fabio Manganiello) + - Run tests on Python 3.8 and 3.9 + - Support the Deleted special folder used by Outlook (thanks Samir M) + - Clean up timeout handling + - Run the Black code formatter over the entire project + Added + ----- + - MULTIAPPEND and LITERAL+ support (#399) (thanks Devin Bayer) + - Use ptpython for interactive shell if available (#272) + - Allow any custom SASL mechanism to be provided. This allows mechanisms such + as EXTERNAL, GSSAPI or SCRAM-SHA-256 to be used in the same way as with + imaplib. (thanks Mantas Mikulėnas) + - Add SASL OAUTHBEARER support + - add optional timeout parameter to IMAP4_TLS.open (thanks zrose584) + Fixed + ----- + - fixed special folder searching + - Catch the right exception in folder_status (#371) + - test_imapclient: Fix LoggerAdapter version check + (#383) (thanks Michał Górny) + - Fix config file parsing for None attributes + (#393) (thanks François Deppierraz) + - Fix useless ref cycle in lexer + - Protocol parsing: Prevent converting numbers with leading zeroes to int. + (#390) (#405) (thanks Jasper Spaans) + - Prevent UnicodeDecodeError in IMAPlibLoggerAdapter (#367) + - Fix invalid string escape sequences (#397) + - Ensure timeout is used on Python 2.7. _create_socket isn't used with the + Python 2 version of imaplib so the open method has been overrided to make it + consistent across Python version (#380). + - Fix IMAP4_TLS for imaplib in Python 3.9+ + (thanks Christopher Arndt, marmarek and link2xt) + +------------------------------------------------------------------- +Mon Jun 8 09:22:48 UTC 2020 - Jan Engelhardt + +- Trim bias and filler wording from descriptions. + +------------------------------------------------------------------- +Sun Jun 7 07:10:44 UTC 2020 - John Vandenberg + +- Tidy spec +- Activate test suite + +------------------------------------------------------------------- +Wed Mar 6 23:16:14 UTC 2019 - Hans-Peter Jansen + +- update to 2.1.0: + too many changes to list here, check github +- python single spec + +------------------------------------------------------------------- +Mon Dec 12 12:40:21 UTC 2016 - hpj@urpla.net + +- add runtime requirements + +------------------------------------------------------------------- +Mon Dec 12 12:25:27 UTC 2016 - hpj@urpla.net + +- remove backports.ssl tarball + +------------------------------------------------------------------- +Fri Nov 18 15:25:17 UTC 2016 - boris@steki.net + +- initial packaging diff --git a/python-IMAPClient.spec b/python-IMAPClient.spec new file mode 100644 index 0000000..96e6461 --- /dev/null +++ b/python-IMAPClient.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-IMAPClient +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2016-2019 LISA GmbH, Bingen, Germany. +# +# 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/ +# + + +Name: python-IMAPClient +Version: 3.0.1 +Release: 0 +Summary: Pythonic IMAP client library +License: BSD-3-Clause +URL: https://github.com/mjs/imapclient/ +Source0: https://github.com/mjs/imapclient/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools >= 20.5} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +IMAPClient is a Pythonic IMAP client library. + +Features: + * Arguments and return values are natural Python types. + * IMAP server responses are parsed and readily usable. + * IMAP unique message IDs (UIDs) and internationalised + mailbox names are handled transparently. + * Time zones are handled. + * Convenience methods are provided for commonly used functionality. + * Exceptions are raised when errors occur. + +IMAPClient includes comprehensive units tests and automated +functional tests that can be run against a live IMAP server. + +%prep +%setup -q -n imapclient-%{version} + +%build +sed -i 's:#!::' imapclient/interact.py +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_redacted_password fails on openSUSE 15.x only +%pytest -k 'not test_redacted_password' + +%files %{python_files} +%doc README.rst +%license COPYING +%{python_sitelib}/imapclient +%{python_sitelib}/imapclient-%{version}.dist-info + +%changelog From 7d18748a3055c3e044e1d53a4e5ab0a075f8e3e706bf27ca47caf24ccf5fb345 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 14 Apr 2025 05:58:55 +0000 Subject: [PATCH 2/2] - Support both lowercased and unnormalized metadata directory names. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-IMAPClient?expand=0&rev=16 --- python-IMAPClient.changes | 5 +++++ python-IMAPClient.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-IMAPClient.changes b/python-IMAPClient.changes index 725c8bb..01c0ec0 100644 --- a/python-IMAPClient.changes +++ b/python-IMAPClient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 14 05:58:44 UTC 2025 - Steve Kowalik + +- Support both lowercased and unnormalized metadata directory names. + ------------------------------------------------------------------- Tue Mar 25 02:47:32 UTC 2025 - Steve Kowalik diff --git a/python-IMAPClient.spec b/python-IMAPClient.spec index 96e6461..81b9cf5 100644 --- a/python-IMAPClient.spec +++ b/python-IMAPClient.spec @@ -67,6 +67,6 @@ sed -i 's:#!::' imapclient/interact.py %doc README.rst %license COPYING %{python_sitelib}/imapclient -%{python_sitelib}/imapclient-%{version}.dist-info +%{python_sitelib}/[Ii][Mm][Aa][Pp][Cc]lient-%{version}.dist-info %changelog