From 1b203798a23d71ba52c0003034014b192d20612f1fec601f0c0022ca67beaf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 11 Oct 2024 11:54:10 +0000 Subject: [PATCH] - Update to 24.1.0 * Import `os.link` conditionally to fix importing on android. (#175) * Remove spurious items from `aiofiles.os.__all__` when running on Windows. * Switch to more modern async idioms: Remove types.coroutine and make AiofilesContextManager an awaitable instead a coroutine. * Add `aiofiles.os.path.abspath` and `aiofiles.os.getcwd`. (#174) * _aiofiles_ is now tested on Python 3.13 too. (#184) * Dropped Python 3.7 support. If you require it, use version 23.2.1. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiofiles?expand=0&rev=17 --- .gitattributes | 23 +++++++ .gitignore | 1 + aiofiles-23.2.1.tar.gz | 3 + aiofiles-24.1.0.tar.gz | 3 + python-aiofiles.changes | 144 ++++++++++++++++++++++++++++++++++++++++ python-aiofiles.spec | 61 +++++++++++++++++ 6 files changed, 235 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 aiofiles-23.2.1.tar.gz create mode 100644 aiofiles-24.1.0.tar.gz create mode 100644 python-aiofiles.changes create mode 100644 python-aiofiles.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/aiofiles-23.2.1.tar.gz b/aiofiles-23.2.1.tar.gz new file mode 100644 index 0000000..d1dc0ec --- /dev/null +++ b/aiofiles-23.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0eb90fd1986d3ebb0c744c439fc5d539d799b140ee5b42f121ff15bf3dc3879d +size 31810 diff --git a/aiofiles-24.1.0.tar.gz b/aiofiles-24.1.0.tar.gz new file mode 100644 index 0000000..b0cf94f --- /dev/null +++ b/aiofiles-24.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7214ba00010ddb878cc705678da06364cefa241541394f3093a0ef89536a65d0 +size 29920 diff --git a/python-aiofiles.changes b/python-aiofiles.changes new file mode 100644 index 0000000..a3ab4b8 --- /dev/null +++ b/python-aiofiles.changes @@ -0,0 +1,144 @@ +------------------------------------------------------------------- +Fri Oct 11 09:56:34 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 24.1.0 + * Import `os.link` conditionally to fix importing on android. (#175) + * Remove spurious items from `aiofiles.os.__all__` when running on Windows. + * Switch to more modern async idioms: Remove types.coroutine and make + AiofilesContextManager an awaitable instead a coroutine. + * Add `aiofiles.os.path.abspath` and `aiofiles.os.getcwd`. (#174) + * _aiofiles_ is now tested on Python 3.13 too. (#184) + * Dropped Python 3.7 support. If you require it, use version 23.2.1. + +------------------------------------------------------------------- +Thu Dec 14 09:12:51 UTC 2023 - Petr Gajdos + +- 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 + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Feb 23 14:10:32 UTC 2023 - Dirk Müller + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- Initial package, version 0.5.0 diff --git a/python-aiofiles.spec b/python-aiofiles.spec new file mode 100644 index 0000000..c019db4 --- /dev/null +++ b/python-aiofiles.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-aiofiles +# +# Copyright (c) 2024 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: 24.1.0 +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