forked from pool/python-rnginline
Accepting request 1091055 from home:pgajdos:python
- version update to 1.0.0 * Changed Supported Python versions are now 3.7 – 3.11 (inclusive) Project codebase & tooling refreshed Get rnginline.__version__ / rnginline --version from package metadata instead of hardcoding it. * Fixed Handle indirectly-included components when overriding (#5) Thanks to takesson for reporting this and providing a test case to demonstrate the issue. Resolved deprecation warnings from: old string escape syntax pkg_resources module (we now use importlib_resources) docopt (we now use docopt-ng) - python-six is not required OBS-URL: https://build.opensuse.org/request/show/1091055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rnginline?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 5 10:29:18 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 1.0.0
|
||||||
|
* Changed
|
||||||
|
Supported Python versions are now 3.7 – 3.11 (inclusive)
|
||||||
|
Project codebase & tooling refreshed
|
||||||
|
Get rnginline.__version__ / rnginline --version from package metadata instead of hardcoding it.
|
||||||
|
* Fixed
|
||||||
|
Handle indirectly-included components when overriding (#5)
|
||||||
|
Thanks to takesson for reporting this and providing a test case to demonstrate the issue.
|
||||||
|
Resolved deprecation warnings from:
|
||||||
|
old string escape syntax
|
||||||
|
pkg_resources module (we now use importlib_resources)
|
||||||
|
docopt (we now use docopt-ng)
|
||||||
|
- python-six is not required
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 8 08:17:07 UTC 2021 - pgajdos@suse.com
|
Fri Oct 8 08:17:07 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-rnginline
|
# spec file for package python-rnginline
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,22 +16,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
Name: python-rnginline
|
Name: python-rnginline
|
||||||
Version: 0.0.2
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python libary to flatten multi-file RELAX NG schemas
|
Summary: Python libary to flatten multi-file RELAX NG schemas
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/h4l/rnginline
|
URL: https://github.com/h4l/rnginline
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/rnginline/rnginline-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/rnginline/rnginline-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module poetry}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-docopt
|
Requires: python-docopt
|
||||||
|
Requires: python-importlib_resources >= 5.12.0
|
||||||
Requires: python-lxml
|
Requires: python-lxml
|
||||||
Requires: python-six
|
Requires: python-typing_extensions >= 4.5.0
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Suggests: python-coverage
|
Suggests: python-coverage
|
||||||
@@ -40,9 +42,10 @@ Suggests: python-pytest >= 2.6.4
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module docopt}
|
BuildRequires: %{python_module docopt}
|
||||||
|
BuildRequires: %{python_module importlib_resources >= 5.12.0}
|
||||||
BuildRequires: %{python_module lxml}
|
BuildRequires: %{python_module lxml}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module typing_extensions >= 4.5.0}
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -55,21 +58,16 @@ into a single RELAX NG schema.
|
|||||||
%setup -q -n rnginline-%{version}
|
%setup -q -n rnginline-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/rnginline
|
%python_clone -a %{buildroot}%{_bindir}/rnginline
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
pushd rnginline
|
pushd rnginline
|
||||||
# test/test_rnginline.py:113: in <module>
|
|
||||||
# test_testcases_testcases = _load_testcases()
|
|
||||||
# [..]
|
|
||||||
# E NotImplementedError: Can't perform this operation for unregistered loader type
|
|
||||||
rm test/test_{rnginline,cmdline}.py
|
|
||||||
%pytest
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -81,8 +79,8 @@ rm test/test_{rnginline,cmdline}.py
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc CHANGELOG.rst README.rst
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/rnginline
|
%python_alternative %{_bindir}/rnginline
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/rnginline*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8f85b8cf01c0e3203a8801556bf2c32a9d3479e097dcf6e65a48ddd8b49419f9
|
|
||||||
size 64094
|
|
3
rnginline-1.0.0.tar.gz
Normal file
3
rnginline-1.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:256ab3b3e3aa3b29c8016615806ad98ae882a8e6c08067baac1b740dc3f753a1
|
||||||
|
size 50730
|
Reference in New Issue
Block a user