Skip to content

Point to pyvrp.org/dev for development versions#1

Merged
N-Wouda merged 2 commits intomainfrom
point-to-pyvrp-org-dev
Oct 21, 2025
Merged

Point to pyvrp.org/dev for development versions#1
N-Wouda merged 2 commits intomainfrom
point-to-pyvrp-org-dev

Conversation

@N-Wouda
Copy link
Copy Markdown
Member

@N-Wouda N-Wouda commented Oct 21, 2025

No description provided.

@N-Wouda N-Wouda force-pushed the point-to-pyvrp-org-dev branch from 03aad06 to fcac1e7 Compare October 21, 2025 09:41
@N-Wouda
Copy link
Copy Markdown
Member Author

N-Wouda commented Oct 21, 2025

Looks OK to me. I wrote a small script to do this for me:

import fileinput
import glob
import json

import bs4


for file in glob.glob("**/*.html", recursive=True):
    with fileinput.input(file, inplace=True, encoding="utf-8") as fh:
        for line in fh:
            line = line.replace("\r\n", "\n").replace("\r", "\n")

            if "__config" in line:
                soup = bs4.BeautifulSoup(line, "lxml")
                config = soup.find("script", attrs=dict(id="__config"))
                data = json.loads(config.get_text())
                data["version"]["staticVersions"][0]["version"] = "https://pyvrp.org/dev"

                str_data = json.dumps(data)
                config.string.replace_with(str_data)
                print(str(config), end='')
            else:
                print(line, end='')

@N-Wouda N-Wouda merged commit 857e6a3 into main Oct 21, 2025
@N-Wouda N-Wouda deleted the point-to-pyvrp-org-dev branch October 21, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant