Skip to content

Commit 3f01860

Browse files
committed
Fix publish error
Error seen at https://github.com/mwouts/jupytext/actions/runs/14011438651/job/39231750230 Checking dist/README_with_absolute_links.md: ERROR InvalidDistribution: Unknown distribution format: 'README_with_absolute_links.md'
1 parent 33bb476 commit 3f01860

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Jupytext ChangeLog
22
==================
33

4-
1.17.0-dev
4+
1.17.0rc1
55
----------
66

77
**Changed**

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = { file = "LICENSE" }
99
authors = [
1010
{ name = "Marc Wouts", email = "[email protected]" },
1111
]
12-
readme = "dist/README_with_absolute_links.md"
12+
readme = "build/README_with_absolute_links.md"
1313
requires-python = ">=3.8"
1414
classifiers = [
1515
"Development Status :: 5 - Production/Stable",

src/jupytext/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Jupytext's version number"""
22

3-
__version__ = "1.17.0rc0"
3+
__version__ = "1.17.0rc1"

tools/absolute_links_in_readme.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AbsoluteLinksInReadme(MetadataHookInterface):
1010
def update(self, metadata):
1111
"""Process README.md when metadata is being prepared."""
1212
readme_src_path = Path("README.md")
13-
readme_output_path = Path("dist/README_with_absolute_links.md")
13+
readme_output_path = Path("build/README_with_absolute_links.md")
1414
base_url = "https://github.com/mwouts/jupytext/blob/main/"
1515

1616
# Ensure the dist directory exists
@@ -36,5 +36,6 @@ def replace_link(match):
3636
new_content = pattern.sub(replace_link, content)
3737

3838
# Write the processed content to the output file
39+
output_path.parent.mkdir(exist_ok=True)
3940
output_path.write_text(new_content, encoding="utf-8")
4041
print(f"Generated {output_path} with absolute links")

0 commit comments

Comments
 (0)