Sisyphus repository
Last update: 1 december 2020 | SRPMs: 17748 | Visits: 19734283
en ru br
ALT Linux repos

Group :: Development/Python3
RPM: python3-module-lesscpy

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define mname lesscpy

%def_with check

Name: python3-module-%mname
Version: 0.13.0
Release: alt2

Summary: Python LESS Compiler
License: MIT
Group: Development/Python3
# Source-git:

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools

%if_with check
BuildRequires: python3-module-tox
BuildRequires: python3-module-ply
BuildRequires: python3-module-coverage
BuildRequires: python3-module-flake8
BuildRequires: python3-module-nose

BuildArch: noarch

A compiler written in Python for the LESS language. For those of us not willing
or able to have node.js installed in our environment. Not all features of LESS
are supported (yet). Some features wil probably never be supported (JavaScript
evaluation). This program uses PLY (Python Lex-Yacc) to tokenize / parse the
input and is considerably slower than the NodeJS compiler. The plan is to
utilize this to build in proper syntax checking and perhaps YUI compressing.

# fix tests
sed -i 's at lessf = less.split(\x27.\x27)\[0\].split(\x27/\x27)\[-1\] at lessf = less.rpartition(\x27.\x27)\[0\].split(\x27/\x27)\[-1\] at ' \


mv %buildroot/%_bindir/{lesscpy,py3-lesscpy}

export PIP_INDEX_URL=http://host.invalid./
# copy necessary exec deps
tox.py3 --sitepackages -e py%{python_version_nodots python3} --notest
cp -f %_bindir/nosetests3 .tox/py%{python_version_nodots python3}/bin/nosetests
tox.py3 --sitepackages -e py%{python_version_nodots python3}



Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin