From fc7fa7cd3ba581b108d55213343ef0757f3b07d6fcc3a3c5d22c17f5a93d9507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 26 Dec 2019 08:58:14 +0000 Subject: [PATCH] Accepting request 759104 from home:jayvdb:branches:devel:languages:python - Remove hashbang from runtime module - Replace PyPI URL with https://github.com/dgerber/rfc3987 - Activate doctests OBS-URL: https://build.opensuse.org/request/show/759104 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rfc3987?expand=0&rev=9 --- python-rfc3987.changes | 7 +++++++ python-rfc3987.spec | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/python-rfc3987.changes b/python-rfc3987.changes index b14cacc..e692709 100644 --- a/python-rfc3987.changes +++ b/python-rfc3987.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Dec 24 02:56:05 UTC 2019 - John Vandenberg + +- Remove hashbang from runtime module +- Replace PyPI URL with https://github.com/dgerber/rfc3987 +- Activate doctests + ------------------------------------------------------------------- Mon Jun 3 13:35:49 UTC 2019 - pgajdos@suse.com diff --git a/python-rfc3987.spec b/python-rfc3987.spec index 2e26af7..50e2597 100644 --- a/python-rfc3987.spec +++ b/python-rfc3987.spec @@ -23,8 +23,9 @@ Release: 0 Summary: Module for parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987) License: GPL-3.0-or-later Group: Development/Languages/Python -URL: http://pypi.python.org/pypi/rfc3987 +URL: https://github.com/dgerber/rfc3987 Source: https://files.pythonhosted.org/packages/source/r/rfc3987/rfc3987-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -40,6 +41,7 @@ utilities for composition and relative resolution of references. %prep %setup -q -n rfc3987-%{version} +sed -i '1{/^#!/d}' rfc3987.py %build %python_build @@ -49,7 +51,7 @@ utilities for composition and relative resolution of references. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# no tests in git repo +%pytest --doctest-modules %files %{python_files} %license COPYING.txt