From 9dc9e9674511809082f0a7fcd87d85325b07603045563e4fe484da443f68a832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 19 Sep 2023 06:27:05 +0000 Subject: [PATCH] Accepting request 1112055 from home:mimi_vx:branches:devel:languages:python - port setup to pyproject.toml and drop d2to1 requirement OBS-URL: https://build.opensuse.org/request/show/1112055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colour?expand=0&rev=11 --- pyproject.toml | 26 ++++++++++++++++++++++++++ python-colour.changes | 5 +++++ python-colour.spec | 20 +++++++++++++------- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c2606e4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,26 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "colour" +version = "0.1.5" +description = "converts and manipulates various color representation (HSL, RVB, web, X11, ...)" +readme = "README.rst" +authors = [{name = "Valentin LAB", email = "valentin.lab@kalysto.org"}] +license = {text = "BSD 3-Clause License"} +classifiers = [ + "Programming Language :: Python", + "Topic :: Software Development :: Libraries :: Python Modules", + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: BSD License", + "Intended Audience :: Developers", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", +] +urls = {Homepage = "http://github.com/vaab/colour"} diff --git a/python-colour.changes b/python-colour.changes index 3fb6c30..73ed84e 100644 --- a/python-colour.changes +++ b/python-colour.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 18 08:11:19 UTC 2023 - Ondřej Súkup + +- port setup to pyproject.toml and drop d2to1 requirement + ------------------------------------------------------------------- Fri Jun 5 14:24:51 UTC 2020 - Matej Cepl diff --git a/python-colour.spec b/python-colour.spec index 43b149d..f10e7a3 100644 --- a/python-colour.spec +++ b/python-colour.spec @@ -1,7 +1,7 @@ # # spec file for package python-colour # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-colour Version: 0.1.5 Release: 0 @@ -25,9 +25,10 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/vaab/colour Source0: https://files.pythonhosted.org/packages/source/c/colour/colour-%{version}.tar.gz -BuildRequires: %{python_module d2to1} +Source1: pyproject.toml +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -49,12 +50,15 @@ Python module to convert between color representations: %prep %setup -q -n colour-%{version} rm -rf colour.egg-info +rm -rf setup* +rm -rf PKG_INFO +cp %{SOURCE1} ./ %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,6 +67,8 @@ rm -rf colour.egg-info %files %{python_files} %license LICENSE %doc CHANGELOG.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/colour.py +%{python_sitelib}/colour-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/* %changelog