From dd7d46a1241d5d68578dc9bde83e46fedc43255ed4e440a17a2add1718f104e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:36:28 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-curtsies?expand=0&rev=33 --- .gitattributes | 23 ++++++ .gitignore | 1 + curtsies-0.4.2.tar.gz | 3 + python-curtsies.changes | 158 ++++++++++++++++++++++++++++++++++++++++ python-curtsies.spec | 66 +++++++++++++++++ 5 files changed, 251 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 curtsies-0.4.2.tar.gz create mode 100644 python-curtsies.changes create mode 100644 python-curtsies.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/curtsies-0.4.2.tar.gz b/curtsies-0.4.2.tar.gz new file mode 100644 index 0000000..07dd968 --- /dev/null +++ b/curtsies-0.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ebe33215bd7c92851a506049c720cca4cf5c192c1665c1d7a98a04c4702760e +size 53559 diff --git a/python-curtsies.changes b/python-curtsies.changes new file mode 100644 index 0000000..97cc19e --- /dev/null +++ b/python-curtsies.changes @@ -0,0 +1,158 @@ +------------------------------------------------------------------- +Mon May 26 10:58:36 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Sep 12 15:25:02 UTC 2023 - Dirk Müller + +- update to 0.4.2: + * Small type annotation clean ups. + +------------------------------------------------------------------- +Thu Oct 27 22:48:11 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.4.1 + * Unbreak process suspension with blessed + * Remove xforms + +------------------------------------------------------------------- +Sat Sep 10 15:48:54 UTC 2022 - Arun Persaud + +- specfile: + * skip python 3.6 + * require python-blessed + +- update to version 0.4.0: + * Clean up both wakeup_fds + * Drop support for Python 3.6 + * Switch to blessed + * Typing: add more annotations + +------------------------------------------------------------------- +Sun Mar 27 10:58:00 UTC 2022 - Dirk Müller + +- update to 0.3.10: + * type hints + +------------------------------------------------------------------- +Tue Mar 8 06:29:41 UTC 2022 - pgajdos@suse.com + +- python-mock actually not needed for build + +------------------------------------------------------------------- +Mon Apr 5 01:20:08 UTC 2021 - Arun Persaud + +- specfile: + * remove patch remove-nose.patch (switch to pytest makes this obsolete) + * update requirements + * skip python 2, remove several if statements in build (for python2 and python <= 3.5) + +- update to version 0.3.5: + * Drop supported for Python 2, 3.4 and 3.5. + * Migrate to pytest. Thanks to Paolo Stivanin + * Add new exmples. Thanks to rybarczykj + * Improve error messages. Thanks to Etienne Richart + * Replace wcwidth with cwcwidth + +- changes from version 0.3.4: + * Prevent crash when embedding in situations including the lldb + debugger. Thanks Nathan Lanza! + +- changes from version 0.3.3: + * Revert backslash removal, since this broke bpython in 0.3.2 + +- changes from version 0.3.2: + * Migrate doc generation to Python 3 + * Add MyPy typing + * Remove logging level message. Thanks Jack Rybarczyk! + * Assorted fixes: Thanks Armira Nance, Etienne Richart, Evan + Allgood, Nathan Lanza, and Vilhelm Prytz! + +------------------------------------------------------------------- +Fri Feb 26 04:19:05 UTC 2021 - Steve Kowalik + +- Cleanup use of ifpython3, using the existing macro checks + +------------------------------------------------------------------- +Thu Apr 23 11:09:49 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Thu Apr 2 11:10:20 UTC 2020 - Paolo Stivanin + +- Add remove-nose.patch + +------------------------------------------------------------------- +Thu Apr 2 08:17:20 UTC 2020 - Marketa Calabkova + +- Update to version 0.3.1 + * Add "dark" format function + * Add Input option to disable terminal start/stop. Thanks George Kettleborough! + * Fix Py3.6 compatibility. Thanks Po-Chuan Hsieh! + * Assorted fixes, thanks Jakub Wilk and Manuel Mendez! +- Drop upstreamed python-curtsies-dont-require-typing-for-python3.5.patch + +------------------------------------------------------------------- +Mon Mar 18 10:39:00 UTC 2019 - Tomáš Chvátal + +- Enable verbosity of tests to see what is validated + +------------------------------------------------------------------- +Wed Jul 18 11:43:50 UTC 2018 - tchvatal@suse.com + +- Add dependency over wcwidth which is imported by the package + +------------------------------------------------------------------- +Thu Apr 26 14:30:25 UTC 2018 - badshah400@opensuse.org + +- Add python-curtsies-dont-require-typing-for-python3.5.patch: The + typing module is only required for python3.4 and lower; patch + taken from upstream git (gh#bpython/curtsies#111). + +------------------------------------------------------------------- +Tue Feb 20 19:32:54 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + * update url + * require typing module for older python versions + +- update to version 0.3.0: + * Change name of "dark" color to "black" + * Drop support for Python 2.6 and 3.3 + * New FmtStr method width_aware_splitlines which cuts up a FmtStr in + linear time + +- changes from version 0.2.12: + * fix accidentally quadratic width_aware_slice behavior (fixes + bpython #729) This bug causes bpython to hang on large + output. Thanks Ben Wiederhake! + * Allow curtsies to be run on non-main threads (useful for bpython + #555) This should allow bpython to be run in a variety of + situations like Django's runserver + * Add function keys for some keyboard/terminal setups + +------------------------------------------------------------------- +Thu Aug 31 22:14:20 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.2.11 + * Add sequences for home and end (fixes Curtsies #78) + * fix #90 again + * strip ansi escape sequences if parsing fmtstr input fails + * prevent invalid negative cursor positions in CursorAwareWindow (fixes bpython #607) + * '\x1bOA' changed from ctrl-arrow key to arrow key (fixes bpython #621) + * alternate codes for F1-F4 (fixes bpython #626) + +------------------------------------------------------------------- +Thu Aug 24 13:35:27 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- +Mon Aug 15 00:42:48 UTC 2016 - badshah400@gmail.com + +- Initial package. + + diff --git a/python-curtsies.spec b/python-curtsies.spec new file mode 100644 index 0000000..72ebd57 --- /dev/null +++ b/python-curtsies.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-curtsies +# +# 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 +# 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/ +# + + +%define skip_python2 1 +%define skip_python36 1 +Name: python-curtsies +Version: 0.4.2 +Release: 0 +Summary: Curses-like terminal wrapper, with colored strings! +License: MIT +Group: Development/Languages/Python +URL: https://github.com/bpython/curtsies +Source: https://files.pythonhosted.org/packages/source/c/curtsies/curtsies-%{version}.tar.gz +BuildRequires: %{python_module blessed >= 1.5} +BuildRequires: %{python_module cwcwidth} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pyte} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-blessed >= 1.5 +Requires: python-cwcwidth +BuildArch: noarch +%python_subpackages + +%description +Curses-like terminal wrapper with a display based on compositing 2d +arrays of text. + +%prep +%setup -q -n curtsies-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/curtsies +%{python_sitelib}/curtsies-%{version}*-info + +%changelog