Skip to content

Commit 9780bf9

Browse files
committed
Fix misleading URLs in the documentation
Due to an issue with the configuration, links in the documentation currently point to yarl's repo instead of frozenslist's repo. To fix that, yarl substrings must be replaced with frozenlist.
1 parent bbe041d commit 9780bf9

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

docs/spelling_wordlist.txt

-1
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,3 @@ WSMsgType
324324
wss
325325
www
326326
xxx
327-
yarl

packaging/pep517_backend/_backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _get_sanitized_long_description(self):
196196

197197
@contextmanager
198198
def _in_temporary_directory(src_dir: Path) -> t.Iterator[None]:
199-
with TemporaryDirectory(prefix='.tmp-yarl-pep517-') as tmp_dir:
199+
with TemporaryDirectory(prefix='.tmp-frozenlist-pep517-') as tmp_dir:
200200
with chdir_cm(tmp_dir):
201201
tmp_src_dir = Path(tmp_dir) / 'src'
202202
copytree(src_dir, tmp_src_dir, symlinks=True)

packaging/pep517_backend/_transformers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ def sanitize_rst_roles(rst_source_text: str) -> str:
4747
"""
4848
issue_substitution_pattern = (
4949
r"`#\g<issue_number> "
50-
r"<https://github.com/aio-libs/yarl/issues/\g<issue_number>>`__"
50+
r"<https://github.com/aio-libs/frozenlist/issues/\g<issue_number>>`__"
5151
)
5252

5353
pr_role_regex = r"""(?x)
5454
:pr:`(?P<pr_number>[^`]+)(?:\s+(.*))?`
5555
"""
5656
pr_substitution_pattern = (
5757
r"`PR #\g<pr_number> "
58-
r"<https://github.com/aio-libs/yarl/pull/\g<pr_number>>`__"
58+
r"<https://github.com/aio-libs/frozenlist/pull/\g<pr_number>>`__"
5959
)
6060

6161
commit_role_regex = r"""(?x)
6262
:commit:`(?P<commit_sha>[^`]+)(?:\s+(.*))?`
6363
"""
6464
commit_substitution_pattern = (
6565
r"`\g<commit_sha> "
66-
r"<https://github.com/aio-libs/yarl/commit/\g<commit_sha>>`__"
66+
r"<https://github.com/aio-libs/frozenlist/commit/\g<commit_sha>>`__"
6767
)
6868

6969
gh_role_regex = r"""(?x)

0 commit comments

Comments
 (0)