14
0

Accepting request 946358 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/946358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-colorclass?expand=0&rev=3
This commit is contained in:
2022-01-14 22:13:17 +00:00
committed by Git OBS Bridge
4 changed files with 28 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62dd256e513e39e819b51f2dd970a7254f4d9c4bb8ea32b2fb03ef58b9c67acf
size 490884

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Jan 13 22:29:37 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.2.2
* no release notes
* new maintainer, new Github repository
* PEP517 style build with poetry backend
* Python 3.10 support by collections.abc import fix
-------------------------------------------------------------------
Thu Jun 6 11:53:02 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-colorclass
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-colorclass
Version: 2.2.0
Version: 2.2.2
Release: 0
Summary: ANSI text color library for Python
License: MIT
Group: Development/Languages/Python
Url: https://github.com/Robpol86/colorclass
# https://github.com/Robpol86/colorclass/issues/25
Source: https://github.com/Robpol86/colorclass/archive/v%{version}.tar.gz
URL: https://github.com/matthewdeanmartin/colorclass/
Source: https://github.com/matthewdeanmartin/colorclass/archive/refs/tags/v%{version}.tar.gz#/colorclass-%{version}-gh.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -41,22 +41,26 @@ colors" for dark/light terminals.
In Python 2.x, this library subclasses `unicode`, while on
Python 3.x, it subclasses `str`.
* Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5 are supported
%prep
%setup -q -n colorclass-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%pyproject_install
%{python_expand #
# show rpmlint a non-empty metadata file (poetry creates those)
echo " " >> %{buildroot}%{$python_sitelib}/colorclass-%{version}.dist-info/entry_points.txt
# standard dedup
%fdupes %{buildroot}%{$python_sitelib}
}
%check
%pytest -k 'not test_piped'
%files %{python_files}
%{python_sitelib}/*
%{python_sitelib}/colorclass
%{python_sitelib}/colorclass-%{version}.dist-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a0e9ac5df5c669e678e99e36731fcdc8eccd755c78dc66f46ab78fe858c159f
size 486151