commit 1ee57c88890cd9e1f9f372af05abb1c879f6f04a29a77fc9c2c51c59af03e50e Author: Matej Cepl Date: Tue Dec 3 12:34:42 2024 +0000 new package, needed for python-framework16_inputmodule, which I want to get into factory OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-getkey?expand=0&rev=1 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/getkey-0.6.5.tar.gz b/getkey-0.6.5.tar.gz new file mode 100644 index 0000000..13a2984 --- /dev/null +++ b/getkey-0.6.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68c7c702c3b34deacf427f6c0f1fd66c5c2aa12d7801aa32442fc1a71c8ce059 +size 13757 diff --git a/python-getkey.changes b/python-getkey.changes new file mode 100644 index 0000000..ea494f2 --- /dev/null +++ b/python-getkey.changes @@ -0,0 +1,24 @@ +------------------------------------------------------------------- +Tue Dec 3 09:14:10 UTC 2024 - Nico Krapp + +- add remove-coverage.patch to remove coverage report from tests + +------------------------------------------------------------------- +Mon Dec 2 15:15:45 UTC 2024 - Nico Krapp + +- enable Python3.13 build again + +------------------------------------------------------------------- +Tue Nov 19 15:25:58 UTC 2024 - Nico Krapp + +- add sle15_python_module_pythons macro + +------------------------------------------------------------------- +Tue Nov 19 15:14:44 UTC 2024 - Nico Krapp + +- temporarily disable Python3.13 until modules are stable + +------------------------------------------------------------------- +Tue Nov 19 14:51:25 UTC 2024 - Nico Krapp + +- initial version 0.6.5 diff --git a/python-getkey.spec b/python-getkey.spec new file mode 100644 index 0000000..cfe8ec3 --- /dev/null +++ b/python-getkey.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-getkey +# +# 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-getkey +Version: 0.6.5 +Release: 0 +Summary: Read single characters and key-strokes +License: MIT +URL: https://github.com/kcsaff/getkey +Source: https://files.pythonhosted.org/packages/source/g/getkey/getkey-%{version}.tar.gz +# PATCH-FIX-OPENSUSE remove coverage report from tests +Patch0: remove-coverage.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module flake8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# test dependencies +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +Read single characters and key-strokes + +%prep +%autosetup -p1 -n getkey-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%{python_sitelib}/getkey +%{python_sitelib}/getkey-%{version}.dist-info + +%changelog diff --git a/remove-coverage.patch b/remove-coverage.patch new file mode 100644 index 0000000..96550bb --- /dev/null +++ b/remove-coverage.patch @@ -0,0 +1,12 @@ +Index: getkey-0.6.5/setup.cfg +=================================================================== +--- getkey-0.6.5.orig/setup.cfg ++++ getkey-0.6.5/setup.cfg +@@ -1,6 +1,6 @@ + [tool:pytest] + norecursedirs = .git venv build dist *egg +-addopts = -rfEsxwX --cov getkey ++addopts = -rfEsxwX + + [egg_info] + tag_build =