From 07b0a6bae9ac1988ab6310eb5f17a206b53e7eca1e4cfe6084ba9fe2a672f82f Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 10 Aug 2023 11:22:45 +0000 Subject: [PATCH] Accepting request 1103033 from home:dheidler new package OBS-URL: https://build.opensuse.org/request/show/1103033 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-matrix-client?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + dont-require-pytest-runner.patch | 11 ++++ matrix_client-0.4.0.tar.gz | 3 ++ python-matrix-client.changes | 23 +++++++++ python-matrix-client.spec | 51 +++++++++++++++++++ ...p.py-to-avoid-installing-of-test-pkg.patch | 22 ++++++++ 7 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dont-require-pytest-runner.patch create mode 100644 matrix_client-0.4.0.tar.gz create mode 100644 python-matrix-client.changes create mode 100644 python-matrix-client.spec create mode 100644 update-setup.py-to-avoid-installing-of-test-pkg.patch 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/dont-require-pytest-runner.patch b/dont-require-pytest-runner.patch new file mode 100644 index 0000000..515c968 --- /dev/null +++ b/dont-require-pytest-runner.patch @@ -0,0 +1,11 @@ +diff -u matrix_client-0.4.0/setup.py matrix_client-0.4.0-new/setup.py +--- matrix_client-0.4.0/setup.py 2021-07-26 12:46:26.000000000 +0200 ++++ matrix_client-0.4.0-new/setup.py 2023-08-08 21:18:18.793998439 +0200 +@@ -48,7 +48,6 @@ + 'requests~=2.22', + 'urllib3~=1.21', + ], +- setup_requires=['pytest-runner~=5.1'], + tests_require=['pytest >=4.6.5, <6.0.0', 'responses >=0.10.6, ==0.10.*'], + extras_require={ + 'test': ['pytest >=4.6, <6.0.0', 'responses >=0.10.6, ==0.10.*'], diff --git a/matrix_client-0.4.0.tar.gz b/matrix_client-0.4.0.tar.gz new file mode 100644 index 0000000..13cc1f4 --- /dev/null +++ b/matrix_client-0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0678af40f2cb2f0928a908a410c029747d40cb961ac5a3f1bd05aa35563c3156 +size 48982 diff --git a/python-matrix-client.changes b/python-matrix-client.changes new file mode 100644 index 0000000..ac35973 --- /dev/null +++ b/python-matrix-client.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +Tue Aug 8 19:00:40 UTC 2023 - Dominik Heidler + +- Version 0.4.0 + - Experimental support for encrypted rooms has been implemented. + - Add an option (use_authorization_header) for sending auth tokens using the + HTTP Authorization header instead of the access_token query parameter. + - Add the ability to set the room name and whether room federation is allowed with create_room(). + - Catch MissingSchema errors that could be raised by the http library + - Add urllib3 as an explicit dependency. + - Include the SDK version in the User Agent of requests. + - Speed up membership handling code in rooms. + - Use lexicographical sort to room displayname calculation. + - Add a new method, whoami, for determining the Matrix ID of the currently authenticated user. + - Better support for global vs. per-room display names. + - Better handling of users who lack a display name. + - Add support for specifying a filename when uploading media. + - Numerous fixes to the tests. + +------------------------------------------------------------------- +Thu Feb 18 09:46:52 AM UTC 2021 - John Vandenberg + +- Initial spec for v0.3.2 diff --git a/python-matrix-client.spec b/python-matrix-client.spec new file mode 100644 index 0000000..ea9696e --- /dev/null +++ b/python-matrix-client.spec @@ -0,0 +1,51 @@ +# +# spec file for package python-matrix-client +# +# 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/ +# + + +Name: python-matrix-client +Version: 0.4.0 +Release: 0 +Summary: Client-Server SDK for Matrix +License: Apache-2.0 +URL: https://github.com/matrix-org/matrix-python-sdk +Source: https://files.pythonhosted.org/packages/source/m/matrix_client/matrix_client-%{version}.tar.gz +Patch0: update-setup.py-to-avoid-installing-of-test-pkg.patch +Patch1: dont-require-pytest-runner.patch +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests +BuildArch: noarch +%python_subpackages + +%description +Client-Server SDK for Matrix + +%prep +%autosetup -p1 -n matrix_client-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%{python_sitelib}/matrix_client* + +%changelog diff --git a/update-setup.py-to-avoid-installing-of-test-pkg.patch b/update-setup.py-to-avoid-installing-of-test-pkg.patch new file mode 100644 index 0000000..ce140cc --- /dev/null +++ b/update-setup.py-to-avoid-installing-of-test-pkg.patch @@ -0,0 +1,22 @@ +From ae8fc9e2f82b6c65db9cd554b89267304f977e8f Mon Sep 17 00:00:00 2001 +From: Andreas Billmeier +Date: Sun, 16 Oct 2022 11:13:08 +0200 +Subject: [PATCH] update setup.py to avoid installing of 'test' pkg + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 5007712a..63eeecc1 100644 +--- a/setup.py ++++ b/setup.py +@@ -32,7 +32,7 @@ def exec_file(names): + author='The Matrix.org Team', + author_email='team@matrix.org', + url='https://github.com/matrix-org/matrix-python-sdk', +- packages=find_packages(), ++ packages=find_packages(exclude=['test*']), + license='Apache License, Version 2.0', + classifiers=[ + 'Development Status :: 3 - Alpha',