15
0

- Lowercase metadata directory name.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-IMAPClient?expand=0&rev=15
This commit is contained in:
2025-03-25 02:47:46 +00:00
committed by Git OBS Bridge
commit c2f37227ab
5 changed files with 244 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

3
3.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dff1dfe7e7cc16428053dd2cd9895623e97f733ce1ec0a9c1c21557821146cb3
size 93611

145
python-IMAPClient.changes Normal file
View File

@@ -0,0 +1,145 @@
-------------------------------------------------------------------
Tue Mar 25 02:47:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Sat Jan 6 20:21:57 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <otto.hollmann@suse.com>
- 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 <adrian.glaubitz@suse.com>
- 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 <jengelh@inai.de>
- Trim bias and filler wording from descriptions.
-------------------------------------------------------------------
Sun Jun 7 07:10:44 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Tidy spec
- Activate test suite
-------------------------------------------------------------------
Wed Mar 6 23:16:14 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
- 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

72
python-IMAPClient.spec Normal file
View File

@@ -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