Skip to content
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

post 7.1.0 release PR #2934

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 8 additions & 5 deletions admin/get_merged_prs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Get all merged PRs since last release, save them to a JSON file"""

import json
from datetime import datetime
import urllib.request
import urllib.parse

Expand All @@ -18,7 +17,7 @@
"per_page": 100,
"page": PAGE,
}
query_string = "&".join([f'{k}={v}' for k, v in params.items()])
query_string = "&".join([f"{k}={v}" for k, v in params.items()])
url = ISSUES_URL + "?" + query_string

print(f"Getting {url}")
Expand Down Expand Up @@ -47,10 +46,14 @@
boring_prs = []
for pr in sorted(ITEMS, key=lambda k: k["closed_at"], reverse=True):
matches = ["bump", "pre-commit.ci"]
if any(x in pr['title'] for x in matches):
boring_prs.append(f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})""")
if any(x in pr["title"] for x in matches):
boring_prs.append(
f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})"""
)
else:
good_prs.append(f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})""")
good_prs.append(
f"""* {pr['closed_at'][:10]} - {pr['title']}\n [PR #{pr['number']}]({pr['html_url']})"""
)

for pr in good_prs:
print(pr)
Expand Down
2 changes: 1 addition & 1 deletion docker/latest/requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is used for building a docker image of the latest rdflib release. It
# will be updated by dependabot when new releases are made.
rdflib==7.0.0
rdflib==7.1.0
html5lib-modern==1.2.0
# isodate is required to allow the Dockerfile to build on with pre-RDFLib-7.1 releases.
isodate==0.7.2
15 changes: 7 additions & 8 deletions docker/latest/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --config=pyproject.toml docker/latest/requirements.in
# pip-compile docker/latest/requirements.in
#
html5lib-modern==1.2
# via
# -r docker/latest/requirements.in
# rdflib
isodate==0.7.2
# via -r docker/latest/requirements.in
isodate==0.7.2; python_version < "3.11"
# via rdflib
pyparsing==3.0.9
# via rdflib
rdflib==7.0.0
# via -r docker/latest/requirements.in
# isodate is required to allow the Dockerfile to build on with pre-RDFLib-7.1 releases.
isodate==0.7.2
rdflib==7.1.0
# via -r docker/latest/requirements.in
3 changes: 3 additions & 0 deletions docs/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ Once the PR is merged, switch to the main branch, build the release and upload i
bsdtar -xvf dist/rdflib-*.tar.gz -O '*/PKG-INFO' | view -

# Check that the built wheel and sdist works correctly:
## Ensure pipx is installed but not within RDFLib's environment
pipx run --no-cache --spec "$(readlink -f dist/rdflib*.whl)" rdfpipe --version
pipx run --no-cache --spec "$(readlink -f dist/rdflib*.whl)" rdfpipe https://github.com/RDFLib/rdflib/raw/main/test/data/defined_namespaces/rdfs.ttl
pipx run --no-cache --spec "$(readlink -f dist/rdflib*.tar.gz)" rdfpipe --version
Expand All @@ -481,10 +482,12 @@ Once the PR is merged, switch to the main branch, build the release and upload i
poetry publish --dry-run

# Publish to TestPyPI
## ensure you are authed as per https://pypi.org/help/#apitoken and https://github.com/python-poetry/poetry/issues/6320
poetry publish --repository=testpypi

# Publish to PyPI
poetry publish
## poetry publish -u __token__ -p pypi-<REDACTED>


Once this is done, create a release tag from `GitHub releases
Expand Down
77 changes: 76 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rdflib"
version = "7.1.0"
version = "7.1.1a0"
description = """RDFLib is a Python library for working with RDF, \
a simple yet powerful language for representing information."""
authors = ["Daniel 'eikeon' Krech <eikeon@eikeon.com>"]
Expand Down Expand Up @@ -51,6 +51,7 @@ orjson = {version = ">=3.9.14,<4", optional = true}
black = "24.4.2"
mypy = "^1.1.0"
lxml-stubs = ">=0.4,<0.6"
pip-tools = "^7.4.1"

[tool.poetry.group.tests.dependencies]
pytest = ">=7.1.3,<9.0.0"
Expand Down Expand Up @@ -255,12 +256,10 @@ warn_unused_ignores = true
no_implicit_optional = false
implicit_reexport = false


[[tool.mypy.overrides]]
module = "rdflib.*"
check_untyped_defs = true


[tool.coverage.run]
branch = true
source = ["rdflib"]
Expand Down
Loading