forked from pool/python-requirements-parser
- update to 0.5.0:
* Support all documented options in requirements files #62 * Library is now typed according to PEP561 (`0e1bb6a`) * Readthedocs config (`ac1e7fb`) * Added some typing (`169ff6e`) * Removed Python 2 code (`82f9473`) * Removed version from __init__ (`4e83b9d`) - drop 0001-Dont-fail-with-valid-options-in-requirements_txt-files.patch, remove-nose.patch: upstream - add dont-install-readme.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requirements-parser?expand=0&rev=18
This commit is contained in:
@@ -18,46 +18,45 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-requirements-parser
|
||||
Version: 0.2.0
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: Pip requirement file parser
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/davidfischer/requirements-parser
|
||||
Source: https://github.com/davidfischer/requirements-parser/archive/v%{version}.tar.gz#/requirements-parser-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM 0001-Dont-fail-with-valid-options-in-requirements_txt-files.patch alarrosa@suse.com -- https://github.com/davidfischer/requirements-parser/pull/47
|
||||
Patch0: 0001-Dont-fail-with-valid-options-in-requirements_txt-files.patch
|
||||
Patch1: remove-nose.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
Patch1: dont-install-readme.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A Pip requirement file parser.
|
||||
|
||||
%prep
|
||||
%setup -q -n requirements-parser-%{version}
|
||||
%autopatch -p1
|
||||
%autosetup -p1 -n requirements-parser-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst README.rst docs/*.rst
|
||||
%license LICENSE.rst
|
||||
%{python_sitelib}/*
|
||||
%license LICENSE
|
||||
%doc AUTHORS.rst README.md
|
||||
%{python_sitelib}/requirements
|
||||
%{python_sitelib}/requirements_parser-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user