From e3115bd3e2149deb59f9ad818f1f9c83e272b8f9f99fe986aacb453952164a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:14:27 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ansicolors?expand=0&rev=8 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + ansicolors-1.1.8.zip | 3 ++ python-ansicolors.changes | 43 ++++++++++++++++++++++++++++ python-ansicolors.spec | 60 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ansicolors-1.1.8.zip create mode 100644 python-ansicolors.changes create mode 100644 python-ansicolors.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/ansicolors-1.1.8.zip b/ansicolors-1.1.8.zip new file mode 100644 index 0000000..91ff23b --- /dev/null +++ b/ansicolors-1.1.8.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0 +size 23027 diff --git a/python-ansicolors.changes b/python-ansicolors.changes new file mode 100644 index 0000000..280cd1e --- /dev/null +++ b/python-ansicolors.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Tue May 13 13:20:42 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Nov 7 16:21:32 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Tue Dec 4 12:45:35 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Wed May 9 18:35:36 UTC 2018 - toddrme2178@gmail.com + +- Use license tag + +------------------------------------------------------------------- +Sat Apr 21 21:37:32 UTC 2018 - toddrme2178@gmail.com + +- Update to version: 1.1.18 + * Added branch coverage metric. 100%, like line + coverage. +- Update to version: 1.1.17 + * Tweaks to testing and Python 2/3 compatibility + strategy to make it more Python 3-centered and + more future-proofed. + * Fixed bug with handling of Unicode strings + (affected Python 2 only). +- Update to version: 1.1.16 + * Updated with testing and extensions from + Jonathan Eunice and Espartaco Palma. +- Implement single-spec version + +------------------------------------------------------------------- +Tue Mar 18 09:16:47 UTC 2014 - jschmid@novell.com + +- version 1.0.2 initial fetch from pypi. + + diff --git a/python-ansicolors.spec b/python-ansicolors.spec new file mode 100644 index 0000000..0daf135 --- /dev/null +++ b/python-ansicolors.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-ansicolors +# +# 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/ +# + + +Name: python-ansicolors +Version: 1.1.8 +Release: 0 +Summary: ANSI colors for Python +License: ISC +URL: https://github.com/jonathaneunice/colors/ +Source: https://files.pythonhosted.org/packages/source/a/ansicolors/ansicolors-%{version}.zip +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Add ANSI colors and decorations to your strings. + +%prep +%setup -q -n ansicolors-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.yml README.rst +%license LICENSE +%{python_sitelib}/colors +%{python_sitelib}/ansicolors-%{version}*-info + +%changelog