Skip to content

Commit 21b4113

Browse files
authored
Merge branch 'main' into n3-no-norm-float
2 parents fbe7881 + 54b3bb6 commit 21b4113

File tree

13 files changed

+127
-113
lines changed

13 files changed

+127
-113
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
1010
# WARNING: Ruff version should be the same as in `pyproject.toml`
11-
rev: v0.7.2
11+
rev: v0.8.6
1212
hooks:
1313
- id: ruff
1414
args: ["--fix"]
@@ -21,9 +21,9 @@ repos:
2121
require_serial: true
2222
args: ["."]
2323
- repo: https://github.com/python-poetry/poetry
24-
rev: 1.8.4
24+
rev: 2.0.0
2525
hooks:
2626
- id: poetry-check
2727
- id: poetry-lock
2828
# sadly `--no-update` does not work on pre-commit.ci
29-
args: ["--check"]
29+

CITATION.cff

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ authors:
44
- family-names: "Krech"
55
given-names: "Daniel"
66
- family-names: "Grimnes"
7-
given-names: "Gunnar AAstrand"
7+
given-names: "Gunnar Aastrand"
88
- family-names: "Higgins"
99
given-names: "Graham"
10+
- family-names: "Car"
11+
given-names: "Nicholas"
12+
orcid: "https://orcid.org/0000-0002-8742-7730"
1013
- family-names: "Hees"
1114
given-names: "Jörn"
1215
orcid: "https://orcid.org/0000-0002-0084-8998"

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Daniel Krech
4646
Dann Martens
4747
Darren Garvey
4848
Dave Challis
49+
David Habgood
4950
David H Jones
5051
David Steinberg
5152
Debabrata Deka

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2002-2024, RDFLib Team
3+
Copyright (c) 2002-2025, RDFLib Team
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

devtools/requirements-poetry.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Fixing this here as readthedocs can't use the compiled requirements-poetry.txt
22
# due to conflicts.
3-
poetry==1.8.5
3+
poetry==2.0.0
4+
poetry-plugin-export==1.8.0

poetry.lock

