From dbccfdf0eccb9ebaf6df5cc57571c01c39ad136609d687463e744254a57ddb94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 29 Aug 2022 20:15:39 +0000 Subject: [PATCH] Accepting request 1000112 from home:bnavigator:branches:devel:languages:python - Re-add BuildRequires. What is a runtime requirement must also exist in the building project. Don't wait for staging installcheck to tell the packager that something is missing. - Remove obsole jaraco.base requirement * jaraco.* are now PEP440 namespace packages OBS-URL: https://build.opensuse.org/request/show/1000112 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.tidelift?expand=0&rev=9 --- python-jaraco.tidelift.changes | 9 +++++++++ python-jaraco.tidelift.spec | 27 ++++++++++++--------------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/python-jaraco.tidelift.changes b/python-jaraco.tidelift.changes index b8b78f9..1e9645e 100644 --- a/python-jaraco.tidelift.changes +++ b/python-jaraco.tidelift.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Aug 29 13:47:03 UTC 2022 - Ben Greiner + +- Re-add BuildRequires. What is a runtime requirement must also + exist in the building project. Don't wait for staging + installcheck to tell the packager that something is missing. +- Remove obsole jaraco.base requirement + * jaraco.* are now PEP440 namespace packages + ------------------------------------------------------------------- Fri Aug 26 07:11:27 UTC 2022 - Steve Kowalik diff --git a/python-jaraco.tidelift.spec b/python-jaraco.tidelift.spec index fb07cf5..bba0a08 100644 --- a/python-jaraco.tidelift.spec +++ b/python-jaraco.tidelift.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-jaraco.tidelift Version: 1.5.0 Release: 0 @@ -25,15 +23,20 @@ Summary: Tools to work with Tidelift License: MIT URL: https://github.com/jaraco/jaraco.tidelift Source0: https://files.pythonhosted.org/packages/source/j/jaraco.tidelift/jaraco.tidelift-%{version}.tar.gz -BuildRequires: %{python_module jaraco.base} +BuildRequires: %{python_module autocommand} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module importlib-resources >= 1.6} +BuildRequires: %{python_module keyring} BuildRequires: %{python_module pip} +BuildRequires: %{python_module requests-toolbelt} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-autocommand -Requires: python-importlib-resources +Requires: python-importlib-resources >= 1.6 Requires: python-keyring Requires: python-requests-toolbelt BuildArch: noarch @@ -44,8 +47,6 @@ jaraco.tidelift Tools for Tidelift %prep %setup -q -n jaraco.tidelift-%{version} -sed -i 's/--flake8//' pytest.ini -sed -i 's/--black --cov//' pytest.ini rm -rf jaraco.tidelift.egg-info %build @@ -53,20 +54,16 @@ rm -rf jaraco.tidelift.egg-info %install %pyproject_install - -%{?python_compileall} -%{!?python_compileall: # if we haven no python_compileall we are for sure still without multiple python3 flavors. -%py3_compile %{buildroot}%{python3_sitelib}/jaraco/ -%py3_compile -O %{buildroot}%{python3_sitelib}/jaraco/ -} - %python_expand %fdupes %{buildroot}%{$python_sitelib} +#%%check +# there are no unittests or doctest-modules + %files %{python_files} %license LICENSE %doc docs/*.rst README.rst CHANGES.rst -%{python_sitelib}/jaraco.tidelift-%{version}*dist-info +%dir %{python_sitelib}/jaraco %{python_sitelib}/jaraco/tidelift -%pycache_only %{python_sitelib}/jaraco/tidelift/__pycache__ +%{python_sitelib}/jaraco.tidelift-%{version}*-info %changelog