Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-async-wrapper for openSUSE:Factory checked in at 2024-10-02 21:35:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-async-wrapper (Old) and /work/SRC/openSUSE:Factory/.python-async-wrapper.new.19354 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-async-wrapper" Wed Oct 2 21:35:18 2024 rev:2 rq:1205227 version:0.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-async-wrapper/python-async-wrapper.changes 2024-09-27 17:12:10.900379070 +0200 +++ /work/SRC/openSUSE:Factory/.python-async-wrapper.new.19354/python-async-wrapper.changes 2024-10-02 21:35:33.091787039 +0200 @@ -1,0 +2,10 @@ +Wed Oct 2 14:59:25 UTC 2024 - Matej Cepl <mc...@cepl.eu> + +- 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 + +------------------------------------------------------------------- Old: ---- async_wrapper-0.10.0.tar.gz New: ---- async-wrapper-0.10.0.tar.gz fix-version.patch BETA DEBUG BEGIN: New:- 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 BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-async-wrapper.spec ++++++ --- /var/tmp/diff_new_pack.uhA24o/_old 2024-10-02 21:35:34.903862373 +0200 +++ /var/tmp/diff_new_pack.uhA24o/_new 2024-10-02 21:35:34.911862705 +0200 @@ -19,11 +19,14 @@ Name: python-async-wrapper Version: 0.10.0 Release: 0 -Summary: async wrapper python library +Summary: Library for improving async programming License: MIT -URL: None -Source: https://files.pythonhosted.org/packages/source/a/async_wrapper/async_wrapper-%{version}.tar.gz -BuildRequires: %{python_module hatch-vcs} +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 mc...@suse.com +# We cannot use dynamic version number +Patch0: fix-version.patch BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: fdupes @@ -31,6 +34,7 @@ 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 @@ -43,19 +47,23 @@ 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-cov >= 5.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 -async-wrapper +Package with helping functions for async programming. %prep -%autosetup -p1 -n async_wrapper-%{version} +%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 @@ -64,6 +72,9 @@ %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %{python_sitelib}/async_wrapper %{python_sitelib}/async_wrapper-%{version}.dist-info ++++++ fix-version.patch ++++++ --- 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.fri...@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"]