From 58bf7d3684912859fe81badf83c21e4356cb6afad08151cf1d354bd1835b1225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 6 Jun 2023 09:32:10 +0000 Subject: [PATCH] Accepting request 1091055 from home:pgajdos:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- python-rnginline.changes | 17 +++++++++++++++++ python-rnginline.spec | 26 ++++++++++++-------------- rnginline-0.0.2.tar.gz | 3 --- rnginline-1.0.0.tar.gz | 3 +++ 4 files changed, 32 insertions(+), 17 deletions(-) delete mode 100644 rnginline-0.0.2.tar.gz create mode 100644 rnginline-1.0.0.tar.gz diff --git a/python-rnginline.changes b/python-rnginline.changes index efb799f..2e15066 100644 --- a/python-rnginline.changes +++ b/python-rnginline.changes @@ -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 diff --git a/python-rnginline.spec b/python-rnginline.spec index 86e929f..ccc0722 100644 --- a/python-rnginline.spec +++ b/python-rnginline.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,24 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-rnginline -Version: 0.0.2 +Version: 1.0.0 Release: 0 Summary: Python libary to flatten multi-file RELAX NG schemas License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/h4l/rnginline 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: fdupes BuildRequires: python-rpm-macros Requires: python-docopt +Requires: python-importlib_resources >= 5.12.0 Requires: python-lxml -Requires: python-six +Requires: python-typing_extensions >= 4.5.0 Requires(post): update-alternatives Requires(postun):update-alternatives Suggests: python-coverage @@ -40,9 +42,10 @@ Suggests: python-pytest >= 2.6.4 BuildArch: noarch %if %{with test} BuildRequires: %{python_module docopt} +BuildRequires: %{python_module importlib_resources >= 5.12.0} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module six} +BuildRequires: %{python_module typing_extensions >= 4.5.0} %endif %python_subpackages @@ -55,21 +58,16 @@ into a single RELAX NG schema. %setup -q -n rnginline-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/rnginline %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} %check pushd rnginline -# test/test_rnginline.py:113: in -# test_testcases_testcases = _load_testcases() -# [..] -# E NotImplementedError: Can't perform this operation for unregistered loader type -rm test/test_{rnginline,cmdline}.py %pytest %endif @@ -81,8 +79,8 @@ rm test/test_{rnginline,cmdline}.py %files %{python_files} %license LICENSE.txt -%doc CHANGELOG.rst README.rst +%doc README.md %python_alternative %{_bindir}/rnginline -%{python_sitelib}/* +%{python_sitelib}/rnginline* %changelog diff --git a/rnginline-0.0.2.tar.gz b/rnginline-0.0.2.tar.gz deleted file mode 100644 index dbaeec3..0000000 --- a/rnginline-0.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8f85b8cf01c0e3203a8801556bf2c32a9d3479e097dcf6e65a48ddd8b49419f9 -size 64094 diff --git a/rnginline-1.0.0.tar.gz b/rnginline-1.0.0.tar.gz new file mode 100644 index 0000000..657bf8c --- /dev/null +++ b/rnginline-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:256ab3b3e3aa3b29c8016615806ad98ae882a8e6c08067baac1b740dc3f753a1 +size 50730