15
0

- Switch to pyroject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crayons?expand=0&rev=17
This commit is contained in:
2025-06-16 06:21:37 +00:00
committed by Git OBS Bridge
parent 8778ba1c7b
commit fc1b2591ad
2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 16 06:12:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
-------------------------------------------------------------------
Fri Jun 18 15:29:37 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-crayons
#
# Copyright (c) 2021 SUSE LLC
# 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
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname crayons
Name: python-crayons
Version: 0.4.0
@@ -26,7 +25,9 @@ License: MIT
URL: https://github.com/MasterOdin/crayons
Source: https://github.com/MasterOdin/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
Requires: python-colorama
BuildArch: noarch
@@ -41,10 +42,10 @@ and normal.
%setup -q -n %{modname}-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%check
%python_exec test_crayons.py
@@ -53,7 +54,7 @@ and normal.
%license LICENSE
%doc README.rst
%{python_sitelib}/%{modname}.py
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%pycache_only %{python_sitelib}/__pycache__/%{modname}*
%{python_sitelib}/%{modname}-%{version}.dist-info
%pycache_only %{python_sitelib}/__pycache__/%{modname}.*.pyc
%changelog