Sync from SUSE:SLFO:Main python-aiofiles revision d6d9f3c32a517836a9158a4d7e2c4cad

This commit is contained in:
Adrian Schröter 2024-05-03 20:01:33 +02:00
commit c77188d308
4 changed files with 219 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

BIN
aiofiles-23.2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

132
python-aiofiles.changes Normal file
View File

@ -0,0 +1,132 @@
-------------------------------------------------------------------
Thu Dec 14 09:12:51 UTC 2023 - Petr Gajdos <pgajdos@suse.com>
- update to 23.2.1:
* Import `os.statvfs` conditionally to fix importing on non-
UNIX systems.
* #171 #172
* aiofiles is now also tested on Windows.
update to 23.2.0:
* # 23.2.0
* aiofiles is now tested on Python 3.12 too.
* #166 #168
* On Python 3.12, `aiofiles.tempfile.NamedTemporaryFile` now
accepts a `delete_on_close` argument, just like the stdlib
version.
* On Python 3.12, `aiofiles.tempfile.NamedTemporaryFile` no
longer exposes a `delete` attribute, just like the stdlib
version.
* Added `aiofiles.os.statvfs` and `aiofiles.os.path.ismount`.
* #162
* Use PDM instead of Poetry.
* #169
-------------------------------------------------------------------
Sun Jun 11 13:37:03 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Thu Feb 23 14:10:32 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 23.1.0:
* Added ``aiofiles.os.access``.
* Removed ``aiofiles.tempfile.temptypes.AsyncSpooledTemporaryFile.softspace``.
* Added ``aiofiles.stdin``, ``aiofiles.stdin_bytes``, and
other stdio streams.
* Transition to ``asyncio.get_running_loop``
(vs ``asyncio.get_event_loop``) internally.
-------------------------------------------------------------------
Thu Sep 22 22:41:51 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 22.1.0
* Update README
* Update test deps
* Min Python to 3.7
* Bump poetry to 1.2.0
* Add missing comma
* CI tweaks
* Update README.rst
* Added os scantdir with is't tests and improved the tests for listdir
* Added os listdir function with it's tests
* Add notice file
* make test skipped below py3.7
* add test for `newlines`
* move SpooledTempFile.newlines from delegation to property
* update docs
* Add aiofiles.os.path.islink function
* remove symlink file at end of test
* Add aiofiles.os.readlink function
* Fix typo
* Add aiofiles.os.symlink
* Add aiofiles.os.unlink
* Add aiofiles.os.link function
* Add aiofiles.os.renames function
* Missing closing quote
* Add repo link to pyproject.toml
- Update to 0.8.0
* Tweak README
* Update README
* Use os.sep
* Add prefix, suffix, dir args to TemporaryDirectory
* Fix ospath.exists test
* Fix typo: aiofiles.ospath.exists
* Update Readme with os.makedirs and os.removedirs
* Merge branch 'patch-2'
* Fix README
* Bump poetry
* Fix tox.ini
* Update README
* Black reformat
* Skip test on mac
* Fixes
* Add more os functions
* Test for path.sameopenfile
* Update README.rst
* Provide some async version functions for os.path
* Add several async os functions
* Add async remove function
* Update README
* added aiofiles.os.replace
* Enable testing on 3.10
* Correct license string
-------------------------------------------------------------------
Sun Jan 9 15:24:11 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org>
- Update to 0.8.0
* Added aiofiles.os.replace. #107
* Added aiofiles.os.{makedirs, removedirs}.
* Added aiofiles.os.path.{exists, isfile, isdir, getsize, getatime,
getctime, samefile, sameopenfile}. #63
* Added suffix, prefix, dir args to aiofiles.tempfile.TemporaryDirectory. #116
-------------------------------------------------------------------
Wed Jun 16 15:13:33 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.7.0
* Added the aiofiles.tempfile module for async temporary files. #56
* Switched to Poetry and GitHub actions.
* Dropped 3.5 support.
- Switch Python packaging from setuptools to poetry
* Add python-pip to BuildRequires
* Add python-poetry-core to BuildRequires
* Remove python-setuptools from BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
-------------------------------------------------------------------
Wed Feb 3 10:57:36 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- Update to 0.6.0
* aiofiles is now tested on ppc64le.
* Added name and mode properties to async file objects. #82
* Fixed a DeprecationWarning internally. #75
* Python 3.9 support and tests.
-------------------------------------------------------------------
Tue Jun 2 16:44:16 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 0.5.0

61
python-aiofiles.spec Normal file
View File

@ -0,0 +1,61 @@
#
# spec file for package python-aiofiles
#
# Copyright (c) 2023 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-aiofiles
Version: 23.2.1
Release: 0
Summary: File support for asyncio
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/Tinche/aiofiles
Source: https://github.com/Tinche/aiofiles/archive/v%{version}.tar.gz#/aiofiles-%{version}.tar.gz
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
aiofiles: file support for asyncio
%prep
%autosetup -p1 -n aiofiles-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/aiofiles*
%changelog