forked from pool/python-colour
Accepting request 1112132 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1112132 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-colour?expand=0&rev=5
This commit is contained in:
26
pyproject.toml
Normal file
26
pyproject.toml
Normal file
@@ -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"}
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 18 08:11:19 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- port setup to pyproject.toml and drop d2to1 requirement
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 5 14:24:51 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user