15
0

Accepting request 680257 from home:jayvdb:noflake8

- Fix incorrect URL
- Remove unnecessary build dependencies on flake8 and coverage by
  using nose directly
- Add fdupes
- Update to v0.13.0
  Version bump due to non-linear version sequences
  https://github.com/lesscpy/lesscpy/issues/94
  No changelog available

OBS-URL: https://build.opensuse.org/request/show/680257
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lesscpy?expand=0&rev=16
This commit is contained in:
Tomáš Chvátal
2019-03-01 08:52:03 +00:00
committed by Git OBS Bridge
parent 9a174c6ac2
commit ca7fcb1a40
4 changed files with 21 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-lesscpy
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lesscpy
Version: 0.12.0
Version: 0.13.0
Release: 0
Summary: Lesscss compiler
License: MIT
Group: Development/Languages/Python
URL: https://github.com/robotis/lesscpy
URL: https://github.com/lesscpy/lesscpy
Source: https://files.pythonhosted.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module ply}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-ply
Requires: python-six
@@ -59,6 +58,7 @@ rm test/test_{bootstrap3,less,issues}.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/lesscpy
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%post
%python_install_alternative lesscpy
@@ -67,7 +67,7 @@ rm test/test_{bootstrap3,less,issues}.py
%python_uninstall_alternative lesscpy
%check
%python_exec setup.py test
%python_exec -m nose
%files %{python_files}
%license LICENSE