commit abb22e3b00ecdf86362e1a505916a8a0895cff46 Author: Adrian Schröter Date: Wed May 17 15:14:28 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 python-colorama revision 0b0afea456dfd39e753e3ab19bd82c8d diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/0.4.6.tar.gz b/0.4.6.tar.gz new file mode 100644 index 0000000..c74b3f5 --- /dev/null +++ b/0.4.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d0543c3970840160b32656ab83d43b7f3533208c2c5f3ee5b839940d00af0bd +size 116300 diff --git a/python-colorama.changes b/python-colorama.changes new file mode 100644 index 0000000..d34e214 --- /dev/null +++ b/python-colorama.changes @@ -0,0 +1,208 @@ +------------------------------------------------------------------- +Fri Apr 21 12:23:26 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:40:33 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sat Oct 29 12:01:57 UTC 2022 - Dirk Müller + +- update to 0.4.6: + * https://github.com/tartley/colorama/pull/139 Add alternative to 'init()', + called 'just_fix_windows_console'. This fixes many longstanding problems + with 'init', such as working incorrectly on modern Windows terminals, and + wonkiness when init gets called multiple times. The intention is that it + just makes all Windows terminals treat ANSI the same way as other terminals + do. Many thanks the njsmith for fixing our messes. + * https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT + console. This didn't exist when Colorama was created, and avoiding us + causing havok there is long overdue. Thanks to segeviner for the initial + approach, and to njsmith for getting it merged. + * https://github.com/tartley/colorama/pull/338 Internal overhaul of package + metadata declaration, which abolishes our use of the now heavily + discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in + favor of hatchling (and hence pyproject.toml), generously contributed by + ofek (author of hatchling). This includes dropping support Python3.5 and + 3.6, which are EOL, and were already dropped from setuptools, so this + should not affect our users. + * https://github.com/tartley/colorama/pull/353 Attention to detail award to + LqdBcnAtWork for a spelling fix in demo06 + +------------------------------------------------------------------- +Mon Jun 27 20:33:18 UTC 2022 - Dirk Müller + +- update to 0.4.5: + * Catch a racy ValueError that could occur on exit. + * Create README-hacking.md, for Colorama contributors. + * Tweak some README unicode characters that don't render correctly on PyPI. + * Fix some tests that were failing on some operating systems. + * Add support for Python 3.9. + * Add support for PyPy3. + * Add support for pickling with the ``dill`` module. + +------------------------------------------------------------------- +Tue Mar 8 13:08:03 UTC 2022 - pgajdos@suse.com + +- python-mock is actually not required for build + +------------------------------------------------------------------- +Mon Oct 19 06:43:42 UTC 2020 - Dirk Mueller + +- update to 0.4.4: + * Fixes + +------------------------------------------------------------------- +Wed Apr 1 11:47:40 UTC 2020 - Marketa Calabkova + +- update to version 0.4.3 + * Several documentation & demo fixes. + +------------------------------------------------------------------- +Sat Dec 1 18:27:18 UTC 2018 - Arun Persaud + +- update to version 0.4.1: + * Fix issue #196: prevent exponential number of calls when calling + 'init' multiple times. Reported by bbayles and fixed by Delgan. + +------------------------------------------------------------------- +Tue Nov 13 14:29:06 UTC 2018 - Tomáš Chvátal + +- Switch to github tarball to get tests + +------------------------------------------------------------------- +Mon Nov 12 06:18:08 UTC 2018 - Arun Persaud + +- specfile: + * update copyright year + * move from tar.gz to zip on pypi + * be more specific in %files section + * remove devel from noarch + +- update to version 0.4.0: + * Fix issue #142: reset LIGHT_EX colors with RESET_ALL. Reported by + Delgan + * Fix issue #147: ignore invalid "erase" ANSI codes. Reported by + shin- + * Fix issues #163 and #164: fix stream wrapping under + PyCharm. Contributed by veleek and Delgan. + * Thanks to jdufresne for various code cleanup and updates to + documentation and project metadata. (pull requests #171, #172, + #173, #174, #176, #177, #189, #190, #192) + * #186: added contextlib magic methods to ansitowin32.StreamWrapper. + Contributed by hoefling. + * Fix issue #131: don't cache stdio handles, since they might be + closed/changed by fd redirection. This fixes an issue with pytest. + Contributed by segevfiner. + * #146, #157: Drop support for EOL Python 2.5, 2.6, 3.1, 3.2 and + 3.3, and add 3.6. Thanks to hugovk. + +------------------------------------------------------------------- +Fri Aug 25 16:23:50 UTC 2017 - tbechtold@suse.com + +- update to 0.3.9: + * Revert fix for issue #103 which causes problems for dependent applications + +------------------------------------------------------------------- +Tue Apr 25 22:43:01 UTC 2017 - toddrme2178@gmail.com + +- update to 0.3.8 + * Fix issue #121: "invalid escape sequence" deprecation fixes on Python 3.6+ + * Fix issue #110: fix "set console title" when working with unicode strings + * Fix issue #103: enable color when using "input" function on Python 3.5+ + * Fix issue #95: enable color when stderr is a tty but stdout is not +- Implement single-spec version +- Fix source url. + +------------------------------------------------------------------- +Tue Nov 15 10:22:24 UTC 2016 - dmueller@suse.com + +- update to 0.3.7: + * Fix issue #84: check if stream has 'closed' attribute before testing it + * Fix issue #74: objects might become None at exit + * Fix issue #81: fix ValueError when a closed stream was used + * Bumping version to re-upload a wheel distribution + * Fix issue #47 and #80 - stream redirection now strips ANSI codes on Linux + * Fix issue #53 - strip readline markers + * Fix issue #32 - assign orig_stdout and orig_stderr when initialising + * Fix issue #57 - Fore.RESET did not reset style of LIGHT_EX colors. + Fixed by Andy Neff + * Fix issue #51 - add context manager syntax. Thanks to Matt Olsen. + * Fix issue #48 - colorama didn't work on Windows when environment + variable 'TERM' was set. + * Fix issue #54 - fix pylint errors in client code. + * Changes to readme and other improvements by Marc Abramowitz and Zearin + +------------------------------------------------------------------- +Sun Apr 19 14:50:28 UTC 2015 - benoit.monin@gmx.fr + +- update to 0.3.3: + * Fix Google Code issue #13 - support changing the console title + with OSC escape sequence + * Fix Google Code issue #16 - Add support for Windows xterm + emulators + * Fix Google Code issue #30 - implement \033[nK (clear line) + * Fix Google Code issue #49 - no need to adjust for scroll when + new position is already relative (CSI n A\B\C\D) + * Fix Google Code issue #55 - erase_data fails on Python 3.x + * Fix Google Code issue #46 - win32.COORD definition missing + * Implement \033[0J and \033[1J (clear screen options) + * Fix default ANSI parameters + * Fix position after \033[2J (clear screen) + * Add command shortcuts: colorama.Cursor, + colorama.ansi.set_title, colorama.ansi.clear_line, + colorama.ansi.clear_screen + * Fix issue #22 - Importing fails for python3 on Windows + * Thanks to John Szakmeister for adding support for light colors + * Thanks to Charles Merriam for adding documentation to demos + +------------------------------------------------------------------- +Mon Sep 15 08:10:11 UTC 2014 - tbechtold@suse.com + +- update to 0.3.2: + * Thanks to Marc Schlaich (schlamar) for a setup.py fix for Python2.5 + * Thanks to Jurko for fix on 64-bit Windows CPython2.5 w/o ctypes (issue #56) + * Thanks to Remi Rampin for: + * better github integration, incl rendered README and Travis config. + * fixed forward slashes in README + * Thanks to Florian Bruhin for fix when stdout or stderr are None + * Thanks to Simeon Visser for: + * closing a file handle using 'with' + * updating classifiers to include Python 3.3 and 3.4 + * Thanks to Thomas Weininger for fix ValueError on Windows (issue #50) + +------------------------------------------------------------------- +Tue Sep 2 16:29:46 UTC 2014 - toddrme2178@gmail.com + +- Update to 0.3.1 + * Fixed crash on exit with closed stdout, with thanks to Marc Abramowitz. + * Now uses setuptools if available, and falls back to distutils if not. + * setup.py no longer imports anything from colorama source. +- Update to 0.3.0 + * Move repository to Git, https://github.com/tartley/colorama. (My Mercurial + repo seemed to be corrupted, I couldn't commit nor view patches of old + commits, even on fresh checkouts.) + * Fix always-crash on non-Windows platforms, reported by Matt McCormick. + * Fix issue #47, incompatible with pyreadline. + +------------------------------------------------------------------- +Thu Sep 26 13:35:10 UTC 2013 - dmueller@suse.com + +- update to 0.2.7: + * Fix problem under 64-bit windows due to ctypes HANDLE size. + * Fix licensing to the source files + +------------------------------------------------------------------- +Mon Apr 29 11:52:55 UTC 2013 - dmueller@suse.com + +- update to 0.2.5: + * various small bugfixes + +------------------------------------------------------------------- +Mon Nov 19 13:38:58 UTC 2012 - saschpe@suse.de + +- Initial version + diff --git a/python-colorama.spec b/python-colorama.spec new file mode 100644 index 0000000..d97208c --- /dev/null +++ b/python-colorama.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-colorama +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-colorama +Version: 0.4.6 +Release: 0 +Summary: Cross-platform colored terminal text +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/tartley/colorama +Source: https://github.com/tartley/colorama/archive/%{version}.tar.gz +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildArch: noarch +%python_subpackages + +%description +Makes ANSI escape character sequences, for producing colored terminal text and +cursor positioning, work under MS Windows. + +ANSI escape character sequences have long been used to produce colored terminal +text and cursor positioning on Unix and Macs. Colorama makes this work on +Windows, too. It also provides some shortcuts to help generate ANSI sequences, +and works fine in conjunction with any other ANSI sequence generation library, +such as Termcolor. + +This has the upshot of providing a simple cross-platform API for printing +colored terminal text from Python, and has the happy side-effect that existing +applications or libraries which use ANSI sequences to produce colored output on +Linux or Macs can now also work on Windows, simply by calling colorama.init(). + +%prep +%setup -q -n colorama-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand script -eqc "pytest-%{$python_version} -vv -s" /dev/null + +%files %{python_files} +%license LICENSE.txt +%doc CHANGELOG.rst README.rst +%doc demos/ +%dir %{python_sitelib}/colorama +%{python_sitelib}/colorama/* +%{python_sitelib}/colorama-%{version}*.dist-info + +%changelog