From 0e12007d0edc0c6e1eea2df442fc17b596a21163f114d79cb92def5f3f042d6c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:23:32 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-txWS?expand=0&rev=11 --- python-txWS.changes | 5 +++++ python-txWS.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-txWS.changes b/python-txWS.changes index 8c4017b..7bb34f8 100644 --- a/python-txWS.changes +++ b/python-txWS.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 06:08:04 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon May 29 15:35:52 UTC 2023 - pgajdos@suse.com diff --git a/python-txWS.spec b/python-txWS.spec index 4479666..afc051a 100644 --- a/python-txWS.spec +++ b/python-txWS.spec @@ -1,7 +1,7 @@ # # spec file for package python-txWS # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,6 @@ Version: 0.9.1 Release: 0 Summary: Twisted WebSockets wrapper License: X11 -Group: Development/Languages/Python URL: https://github.com/MostAwesomeDude/txWS Source0: https://files.pythonhosted.org/packages/source/t/txWS/txWS-%{version}.tar.gz # https://github.com/MostAwesomeDude/txWS/commit/9e3a2a464b1c908086c82b293c271e58196f83df @@ -31,8 +30,10 @@ Patch0: python-txWS-no-python2.patch # https://github.com/MostAwesomeDude/txWS/commit/05aadd036a7d9a0959c0d915a139779706e960d7 Patch1: python-txWS-tobytes.patch BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module vcversioner} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-pyupgrade @@ -48,10 +49,10 @@ adding WebSockets server support to Twisted applications. %autosetup -p1 -n txWS-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,7 +66,8 @@ sed -i 's:\(challenge = \)\(.*\):\1b\2:' tests.py %files %{python_files} %license LICENSE %doc CHANGELOG.rst README.rst -%{python_sitelib}/tx{WS,ws}* -%{python_sitelib}/__pycache__ +%{python_sitelib}/tx{WS,ws}.py +%pycache_only %{python_sitelib}/__pycache__/tx{WS,ws}*.pyc +%{python_sitelib}/tx{WS,ws}-%{version}.dist-info %changelog