forked from pool/python-ruamel.std.pathlib
- update to 0.12.0:
* drop python 2.x support * add orjson * implemented chunked blake OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.std.pathlib?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ruamel.std.pathlib
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,16 +17,20 @@
|
||||
|
||||
|
||||
Name: python-ruamel.std.pathlib
|
||||
Version: 0.9.2
|
||||
Version: 0.12.0
|
||||
Release: 0
|
||||
Summary: Improvements over the standard pathlib module and pathlib2 package
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://sourceforge.net/projects/ruamel-std-pathlib/
|
||||
Source: https://files.pythonhosted.org/packages/source/r/ruamel.std.pathlib/ruamel.std.pathlib-%{version}.tar.gz
|
||||
BuildRequires: %{python_module orjson}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-orjson
|
||||
Requires: python-ruamel.base >= 1.0.0+post1
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -36,22 +40,21 @@ Improvements over the standard pathlib module and pathlib2 package.
|
||||
|
||||
%prep
|
||||
%setup -q -n ruamel.std.pathlib-%{version}
|
||||
sed -i '/keywords=/d' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
export RUAMEL_NO_PIP_INSTALL_CHECK=1
|
||||
%python_install
|
||||
# This makes this package the owner of the Python 2 namespace ruamel.std
|
||||
%{python_expand touch %{buildroot}%{$python_sitelib}/ruamel/std/__init__.py
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
%pyproject_install
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%dir %{python_sitelib}/ruamel
|
||||
%dir %{python_sitelib}/ruamel/std
|
||||
%{python_sitelib}/ruamel/std/pathlib
|
||||
%{python_sitelib}/ruamel.std.pathlib-%{version}-py3*-nspkg.pth
|
||||
%{python_sitelib}/ruamel.std.pathlib-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user