File python-pip-requirements-parser.spec of Package python-pip-requirements-parser
#
# spec file for package python-pip-requirements-parser
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pip-requirements-parser
Version: 31.2.0
Release: 0
Summary: Pip requirements parsing library
License: MIT
URL: https://github.com/nexB/pip-requirements-parser
Source: https://files.pythonhosted.org/packages/source/p/pip-requirements-parser/pip-requirements-parser-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm >= 4}
# SECTION test requirements
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
Requires: python-packaging
Suggests: python-Sphinx >= 3.3.1
Suggests: python-sphinx-rtd-theme >= 0.5.0
Suggests: python-doc8 >= 0.8.1
BuildArch: noarch
%python_subpackages
%description
A mostly correct pip requirements parsing library because it uses pip's own code.
%prep
%setup -q -n pip-requirements-parser-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS.txt CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/pip_requirements_parser*.py
%pycache_only %{python_sitelib}/__pycache__/
%{python_sitelib}/pip[_-]requirements[_-]parser*/
%changelog