From c7175d3e8105197087f41eaa57042a689d2b40e9 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Aug 15 2022 16:16:22 +0000 Subject: feat: update to 6.2.0 --- diff --git a/.gitignore b/.gitignore index a77fa6b..eb00cf8 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ rdflib-2.4.2.tar.gz /rdflib-4.1.2.tar.gz /rdflib-4.2.1.tar.gz /rdflib-5.0.0.tar.gz +/python-rdflib-6.2.0.tar.gz diff --git a/python-rdflib.spec b/python-rdflib.spec index 0439045..9f2d126 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -3,13 +3,15 @@ %global run_tests 1 Name: python-%{pypi_name} -Version: 5.0.0 -Release: 7%{?dist} +Version: 6.2.0 +Release: 1%{?dist} Summary: Python library for working with RDF License: BSD URL: https://github.com/RDFLib/rdflib -Source0: https://files.pythonhosted.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz +# use GitHub tar that contains all example files, needed for tests +Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + BuildArch: noarch BuildRequires: python3-html5lib >= 1: @@ -19,7 +21,9 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{run_tests} -BuildRequires: python3-nose >= 0.9.2 +BuildRequires: python3-pytest +# for no_cov fixture +BuildRequires: python3-pytest-cov %endif %description @@ -65,9 +69,6 @@ rm -rf %{pypi_name}.egg-info find -name "*.pyc" -delete -sed -i -e 's|_sn_gen=bnode_uuid()|_sn_gen=bnode_uuid|' test/test_bnode_ncname.py - - %build %py3_build @@ -120,13 +121,16 @@ sed -i '1s=^#!/usr/bin/\(python\|env python\).*=#!%{__python3}=' \ %check %if %{run_tests} -sed -i -e "s|'--with-doctest'|#'--with-doctest'|" run_tests.py -sed -i -e "s|'--doctest-tests'|#'--doctest-tests'|" run_tests.py -sed -i -e "s|with-doctest = 1|#with-doctest = 1|" setup.cfg - -# The python 3 tests are failing, but better to have them here anyway -# TODO investigate the failures -%{__python3} run_tests.py --verbose || : +# test/test_graph/test_graph.py::test_guess_format_for_parse: requires internet access +# test/test_extras/test_infixowl/test_context.py::test_context: requires internet access +# test/jsonld/test_onedotone.py::test_suite: requires internet access +# test/test_extras/test_infixowl/test_basic.py::test_infix_owl_example1 requires internet access +# test/test_sparql/test_service.py::test_service*: require internet access +# test/test_misc/test_plugins.py::test_sparqleval: requires no_cov fixture +# test/test_misc/test_plugins.py::test_parser: requires no_cov fixture +# rdflib/__init__.py::rdflib: requires internet access +# rdflib/extras/infixowl.py::rdflib.extras.infixowl: requires internet access +%{pytest} -k "not test_context and not test_guess_format_for_parse and not test_suite and not test_infix_owl_example1 and not test_service and not test_sparqleval and not test_parser and not rdflib/__init__.py and not rdflib.extras.infixowl" %endif @@ -147,6 +151,9 @@ sed -i -e "s|with-doctest = 1|#with-doctest = 1|" setup.cfg %{_bindir}/rdfs2dot-3* %changelog +* Mon Aug 15 2022 Ankur Sinha - 6.2.0-1 +- Update to latest upstream release + * Fri Jul 22 2022 Fedora Release Engineering - 5.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index b789d77..c393e73 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rdflib-5.0.0.tar.gz) = ba98ab6a7bb9d993d11c559a739761f297282eb9307f3e333db8dd1c6b365b408a59b701d823bef9be774a59b3f44f64c9444e3bb0115c0c549cb00945385dab +SHA512 (python-rdflib-6.2.0.tar.gz) = 8177c50e9c2d48859a061dfee24c3560b8f979bc306b3d940a9251ec130e3a324bbad474f4fa7ced5e11522d3bd4e13931461bf106f31177fd972806968d8245