[packages/python-lesscpy] Up to 0.14.0

arekm arekm at pld-linux.org
Thu May 22 22:55:12 CEST 2025


commit 25f05a461d09fc29be745bed102bbb20fbe48cca
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 22 22:54:49 2025 +0200

    Up to 0.14.0

 python-lesscpy-tests.patch | 11 -----------
 python-lesscpy.spec        | 15 +++++++++------
 2 files changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/python-lesscpy.spec b/python-lesscpy.spec
index 8b09d42..10af662 100644
--- a/python-lesscpy.spec
+++ b/python-lesscpy.spec
@@ -7,14 +7,13 @@
 Summary:	Python LESS Compiler
 Summary(pl.UTF-8):	Kompilator języka LESS w Pythonie
 Name:		python-lesscpy
-Version:	0.12.0
-Release:	12
+Version:	0.14.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/lesscpy
 Source0:	https://files.pythonhosted.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz
-# Source0-md5:	0a5a3ca4091ad3fb62ac6f705f8463d4
-Patch0:		%{name}-tests.patch
+# Source0-md5:	efe82be479ddb7bdc48b2114dab94b20
 URL:		https://pypi.python.org/pypi/lesscpy
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -89,7 +88,6 @@ składni i może kompresji YUI.
 
 %prep
 %setup -q -n lesscpy-%{version}
-%patch -P 0 -p1
 
 %build
 %if %{with python2}
@@ -98,7 +96,12 @@ składni i może kompresji YUI.
 
 %if %{with python3}
 LC_ALL=en_US.UTF-8 \
-%py3_build %{?with_tests:test}
+%py3_build
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest test
+%endif
 %endif
 
 %install
diff --git a/python-lesscpy-tests.patch b/python-lesscpy-tests.patch
deleted file mode 100644
index 5681f0a..0000000
--- a/python-lesscpy-tests.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- lesscpy-0.12.0/test/core.py.orig	2016-10-04 11:49:17.000000000 +0200
-+++ lesscpy-0.12.0/test/core.py	2016-10-15 10:19:40.728402647 +0200
-@@ -24,7 +24,7 @@
-     else:
-         LESS = glob.glob(os.path.join(_less_path, '*.less'))
-     for less in LESS:
--        lessf = less.split('.')[0].split('/')[-1]
-+        lessf = less.split('/')[-1].split('.')[0]
-         css = os.path.join(_css_path, lessf + '.css')
-         if css_minimized:
-             mincss = os.path.join(_css_path, lessf + '.min.css')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-lesscpy.git/commitdiff/25f05a461d09fc29be745bed102bbb20fbe48cca



More information about the pld-cvs-commit mailing list