Skip to content

Pull request for issue 2957 - subselect fails under optional #3077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 69 commits into
base: 7.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
03b2cfe
7.1.1 post release (#2953)
nicholascar Oct 28, 2024
b0d7a7d
Fix Black formatting in ./admin/get_merged_prs.py (#2954)
ashleysommer Oct 28, 2024
2c83786
bump to proper release of html5rdf (#2961)
ashleysommer Oct 30, 2024
d119ebe
build(deps-dev): bump ruff from 0.7.0 to 0.7.1 (#2955)
dependabot[bot] Oct 30, 2024
4be4216
Fix defined namespace warnings (#2964)
ashleysommer Nov 1, 2024
086a4f7
Bump to Python 3.9, Big typing updates (#2963)
ashleysommer Nov 4, 2024
06bd927
Annotate Serializer.serialize and descendants (#2970)
ajnelson-nist Nov 4, 2024
4ea72ac
build(deps): bump orjson from 3.10.10 to 3.10.11 (#2966)
dependabot[bot] Nov 4, 2024
ed3de0f
build(deps-dev): bump ruff from 0.7.1 to 0.7.2 (#2969)
dependabot[bot] Nov 6, 2024
d73f50c
build(deps-dev): bump pytest-cov from 5.0.0 to 6.0.0 (#2967)
dependabot[bot] Nov 6, 2024
ac0566f
chore: type annotations - convert uses of Optional and some Union usa…
edmondchuc Nov 6, 2024
97cee9b
Don't use forward references to TypeAlias where it can be avoided, be…
ashleysommer Nov 6, 2024
c705d7f
build(deps): bump library/python in /docker/unstable (#2937)
dependabot[bot] Nov 7, 2024
14bb8ec
build(deps): bump library/python in /docker/latest (#2928)
dependabot[bot] Nov 7, 2024
ade9a1c
Can't turn off auto-updates for Black version in pre-commit-ci, so ch…
ashleysommer Nov 11, 2024
70070b1
build(deps-dev): bump ruff from 0.7.2 to 0.7.3 (#2979)
dependabot[bot] Nov 11, 2024
fa5239f
build(deps-dev): bump wheel from 0.44.0 to 0.45.0 (#2978)
dependabot[bot] Nov 11, 2024
0680442
Fix tuple typing mistake in triples_choices (#2987)
ashleysommer Nov 18, 2024
a9e30d3
build(deps): bump library/python in /docker/unstable (#2986)
dependabot[bot] Nov 18, 2024
15ebc88
build(deps-dev): bump ruff from 0.7.3 to 0.8.0 (#2994)
dependabot[bot] Nov 27, 2024
06eb51c
build(deps): bump orjson from 3.10.11 to 3.10.12 (#2991)
dependabot[bot] Nov 27, 2024
37cef27
build(deps-dev): bump coverage from 7.6.4 to 7.6.8 (#2993)
dependabot[bot] Nov 27, 2024
0c2c59e
added Node as an exported name from the root package location. Update…
joecrowleygaia Nov 27, 2024
aff4ded
build(deps-dev): bump wheel from 0.45.0 to 0.45.1 (#2992)
dependabot[bot] Nov 27, 2024
08dd4b7
build(deps): bump library/python in /docker/latest (#2980)
dependabot[bot] Nov 27, 2024
28a6190
feat: sort longturtle blank nodes (#2997)
edmondchuc Nov 29, 2024
507e1c3
build(deps-dev): bump pytest from 8.3.3 to 8.3.4 (#2999)
dependabot[bot] Dec 9, 2024
336aaae
build(deps-dev): bump poetry from 1.8.4 to 1.8.5 (#3001)
dependabot[bot] Dec 9, 2024
f7d1d35
build(deps-dev): bump coverage from 7.6.8 to 7.6.9 (#3002)
dependabot[bot] Dec 9, 2024
1a6bc9b
build(deps-dev): bump ruff from 0.8.0 to 0.8.2 (#3003)
dependabot[bot] Dec 9, 2024
abc5dcd
build(deps): bump library/python in /docker/unstable (#3004)
dependabot[bot] Dec 9, 2024
e8f61d4
build(deps): bump library/python in /docker/latest (#3005)
dependabot[bot] Dec 9, 2024
77e6b83
build(deps-dev): bump ruff from 0.8.2 to 0.8.3 (#3010)
dependabot[bot] Dec 16, 2024
228f3a1
build(deps): bump berkeleydb from 18.1.11 to 18.1.12 (#3009)
dependabot[bot] Dec 16, 2024
0e64a9b
build(deps-dev): bump ruff from 0.8.3 to 0.8.4 (#3015)
dependabot[bot] Dec 25, 2024
d25d945
build(deps): bump library/python in /docker/latest (#3016)
dependabot[bot] Jan 2, 2025
ac405f7
build(deps): bump library/python in /docker/unstable (#3019)
dependabot[bot] Jan 2, 2025
ff828db
build(deps-dev): bump coverage from 7.6.9 to 7.6.10 (#3017)
dependabot[bot] Jan 2, 2025
1e62909
build(deps): bump orjson from 3.10.12 to 3.10.13 (#3018)
dependabot[bot] Jan 6, 2025
e02853b
build(deps-dev): bump ruff from 0.8.4 to 0.8.6 (#3025)
dependabot[bot] Jan 6, 2025
1ce3321
build(deps): bump pyparsing from 3.2.0 to 3.2.1 (#3024)
dependabot[bot] Jan 6, 2025
182c3ba
feat: deterministic longturtle serialisation using RDF canonicalizati…
edmondchuc Jan 6, 2025
bc17fb7
jsonld: Do not merge nodes with different invalid URIs (#3011)
progval Jan 6, 2025
6747715
Fixed incorrect ASK behaviour for dataset with one element (#2989)
jcbiddle Jan 6, 2025
e9bf586
Pass base uri to serializer when writing to file. (#2977)
sandervd Jan 6, 2025
e9a3e46
move to PEP621 (Poetry 2.0.0) pyproject.toml (#3027)
nicholascar Jan 9, 2025
54b3bb6
[pre-commit.ci] pre-commit autoupdate (#3026)
pre-commit-ci[bot] Jan 9, 2025
97ff668
Dataset documentation improvements (#3012)
nicholascar Jan 9, 2025
c37d399
build(deps-dev): bump mypy from 1.13.0 to 1.14.1 (#3023)
dependabot[bot] Jan 10, 2025
fd21a00
Add RDFLib Path to SHACL path utility and corresponding tests (#2990)
mgberg Jan 10, 2025
46f2239
7.1.2 pre release prep (#3030)
nicholascar Jan 10, 2025
5497ae1
7.1.2 post release (#3032)
nicholascar Jan 10, 2025
6dc95f8
build(deps): bump poetry-plugin-export from 1.8.0 to 1.9.0 in /devtoo…
dependabot[bot] Jan 15, 2025
6f156fc
Update .readthedocs.yaml
nicholascar Mar 24, 2025
427de9d
remove old hacks against 2to3 (#3095)
a-detiste Mar 24, 2025
9f76b0f
fold 7.x README updates in
nicholascar Mar 29, 2025
c931a1c
Add COTTAS store backend (#3139)
arenas-guerrero-julian May 20, 2025
2386517
build(deps): bump rdflib from 7.1.2 to 7.1.4 in /docker/latest (#3101)
dependabot[bot] May 27, 2025
490f220
build(deps): bump library/python in /docker/latest (#3117)
dependabot[bot] May 31, 2025
a98280a
build(deps): bump library/python in /docker/unstable (#3118)
dependabot[bot] May 31, 2025
a314899
build(deps-dev): bump typing-extensions from 4.13.0 to 4.13.2 (#3121)
dependabot[bot] May 31, 2025
5e88541
fix namespace prefixes in longturtle serialization (#3106)
ddeschepper May 31, 2025
751cc7c
fix: do not automatically generate header id in RDF patch generation …
recalcitrantsupplant May 31, 2025
f9161a5
fix: remove Literal.toPython date conversion for gYear/gYearMonth (#3…
lu-pl May 31, 2025
98cec06
build(deps-dev): bump coverage from 7.7.1 to 7.8.2 (#3142)
dependabot[bot] May 31, 2025
3b2c6f3
Pr/3143 (#3144)
nicholascar Jun 1, 2025
87ed8d1
replace PR 3109; improve plugins modules docs; change header colour t…
nicholascar Jun 1, 2025
a683d19
Cope with Namespace annotations in Python 3.14 (#3132)
nphilipp Jun 1, 2025
53405b7
Replacement for #3125 (#3146)
nicholascar Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.tox
.venv
.venv39
.mypy_cache
.pytest_cache
.git
Expand Down
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ updates:
# see https://github.com/dependabot/dependabot-core/pull/10194
versioning-strategy: auto
ignore:
- dependency-name: sphinx
versions:
- 3.4.3
- 3.5.2
# We only use setuptools for a couple of things in the test suite
# There is no need to keep it bleeding-edge. There are too frequent
# updates to setuptools, requires too much maintenance to keep it up to date.
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
# This is used for injecting additional tests for a specific python
# version and OS.
suffix: [""]
include:
- python-version: "3.8"
- python-version: "3.9"
os: ubuntu-latest
extensive-tests: true
TOXENV_SUFFIX: "-docs"
- python-version: "3.8"
- python-version: "3.9"
os: ubuntu-latest
extensive-tests: true
PREPARATION: "sudo apt-get install -y libxml2-dev libxslt-dev"
suffix: "-min"
TOXENV_SUFFIX: "-min"
- python-version: "3.9"
- python-version: "3.10"
os: ubuntu-latest
TOXENV_SUFFIX: "-docs"
- python-version: "3.10"
- python-version: "3.11"
os: ubuntu-latest
TOX_EXTRA_COMMAND: "- black --check --diff ./rdflib"
TOXENV_SUFFIX: "-lxml"
Expand All @@ -55,6 +55,10 @@ jobs:
extensive-tests: true
TOX_TEST_HARNESS: "firejail --net=none --"
TOX_PYTEST_EXTRA_ARGS: "-m 'not webtest'"
- python-version: "3.12"
os: ubuntu-latest
TOX_EXTRA_COMMAND: "- black --check --diff ./rdflib"
TOXENV_SUFFIX: "-lxml"
steps:
- uses: actions/checkout@v4
- name: Cache XDG_CACHE_HOME
Expand Down Expand Up @@ -121,7 +125,7 @@ jobs:
matrix:
include:
- task: "gha:lint"
python-version: 3.8
python-version: 3.9
steps:
- uses: actions/checkout@v4
- name: Cache XDG_CACHE_HOME
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
.flakeheaven_cache/
RDFLib.sublime-project
/docs/_build/
RDFLib.sublime-workspace
coverage/
cov.xml
/.hgtags
/.hgignore
build/
/docs/draft/
/docs/apidocs/
/docs/_build/
*~
test_reports/*latest.ttl
# PyCharm
Expand Down Expand Up @@ -139,6 +140,7 @@ celerybeat.pid
# Environments
.env
.venv
.venv39
env/
venv/
ENV/
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
ci:
# https://pre-commit.ci/#configuration
autoupdate_schedule: weekly
autoupdate_schedule: quarterly
autofix_prs: false

# https://pre-commit.com/#adding-pre-commit-plugins-to-your-project
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# WARNING: Ruff version should be the same as in `pyproject.toml`
rev: v0.5.4
rev: v0.8.6
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/psf/black-pre-commit-mirror
# WARNING: Black version should be the same as in `pyproject.toml`
rev: "24.4.2"
rev: "24.10.0"
hooks:
- id: black
pass_filenames: false
require_serial: true
args: ["."]
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
rev: 2.0.0
hooks:
- id: poetry-check
- id: poetry-lock
# sadly `--no-update` does not work on pre-commit.ci
args: ["--check"]

14 changes: 6 additions & 8 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
# https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2
# NOTE: not builing epub because epub does not know how to handle .ico files
# NOTE: not building epub because epub does not know how to handle .ico files
# which results in a warning which causes the build to fail due to
# `sphinx.fail_on_warning`
# https://github.com/sphinx-doc/sphinx/issues/10350
formats:
- htmlzip
- pdf

# https://docs.readthedocs.com/platform/stable/intro/mkdocs.html
build:
os: ubuntu-20.04
os: "ubuntu-24.04"
tools:
# Using 3.9 as earlier versions have trouble generating documentation for
# `@typing.overload`` with type aliases.
python: "3.9"
python: "3"
jobs:
post_create_environment:
# Using requirements-poetry.in as requirements-poetry.txt has conflicts with
Expand All @@ -24,7 +23,6 @@ build:
- poetry export --only=main --only=docs --without-hashes -o requirements.txt
- pip install --no-cache-dir -r requirements.txt
- pip install .
- python -c "from rdflib import Graph; print(Graph)"

sphinx:
fail_on_warning: true
mkdocs:
configuration: mkdocs.yml
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 2025-01-10 RELEASE 7.1.2

A minor release that bumped up a few dev dependencies and achieved a few small but notable improvements, particularly with longturtle sorting:

Feature PRs:

* [PR #2963](https://github.com/RDFLib/rdflib/pull/2963) Big typing updates
* [PR #2964](https://github.com/RDFLib/rdflib/pull/2964) Defined Namesapce warnings fix
* [PR #2971](https://github.com/RDFLib/rdflib/pull/2971) convert uses of Optional and some Union usage to union operator |
* [PR #2989](https://github.com/RDFLib/rdflib/pull/2989) Fixed incorrect ASK behaviour for dataset with one element
* [PR #2997](https://github.com/RDFLib/rdflib/pull/2997) sort longturtle blank nodes
* [PR #3008](https://github.com/RDFLib/rdflib/pull/3008) deterministic longturtle serialisation using RDF canonicalization + n-triples sort
* [PR #3012](https://github.com/RDFLib/rdflib/pull/3012) Dataset documentation improvements

Dependency bumps:

* ruff from 0.71 -> 0.8.6
* orjson 3.10.10 ->
* pytest-cov to 6.0.0
* coverage to 7.6.10
* pytest to 8.3.4
* poetry to 2.0.0

## 2024-10-17 RELEASE 7.1.1

This minor release removes the dependency on some only Python packages, in particular
Expand Down
9 changes: 6 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ authors:
- family-names: "Krech"
given-names: "Daniel"
- family-names: "Grimnes"
given-names: "Gunnar AAstrand"
given-names: "Gunnar Aastrand"
- family-names: "Higgins"
given-names: "Graham"
- family-names: "Car"
given-names: "Nicholas"
orcid: "https://orcid.org/0000-0002-8742-7730"
- family-names: "Hees"
given-names: "Jörn"
orcid: "https://orcid.org/0000-0002-0084-8998"
Expand Down Expand Up @@ -69,7 +72,7 @@ authors:
- family-names: "Stuart"
given-names: "Veyndan"
title: "RDFLib"
version: 7.1.1
date-released: 2024-10-28
version: 7.1.2
date-released: 2025-01-10
url: "https://github.com/RDFLib/rdflib"
doi: 10.5281/zenodo.6845245
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Daniel Krech
Dann Martens
Darren Garvey
Dave Challis
David Habgood
David H Jones
David Steinberg
Debabrata Deka
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2002-2024, RDFLib Team
Copyright (c) 2002-2025, RDFLib Team
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ recursive-include examples *.py
graft test
graft docs
prune docs/_build
prune site/
global-exclude *.pyc *$py.class
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![](docs/_static/RDFlib.png)
![](docs/_static/RDFlib.png)

# RDFLib

RDFLib
======
[![Build Status](https://github.com/RDFLib/rdflib/actions/workflows/validate.yaml/badge.svg?branch=main)](https://github.com/RDFLib/rdflib/actions?query=branch%3Amain)
[![Documentation Status](https://readthedocs.org/projects/rdflib/badge/?version=latest)](https://rdflib.readthedocs.io/en/latest/?badge=latest)
[![Coveralls branch](https://img.shields.io/coveralls/RDFLib/rdflib/main.svg)](https://coveralls.io/r/RDFLib/rdflib?branch=main)
Expand Down Expand Up @@ -31,7 +31,7 @@ The RDFlib community maintains many RDF-related Python code repositories with di
* [sparqlwrapper](https://github.com/RDFLib/sparqlwrapper) - a simple Python wrapper around a SPARQL service to remotely execute your queries
* [pyLODE](https://github.com/RDFLib/pyLODE) - An OWL ontology documentation tool using Python and templating, based on LODE.
* [pyrdfa3](https://github.com/RDFLib/pyrdfa3) - RDFa 1.1 distiller/parser library: can extract RDFa 1.1/1.0 from (X)HTML, SVG, or XML in general.
* [pymicrodata](https://github.com/RDFLib/pymicrodata) - A module to extract RDF from an HTML5 page annotated with microdata.
* [pymicrodata](https://github.com/RDFLib/pymicrodata) - A module to extract RDF from an HTML5 page annotated with microdata.
* [pySHACL](https://github.com/RDFLib/pySHACL) - A pure Python module which allows for the validation of RDF graphs against SHACL graphs.
* [OWL-RL](https://github.com/RDFLib/OWL-RL) - A simple implementation of the OWL2 RL Profile which expands the graph with all possible triples that OWL RL defines.

Expand All @@ -43,13 +43,15 @@ Help with maintenance of all of the RDFLib family of packages is always welcome

## Versions & Releases

* `main` branch in this repository is the unstable release
* `7.1.1` current stable release, bugfixes to 7.1.0
* `7.0.0` previous stable release, supports Python 3.8.1+ only.
* see [Releases](https://github.com/RDFLib/rdflib/releases)
* `main` branch in this repository is the current unstable release - version 8 alpha
* `7.1.4` tidy-up release, possibly last 7.x release
* `7.1.2` current stable release, small improvements on to 7.1.1
* `7.1.1` previous stable release
* see <https://github.com/RDFLib/rdflib/releases/tag/7.1.1>
* `6.x.y` supports Python 3.7+ only. Many improvements over 5.0.0
* see [Releases](https://github.com/RDFLib/rdflib/releases)
* see <https://github.com/RDFLib/rdflib/releases/tag/6.3.2>
* `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).
* * see <https://github.com/RDFLib/rdflib/releases/tag/5.0.0>

See <https://github.com/RDFLib/rdflib/releases/> for the release details.

Expand All @@ -68,7 +70,7 @@ Some features of RDFLib require optional dependencies which may be installed usi
Alternatively manually download the package from the Python Package
Index (PyPI) at https://pypi.python.org/pypi/rdflib

The current version of RDFLib is 7.1.1, see the ``CHANGELOG.md`` file for what's new in this release.
The current version of RDFLib is 7.1.2, see the ``CHANGELOG.md`` file for what's new in this release.

### Installation of the current main branch (for developers)

Expand Down Expand Up @@ -132,18 +134,21 @@ g.add((
Literal("Nick", datatype=XSD.string)
))
```

The triple (in n-triples notation) `<http://example.com/person/nick> <http://xmlns.com/foaf/0.1/givenName> "Nick"^^<http://www.w3.org/2001/XMLSchema#string> .`
is created where the property `FOAF.givenName` is the URI `<http://xmlns.com/foaf/0.1/givenName>` and `XSD.string` is the
URI `<http://www.w3.org/2001/XMLSchema#string>`.

You can bind namespaces to prefixes to shorten the URIs for RDF/XML, Turtle, N3, TriG, TriX & JSON-LD serializations:

```python
```python
g.bind("foaf", FOAF)
g.bind("xsd", XSD)
```

This will allow the n-triples triple above to be serialised like this:
```python

```python
print(g.serialize(format="turtle"))
```

Expand Down
10 changes: 5 additions & 5 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,19 @@ tasks:
desc: Clean generated documentation
cmds:
- task: _rimraf
vars: { RIMRAF_TARGET: "docs/_build/" }
vars: { RIMRAF_TARGET: "site/" }

docs:
desc: Build documentation
cmds:
- echo "PYTHONPATH=${PYTHONPATH}"
- "{{.VENV_PYTHON}} -m sphinx.cmd.build -T -W -b html -d docs/_build/doctree docs docs/_build/html {{.CLI_ARGS}}"
- "{{.VENV_PYTHON}} -m mkdocs build {{.CLI_ARGS}}"

docs:live-server:
desc: Run a live server on generated docs
cmds:
- 'echo "NOTE: Docs must be built for this to work"'
- npx -p live-server live-server docs/_build/html/ {{.CLI_ARGS}}
- npx -p live-server live-server site/ {{.CLI_ARGS}}

default:
desc: Run validate
Expand Down Expand Up @@ -272,7 +272,7 @@ tasks:

pip-compile:
cmds:
- cmd: "{{.PIP_COMPILE}} --quiet --annotate --emit-options --resolver=backtracking {{.CLI_ARGS}}"
- cmd: "{{.PIP_COMPILE}} --quiet --annotate --emit-options --no-strip-extras --resolver=backtracking {{.CLI_ARGS}}"

docker:prepare:
cmds:
Expand Down Expand Up @@ -356,7 +356,7 @@ tasks:
cd var/test-sdist/rdflib-*
poetry install
poetry run mypy --show-error-context --show-error-codes -p rdflib
poetry run sphinx-build -T -W -b html -d docs/_build/doctree docs docs/_build/html
poetry run mkdocs build
poetry run pytest

test:no_internet:
Expand Down
8 changes: 6 additions & 2 deletions admin/get_merged_prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import urllib.request

# https://api.github.com/search/issues?q=repo:rdflib/rdflib+is:pr+merged:%3E=2023-08-02&per_page=300&page=1
LAST_RELEASE_DATE = "2024-10-17"
LAST_RELEASE_DATE = "2024-10-29"
ISSUES_URL = "https://api.github.com/search/issues"
ITEMS = []
PAGE = 1
Expand All @@ -23,7 +23,11 @@
print(f"Getting {url}")
with urllib.request.urlopen(url) as response:
response_text = response.read()
link_headers = response.info()["link"].split(",") if response.info()["link"] is not None else None
link_headers = (
response.info()["link"].split(",")
if response.info()["link"] is not None
else None
)

json_data = json.loads(response_text)
ITEMS.extend(json_data["items"])
Expand Down
7 changes: 4 additions & 3 deletions devtools/constraints.min
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# these versions. The file's extension (`.min`) is chosen to evade Dependabot
# which operates on `*.{txt,in}` files.
isodate==0.7.2; python_version < "3.11"
pyparsing==2.1.0
pyparsing==3.2.0
importlib-metadata==4.0.0
berkeleydb==18.1.2
networkx==2.0
html5rdf==1.2.0
lxml==4.3.0
html5rdf==1.2.1
lxml==4.8.0; python_version < "3.11"
lxml==4.9.3; python_version >= "3.11"
orjson==3.9.14
Loading
Loading