forked from pool/python-accessible-pygments
- update to 0.0.4:
* Minor version of accessible pygments, * Exclude "test" package from being installed. - run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-accessible-pygments?expand=0&rev=4
This commit is contained in:
@@ -18,20 +18,21 @@
|
||||
|
||||
%define modname accessible-pygments
|
||||
Name: python-accessible-pygments
|
||||
Version: 0.0.3
|
||||
Version: 0.0.4
|
||||
Release: 0
|
||||
Summary: A collection of accessible pygments styles
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/Quansight-Labs/accessible-pygments
|
||||
Source: https://files.pythonhosted.org/packages/source/a/accessible-pygments/accessible-pygments-%{version}.tar.gz
|
||||
Source: https://github.com/Quansight-Labs/accessible-pygments/archive/refs/tags/v%{version}.tar.gz#/accessible-pygments-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-pygments >= 1.5
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pygments >= 1.5}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-pygments >= 1.5
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -46,9 +47,12 @@ A collection of accessible pygments styles
|
||||
%install
|
||||
%python_install
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/test
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTHONPATH=$PWD
|
||||
%python_exec test/run_tests.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user