Lines changed: 76 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
[tool.poetry]
1+
[project]
22
name = "rdflib"
33
version = "8.0.0a0"
44
description = """RDFLib is a Python library for working with RDF, \
55
a simple yet powerful language for representing information."""
6-
authors = ["Daniel 'eikeon' Krech <[email protected]>"]
7-
maintainers = ["RDFLib Team <[email protected]>"]
6+
authors = [{ name = "Daniel 'eikeon' Krech", email = "[email protected]" }]
7+
maintainers = [{ name = "RDFLib Team", email = "[email protected]" }]
88
repository = "https://github.com/RDFLib/rdflib"
99
documentation = "https://rdflib.readthedocs.org/"
1010
license = "BSD-3-Clause"
11-
classifiers=[
11+
classifiers = [
1212
"Programming Language :: Python",
1313
"Programming Language :: Python :: 3",
14-
"Programming Language :: Python :: 3.8",
1514
"Programming Language :: Python :: 3.9",
1615
"Programming Language :: Python :: 3.10",
1716
"Programming Language :: Python :: 3.11",
1817
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
1919
"License :: OSI Approved :: BSD License",
2020
"Topic :: Software Development :: Libraries :: Python Modules",
2121
"Operating System :: OS Independent",
2222
"Natural Language :: English"
2323
]
24+
requires-python = ">=3.9,<4"
2425
readme = "README.md"
2526
packages = [
2627
{ include = "rdflib" },
@@ -30,27 +31,19 @@ include = [
3031
{ path = "docs", format = "sdist" },
3132
{ path = "examples", format = "sdist" },
3233
]
34+
dynamic = [ "dependencies" ]
35+
dependencies = [
36+
'isodate >=0.7.2,<1.0.0; python_version < "3.11"',
37+
'pyparsing >=3.2.0,<4'
38+
]
3339

34-
[tool.poetry.scripts]
40+
[project.scripts]
3541
rdfpipe = 'rdflib.tools.rdfpipe:main'
3642
csv2rdf = 'rdflib.tools.csv2rdf:main'
3743
rdf2dot = 'rdflib.tools.rdf2dot:main'
3844
rdfs2dot = 'rdflib.tools.rdfs2dot:main'
3945
rdfgraphisomorphism = 'rdflib.tools.graphisomorphism:main'
4046

41-
[tool.poetry.dependencies]
42-
python = ">=3.9,<4"
43-
isodate = {version=">=0.7.2,<1.0.0", python = "<3.11"}
44-
pyparsing = ">=3.2.0,<4"
45-
berkeleydb = {version = "^18.1.0", optional = true}
46-
networkx = {version = ">=2,<4", optional = true}
47-
html5rdf = {version = ">=1.2.1,<2", optional = true}
48-
lxml = [
49-
{version = ">=4.8.0,<6.0", optional = true, python = "<3.11"},
50-
{version = ">=4.9.3,<6.0", optional = true, python = ">=3.11"}
51-
]
52-
orjson = {version = ">=3.9.14,<4", optional = true}
53-
5447
[tool.poetry.group.dev.dependencies]
5548
black = "24.10.0"
5649
mypy = "^1.13.0"
@@ -73,19 +66,22 @@ sphinx-autodoc-typehints = ">=2.3.0,<2.4.0"
7366
typing-extensions = "^4.11.0"
7467

7568
[tool.poetry.group.lint.dependencies]
76-
ruff = ">=0.7.2,<1"
69+
ruff = "0.8.6"
7770

78-
[tool.poetry.extras]
79-
berkeleydb = ["berkeleydb"]
80-
networkx = ["networkx"]
71+
[project.optional-dependencies]
72+
berkeleydb = ["berkeleydb >18.1.0"]
73+
networkx = ["networkx >=2,<4"]
8174
# html support is optional, it is used only in tokenizing `rdf:HTML` type Literals
82-
html = ["html5rdf"]
75+
html = ["html5rdf >=1.2.1,<2"]
8376
# lxml support is optional, it is used only for parsing XML-formatted SPARQL results
84-
lxml = ["lxml"]
85-
orjson = ["orjson"]
77+
lxml = [
78+
'lxml >=4.8.0,<6.0; python_version <"3.11"',
79+
'lxml >=4.9.3,<6.0; python_version >="3.11"',
80+
]
81+
orjson = ["orjson >=3.9.14,<4"]
8682

8783
[build-system]
88-
requires = ["poetry-core>=1.9.1"]
84+
requires = ["poetry-core>=2.0.0"]
8985
build-backend = "poetry.core.masonry.api"
9086

9187
[tool.ruff]
@@ -288,3 +284,6 @@ exclude_lines = [
288284
"if __name__ == .__main__.:",
289285
"if __name__==.__main__.:"
290286
]
287+
288+
[tool.poetry.requires-plugins]
289+
poetry-plugin-export = ">=1.8.0"

rdflib/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ def serialize(
14171417
else:
14181418
os_path = location
14191419
with open(os_path, "wb") as stream:
1420-
serializer.serialize(stream, encoding=encoding, **args)
1420+
serializer.serialize(stream, base=base, encoding=encoding, **args)
14211421
return self
14221422

14231423
def print(

rdflib/plugins/sparql/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ def expandCollection(terms: ParseResults) -> list[list[Any]]:
14831483
AskQuery = Comp(
14841484
"AskQuery",
14851485
Keyword("ASK")
1486-
+ Param("datasetClause", ZeroOrMore(DatasetClause))
1486+
+ ZeroOrMore(ParamList("datasetClause", DatasetClause))
14871487
+ WhereClause
14881488
+ SolutionModifier
14891489
+ ValuesClause,

run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
spec of pytest, but with some options pre-set. To begin with, make sure you have
77
pytest installed, e.g.:
88
9-
$ pip install pytest
9+
$ poetry add pytest
1010
1111
To run the tests, use:
1212

0 commit comments

Comments
 (0)