Skip to content

Commit 972da97

Browse files
authored
post 7.1.0 release PR (#2934)
* post 7.1.0 release PR * remove unused import; tidy
1 parent ac03f37 commit 972da97

File tree

6 files changed

+97
-18
lines changed

6 files changed

+97
-18
lines changed

admin/get_merged_prs.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Get all merged PRs since last release, save them to a JSON file"""
22

33
import json
4-
from datetime import datetime
54
import urllib.request
65
import urllib.parse
76

@@ -18,7 +17,7 @@
1817
"per_page": 100,
1918
"page": PAGE,
2019
}
21-
query_string = "&".join([f'{k}={v}' for k, v in params.items()])
20+
query_string = "&".join([f"{k}={v}" for k, v in params.items()])
2221
url = ISSUES_URL + "?" + query_string
2322

2423
print(f"Getting {url}")
@@ -47,10 +46,14 @@
4746
boring_prs = []
4847
for pr in sorted(ITEMS, key=lambda k: k["closed_at"], reverse=True):
4948
matches = ["bump", "pre-commit.ci"]
50-
if any(x in pr['title'] for x in matches):
51-
boring_prs.append(f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})""")
49+
if any(x in pr["title"] for x in matches):
50+
boring_prs.append(
51+
f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})"""
52+
)
5253
else:
53-
good_prs.append(f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})""")
54+
good_prs.append(
55+
f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})"""
56+
)
5457

5558
for pr in good_prs:
5659
print(pr)

docker/latest/requirements.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is used for building a docker image of the latest rdflib release. It
22
# will be updated by dependabot when new releases are made.
3-
rdflib==7.0.0
3+
rdflib==7.1.0
44
html5lib-modern==1.2.0
55
# isodate is required to allow the Dockerfile to build on with pre-RDFLib-7.1 releases.
66
isodate==0.7.2

docker/latest/requirements.txt

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
5-
# pip-compile --config=pyproject.toml docker/latest/requirements.in
5+
# pip-compile docker/latest/requirements.in
66
#
77
html5lib-modern==1.2
8+
# via
9+
# -r docker/latest/requirements.in
10+
# rdflib
11+
isodate==0.7.2
812
# via -r docker/latest/requirements.in
9-
isodate==0.7.2; python_version < "3.11"
10-
# via rdflib
1113
pyparsing==3.0.9
1214
# via rdflib
13-
rdflib==7.0.0
14-
# via -r docker/latest/requirements.in
15-
# isodate is required to allow the Dockerfile to build on with pre-RDFLib-7.1 releases.
16-
isodate==0.7.2
15+
rdflib==7.1.0
1716
# via -r docker/latest/requirements.in

docs/developers.rst

+3
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ Once the PR is merged, switch to the main branch, build the release and upload i
471471
bsdtar -xvf dist/rdflib-*.tar.gz -O '*/PKG-INFO' | view -
472472
473473
# Check that the built wheel and sdist works correctly:
474+
## Ensure pipx is installed but not within RDFLib's environment
474475
pipx run --no-cache --spec "$(readlink -f dist/rdflib*.whl)" rdfpipe --version
475476
pipx run --no-cache --spec "$(readlink -f dist/rdflib*.whl)" rdfpipe https://github.com/RDFLib/rdflib/raw/main/test/data/defined_namespaces/rdfs.ttl
476477
pipx run --no-cache --spec "$(readlink -f dist/rdflib*.tar.gz)" rdfpipe --version
@@ -481,10 +482,12 @@ Once the PR is merged, switch to the main branch, build the release and upload i
481482
poetry publish --dry-run
482483
483484
# Publish to TestPyPI
485+
## ensure you are authed as per https://pypi.org/help/#apitoken and https://github.com/python-poetry/poetry/issues/6320
484486
poetry publish --repository=testpypi
485487
486488
# Publish to PyPI
487489
poetry publish
490+
## poetry publish -u __token__ -p pypi-<REDACTED>
488491
489492
490493
Once this is done, create a release tag from `GitHub releases

poetry.lock

+76-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "rdflib"
3-
version = "7.1.0"
3+
version = "7.1.1a0"
44
description = """RDFLib is a Python library for working with RDF, \
55
a simple yet powerful language for representing information."""
66
authors = ["Daniel 'eikeon' Krech <[email protected]>"]
@@ -51,6 +51,7 @@ orjson = {version = ">=3.9.14,<4", optional = true}
5151
black = "24.4.2"
5252
mypy = "^1.1.0"
5353
lxml-stubs = ">=0.4,<0.6"
54+
pip-tools = "^7.4.1"
5455

5556
[tool.poetry.group.tests.dependencies]
5657
pytest = ">=7.1.3,<9.0.0"
@@ -255,12 +256,10 @@ warn_unused_ignores = true
255256
no_implicit_optional = false
256257
implicit_reexport = false
257258

258-
259259
[[tool.mypy.overrides]]
260260
module = "rdflib.*"
261261
check_untyped_defs = true
262262

263-
264263
[tool.coverage.run]
265264
branch = true
266265
source = ["rdflib"]

0 commit comments

Comments
 (0)