+34
-115
lines changedFilter options
+34
-115
lines changed Original file line number Diff line number Diff line change
@@ -25,40 +25,37 @@ jobs:
25
25
strategy:
26
26
fail-fast: false
27
27
matrix:
28
-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
28
+
python-version: ["3.8", "3.9", "3.10", "3.11"]
29
29
os: [ubuntu-latest, macos-latest, windows-latest]
30
30
# This is used for injecting additional tests for a specific python
31
31
# version and OS.
32
32
suffix: [""]
33
33
include:
34
-
- python-version: "3.7"
34
+
- python-version: "3.8"
35
35
os: ubuntu-latest
36
36
extensive-tests: true
37
37
TOXENV_SUFFIX: "-docs"
38
-
- python-version: "3.7"
38
+
- python-version: "3.8"
39
39
os: ubuntu-latest
40
40
extensive-tests: true
41
41
suffix: "-min"
42
42
TOXENV_SUFFIX: "-min"
43
-
- python-version: "3.8"
43
+
- python-version: "3.9"
44
44
os: ubuntu-latest
45
45
TOX_EXTRA_COMMAND: "- isort --check-only --diff ."
46
46
TOXENV_SUFFIX: "-docs"
47
-
- python-version: "3.9"
47
+
- python-version: "3.10"
48
48
os: ubuntu-latest
49
49
TOX_EXTRA_COMMAND: "- black --check --diff ./rdflib"
50
50
TOXENV_SUFFIX: "-lxml"
51
-
- python-version: "3.10"
51
+
- python-version: "3.11"
52
52
os: ubuntu-latest
53
53
TOX_EXTRA_COMMAND: "flake8 --exit-zero rdflib"
54
54
TOXENV_SUFFIX: "-docs"
55
55
PREPARATION: "sudo apt-get install -y firejail"
56
56
extensive-tests: true
57
57
TOX_TEST_HARNESS: "firejail --net=none --"
58
58
TOX_PYTEST_EXTRA_ARGS: "-m 'not webtest'"
59
-
- python-version: "3.11"
60
-
os: ubuntu-latest
61
-
TOXENV_SUFFIX: "-docs"
62
59
steps:
63
60
- uses: actions/checkout@v3
64
61
- name: Cache XDG_CACHE_HOME
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ Help with maintenance of all of the RDFLib family of packages is always welcome
43
43
44
44
## Versions & Releases
45
45
46
-
* `7.0.0a0` current `main` branch
46
+
* `7.0.0a0` current `main` branch and supports Python 3.8.1+ only.
47
47
* `6.x.y` current release and support Python 3.7+ only. Many improvements over 5.0.0
48
48
* see [Releases](https://github.com/RDFLib/rdflib/releases)
49
49
* `5.x.y` supports Python 2.7 and 3.4+ and is [mostly backwards compatible with 4.2.2](https://rdflib.readthedocs.io/en/stable/upgrade4to5.html).
Original file line number Diff line number Diff line change
@@ -256,7 +256,7 @@ def find_version(filename):
256
256
257
257
# Example configuration for intersphinx: refer to the Python standard library.
258
258
intersphinx_mapping = {
259
-
"python": ("https://docs.python.org/3.7", None),
259
+
"python": ("https://docs.python.org/3.8", None),
260
260
}
261
261
262
262
html_experimental_html5_writer = True
@@ -331,9 +331,6 @@ def find_version(filename):
331
331
]
332
332
)
333
333
334
-
if sys.version_info < (3, 8):
335
-
nitpick_ignore.extend([("py:class", "importlib_metadata.EntryPoint")])
336
-
337
334
338
335
def autodoc_skip_member_handler(
339
336
app: sphinx.application.Sphinx,
Original file line number Diff line number Diff line change
@@ -437,6 +437,8 @@ flag them as expecting to fail.
437
437
Compatibility
438
438
-------------
439
439
440
+
RDFlib 7.0.0 release and later only support Python 3.8.1 and newer.
441
+
440
442
RDFlib 6.0.0 release and later only support Python 3.7 and newer.
441
443
442
444
RDFLib 5.0.0 maintained compatibility with Python versions 2.7, 3.4, 3.5, 3.6, 3.7.
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ methods that search triples and return them in arbitrary order.
51
51
52
52
RDFLib graphs also redefine certain built-in Python methods in order
53
53
to behave in a predictable way. They do this by `emulating container types
54
-
<https://docs.python.org/3.7/reference/datamodel.html#emulating-container-types>`_ and
54
+
<https://docs.python.org/3.8/reference/datamodel.html#emulating-container-types>`_ and
55
55
are best thought of as a set of 3-item tuples ("triples", in RDF-speak):
56
56
57
57
.. code-block:: text
Original file line number Diff line number Diff line change
@@ -4,6 +4,11 @@
4
4
Upgrading 6 to 7
5
5
============================================
6
6
7
+
Python version
8
+
----------------------------------------------------
9
+
10
+
RDFLib 7 requires Python 3.8.1 or later.
11
+
7
12
New behaviour for ``publicID`` in ``parse`` methods.
8
13
----------------------------------------------------
9
14
Original file line number Diff line number Diff line change
@@ -61,15 +61,8 @@ def main() -> None:
61
61
),
62
62
)
63
63
64
-
if sys.version_info < (3, 8):
65
-
logging.warn("This example requires Python 3.8 or higher")
66
-
return None
67
-
68
64
# Install the audit hook
69
-
#
70
-
# note on type error: This is needed because we are running mypy with python
71
-
# 3.7 mode, so mypy thinks the previous condition will always be true.
72
-
sys.addaudithook(audit_hook) # type: ignore[unreachable]
65
+
sys.addaudithook(audit_hook)
73
66
74
67
graph = Graph()
75
68
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ license = "BSD-3-Clause"
11
11
classifiers=[
12
12
"Programming Language :: Python",
13
13
"Programming Language :: Python :: 3",
14
-
"Programming Language :: Python :: 3.7",
15
14
"Programming Language :: Python :: 3.8",
16
15
"Programming Language :: Python :: 3.9",
17
16
"Programming Language :: Python :: 3.10",
@@ -39,10 +38,9 @@ rdfs2dot = 'rdflib.tools.rdfs2dot:main'
39
38
rdfgraphisomorphism = 'rdflib.tools.graphisomorphism:main'
40
39
41
40
[tool.poetry.dependencies]
42
-
python = "^3.7"
41
+
python = "^3.8.1"
43
42
isodate = "^0.6.0"
44
43
pyparsing = ">=2.1.0,<4"
45
-
importlib-metadata = {version = ">=4,<7", python = ">=3.7,<3.8"}
46
44
berkeleydb = {version = "^18.1.0", optional = true}
47
45
networkx = {version = "^2.0.0", optional = true}
48
46
html5lib = {version = "^1.0", optional = true}
@@ -69,9 +67,9 @@ sphinx-autodoc-typehints = "^1.17.1"
69
67
typing-extensions = "^4.5.0"
70
68
71
69
[tool.poetry.group.flake8.dependencies]
72
-
flake8 = {version = ">=4.0.1", python = ">=3.8"} # flakeheaven is incompatible with flake8 >=5.0 (https://github.com/flakeheaven/flakeheaven/issues/132)
73
-
flakeheaven = {version = "^3.2.1", python = ">=3.8"}
74
-
pep8-naming = {version = "^0.13.2", python = ">=3.8"}
70
+
flake8 = {version = ">=4.0.1"} # flakeheaven is incompatible with flake8 >=5.0 (https://github.com/flakeheaven/flakeheaven/issues/132)
71
+
flakeheaven = {version = "^3.2.1"}
72
+
pep8-naming = {version = "^0.13.2"}
75
73
76
74
[tool.poetry.extras]
77
75
berkeleydb = ["berkeleydb"]
@@ -204,7 +202,7 @@ skip = [
204
202
205
203
[tool.mypy]
206
204
files = ['rdflib', 'test', 'devtools', 'examples']
207
-
python_version = "3.7"
205
+
python_version = "3.8"
208
206
warn_unused_configs = true
209
207
ignore_missing_imports = true
210
208
disallow_subclassing_any = false
Original file line number Diff line number Diff line change
@@ -44,12 +44,7 @@
44
44
"""
45
45
import logging
46
46
import sys
47
-
48
-
if sys.version_info < (3, 8):
49
-
# importlib is only available in Python 3.8+; for 3.7 we must do this:
50
-
import importlib_metadata as metadata
51
-
else:
52
-
from importlib import metadata
47
+
from importlib import metadata
53
48
54
49
_DISTRIBUTION_METADATA = metadata.metadata("rdflib")
55
50
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4