From 8e7cebd5471913abaa8d4d0d4e1f2875b89520c5148c6b39228b71d70d06c66f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 31 Jan 2021 09:47:04 +0000 Subject: [PATCH] Accepting request 867914 from home:andythe_great - Fix RPMLINT warning non-executable-script. - Zero length rpcq/py.typed must be kept for PEP 561 compliance. - Disable build for python 3.6 because numpy will not support it. OBS-URL: https://build.opensuse.org/request/show/867914 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-rpcq?expand=0&rev=9 --- python-rpcq.changes | 7 +++++++ python-rpcq.spec | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/python-rpcq.changes b/python-rpcq.changes index c9a3c90..2f6cba5 100644 --- a/python-rpcq.changes +++ b/python-rpcq.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jan 30 08:10:52 UTC 2021 - andy great + +- Fix RPMLINT warning non-executable-script. +- Zero length rpcq/py.typed must be kept for PEP 561 compliance. +- Disable build for python 3.6 because numpy will not support it. + ------------------------------------------------------------------- Fri Jan 29 10:25:51 UTC 2021 - andy great diff --git a/python-rpcq.spec b/python-rpcq.spec index b8de83c..c751f88 100644 --- a/python-rpcq.spec +++ b/python-rpcq.spec @@ -18,6 +18,7 @@ %define packagename rpcq %define skip_python2 1 +%define skip_python36 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rpcq Version: 3.8.0 @@ -49,6 +50,9 @@ The RPC framework and message specification for Rigetti QCS. %prep %setup -q -n %{packagename}-%{version} +# Fix non-executable-script +sed -i '/^#!/d' %{packagename}/core_messages.py +sed -i '/^#!/d' %{packagename}/messages.py %build %python_build