From 92bdff3938134874f90319064e60b23452d93f635e6f8b44a883aadfbdb680eb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 22 Oct 2024 15:54:07 +0000 Subject: [PATCH] - update to 0.11.1: * fix python 3.13 uvloop * support python 3.13 - Initial release of python-async-wrapper 0.10.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-async-wrapper?expand=0&rev=7 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + async-wrapper-0.10.0.tar.gz | 3 ++ async-wrapper-0.11.1.tar.gz | 3 ++ fix-version.patch | 24 +++++++++++ python-async-wrapper.changes | 21 +++++++++ python-async-wrapper.spec | 82 ++++++++++++++++++++++++++++++++++++ 7 files changed, 157 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 async-wrapper-0.10.0.tar.gz create mode 100644 async-wrapper-0.11.1.tar.gz create mode 100644 fix-version.patch create mode 100644 python-async-wrapper.changes create mode 100644 python-async-wrapper.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/async-wrapper-0.10.0.tar.gz b/async-wrapper-0.10.0.tar.gz new file mode 100644 index 0000000..b52aa48 --- /dev/null +++ b/async-wrapper-0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8478704278032418b125abea6426d8009419d6087e6958a0df81781408e98ef +size 29508 diff --git a/async-wrapper-0.11.1.tar.gz b/async-wrapper-0.11.1.tar.gz new file mode 100644 index 0000000..3ba6570 --- /dev/null +++ b/async-wrapper-0.11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41b283f99b1106d3e04408ca0ba8bcd71d4c28f72c3d622c4f48041e58a4ef1f +size 29425 diff --git a/fix-version.patch b/fix-version.patch new file mode 100644 index 0000000..4c8a395 --- /dev/null +++ b/fix-version.patch @@ -0,0 +1,24 @@ +--- + pyproject.toml | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [project] + name = "async-wrapper" +-dynamic = ["version"] ++version = "@VERSION@" + description = "async wrapper" + authors = [{ name = "phi", email = "phi.friday@gmail.com" }] + readme = "README.md" +@@ -67,9 +67,6 @@ check = "pre-commit run --all-files --sh + requires = ["hatchling", "hatch-vcs"] + build-backend = "hatchling.build" + +-[tool.hatch.version] +-source = "vcs" +- + [tool.hatch.build.targets.wheel] + packages = ["src/async_wrapper"] + diff --git a/python-async-wrapper.changes b/python-async-wrapper.changes new file mode 100644 index 0000000..4656eb6 --- /dev/null +++ b/python-async-wrapper.changes @@ -0,0 +1,21 @@ +------------------------------------------------------------------- +Tue Oct 22 15:53:16 UTC 2024 - Dirk Müller + +- update to 0.11.1: + * fix python 3.13 uvloop + * support python 3.13 + +------------------------------------------------------------------- +Wed Oct 2 14:59:25 UTC 2024 - Matej Cepl + +- Use the tarball from GitHub, because it contains tests +- Add fix-version.patch, because we cannot use dynamically + generated version number from the GitHub tarball + (gh#phi-friday/async-wrapper#1). +- Run tests +- Add missing Requires + +------------------------------------------------------------------- +Thu Sep 26 19:14:00 UTC 2024 - Antonio Larrosa + +- Initial release of python-async-wrapper 0.10.0 diff --git a/python-async-wrapper.spec b/python-async-wrapper.spec new file mode 100644 index 0000000..77df49a --- /dev/null +++ b/python-async-wrapper.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-async-wrapper +# +# 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/ +# + + +Name: python-async-wrapper +Version: 0.11.1 +Release: 0 +Summary: Library for improving async programming +License: MIT +URL: https://github.com/phi-friday/async-wrapper +# Using GitHub tarball, because it contains tests +Source: https://github.com/phi-friday/async-wrapper/archive/refs/tags/v%{version}.tar.gz#/async-wrapper-%{version}.tar.gz +# PATCH-FEATURE-OPENSUSE fix-version.patch gh#phi-friday/async-wrapper#1 mcepl@suse.com +# We cannot use dynamic version number +Patch0: fix-version.patch +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-anyio >= 4.0.0 +Requires: python-sniffio >= 1.3.1 +Requires: python-typing-extensions >= 4.4.0 +Requires: (python-exceptiongroup if python-base < 3.11) +Suggests: python-greenlet +Suggests: python-readthedocs-sphinx-search >= 0.3.2 +Suggests: python-sphinx >= 7.1.0 +Suggests: python-sphinx-mdinclude >= 0.5.3 +Suggests: python-sphinx-rtd-theme >= 2.0.0 +Suggests: python-sqlalchemy +Suggests: python-uvloop +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module aiosqlite >= 0.20.0} +BuildRequires: %{python_module anyio >= 4.0.0} +BuildRequires: %{python_module pytest >= 8.0.0} +BuildRequires: %{python_module pytest-xdist >= 3.6.1} +BuildRequires: %{python_module sniffio >= 1.3.1} +BuildRequires: %{python_module sqlalchemy} +BuildRequires: %{python_module trio >= 0.24.0} +BuildRequires: %{python_module typing-extensions >= 4.4.0} +BuildRequires: %{python_module uvloop} +# /SECTION +%python_subpackages + +%description +Package with helping functions for async programming. + +%prep +%autosetup -p1 -n async-wrapper-%{version} + +# We have to use fixed version of the package and we don't need to run test coverage analysis +sed -i -E -e 's/@VERSION@/%{version}/' -e '/^addopts/s/ --cov.*/"/' pyproject.toml + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/async_wrapper +%{python_sitelib}/async_wrapper-%{version}.dist-info + +%changelog