From e85188235d93226b1e8f52190160d9d96ab30eb0d24da2485b1869a7349177ce Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 14 Nov 2024 09:11:48 +0000 Subject: [PATCH] - update to 0.3.0: * switch to maintained fork of the library * DeviceRemoved event no longer tries to use non-existent dict - Fix pytest version. - Initial package release. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-buttplug?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + buttplug-0.3.0.tar.gz | 3 ++ buttplug-py-0.2.0.tar.gz | 3 ++ python-buttplug.changes | 47 ++++++++++++++++++++++++++ python-buttplug.spec | 73 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 150 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 buttplug-0.3.0.tar.gz create mode 100644 buttplug-py-0.2.0.tar.gz create mode 100644 python-buttplug.changes create mode 100644 python-buttplug.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/buttplug-0.3.0.tar.gz b/buttplug-0.3.0.tar.gz new file mode 100644 index 0000000..2e098a0 --- /dev/null +++ b/buttplug-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b75cc1183882cf868121229f6c6a5b7f08019d49160ae8e2abd3b6e36638c74 +size 13965 diff --git a/buttplug-py-0.2.0.tar.gz b/buttplug-py-0.2.0.tar.gz new file mode 100644 index 0000000..9bf2952 --- /dev/null +++ b/buttplug-py-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd2f6656341749cdc59a045e3eea3a71879df7d6772874718f92685b34409c48 +size 25357 diff --git a/python-buttplug.changes b/python-buttplug.changes new file mode 100644 index 0000000..ce5a0e5 --- /dev/null +++ b/python-buttplug.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +Thu Nov 14 09:11:18 UTC 2024 - Dirk Müller + +- update to 0.3.0: + * switch to maintained fork of the library + +------------------------------------------------------------------- +Mon Jan 24 14:55:41 UTC 2022 - Dominique Leuenberger + +- Drop ((python3-dataclasses and python3-base < 3.7) or + (python36-dataclasses and python36-base)) BuildRequires: python36 + is being skipped to build anyway. + +------------------------------------------------------------------- +Wed Nov 3 13:52:42 UTC 2021 - Dominique Leuenberger + +- Do not build for python 3.6: incomplete stack (websockets >= 7.0 + missing). + +------------------------------------------------------------------- +Thu Jan 21 14:55:46 UTC 2021 - Markéta Machová + +- Fix build with python36 + +------------------------------------------------------------------- +Sun Nov 22 08:46:29 UTC 2020 - andy great + +- Update to version 0.2.0. + * DeviceRemoved event no longer tries to use non-existent dict + method. + * Fixed wrong enum naming. + * Client now actually sends client name. + +------------------------------------------------------------------- +Mon May 25 10:50:16 UTC 2020 - andy great + +- Fix pytest version. + +------------------------------------------------------------------- +Sun May 24 16:53:39 UTC 2020 - andy great + +- Fix dependencies, add dataclasses to build for leap 15.2. + +------------------------------------------------------------------- +Thu May 7 00:15:12 UTC 2020 - andy great + +- Initial package release. diff --git a/python-buttplug.spec b/python-buttplug.spec new file mode 100644 index 0000000..60de94a --- /dev/null +++ b/python-buttplug.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-buttplug +# +# 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-buttplug +Version: 0.3.0 +Release: 0 +Summary: Implementations of the Buttplug Client for Python +License: BSD-3-Clause +URL: https://github.com/buttplugio/buttplug-py/ +Source: https://files.pythonhosted.org/packages/source/b/buttplug/buttplug-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 4.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module websockets >= 7.0} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-websockets +BuildArch: noarch +%if 0%{?suse_version} >= 1550 +# pytest-asyncio needs pytest6 now +BuildRequires: %{python_module pytest-asyncio} +%endif +%if 0%{?python_version_nodots} < 37 +Requires: python-dataclasses +%endif +%python_subpackages + +%description +Buttplug-py is a python implementation of the Core and Client portions of +the Buttplug Sex Toy Control Protocol. It allows users to write applications +that can connect to Buttplug Servers, such as the Intiface Desktop +Application or Intiface C# CLI or Node CLI. + +%prep +%setup -q -n buttplug-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%doc README.md +%dir %{python_sitelib}/buttplug/ +%dir %{python_sitelib}/buttplug/*/ +%dir %{python_sitelib}/buttplug/*/__pycache__/ +%{python_sitelib}/buttplug/*.py +%{python_sitelib}/buttplug/*/*.py +%{python_sitelib}/buttplug-%{version}.dist-info +%pycache_only %{python_sitelib}/buttplug/__pycache__/*.pyc +%pycache_only %{python_sitelib}/buttplug/*/__pycache__/*.pyc + +%changelog