| |
@@ -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-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 @@
|
| |
|
| |
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 @@
|
| |
|
| |
%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 @@
|
| |
%{_bindir}/rdfs2dot-3*
|
| |
|
| |
%changelog
|
| |
+ * Mon Aug 15 2022 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 6.2.0-1
|
| |
+ - Update to latest upstream release
|
| |
+
|
| |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-7
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
|
| |