Skip to content

Commit fd9977b

Browse files
committed
Correct the reference to where sdist filenames are documented
1 parent 5667f8f commit fd9977b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/utils.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Reference
6666
.. function:: parse_sdist_filename(filename)
6767

6868
This function takes the filename of a sdist file (as specified
69-
in PEP 517), and parses it, returning a tuple of name and version.
69+
in the `Source distribution format`_ documentation), and parses
70+
it, returning a tuple of name and version.
7071

7172
:param str filename: The name of the sdist file.
7273

@@ -78,3 +79,5 @@ Reference
7879
'foo'
7980
>>> ver
8081
<Version('1.0')>
82+
83+
.. _Source distribution format: https://packaging.python.org/specifications/source-distribution-format/#source-distribution-file-name

packaging/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class InvalidWheelFilename(ValueError):
2525

2626
class InvalidSdistFilename(ValueError):
2727
"""
28-
An invalid sdist filename was found, users should refer to PEP 517.
28+
An invalid sdist filename was found, users should refer to the packaging user guide.
2929
"""
3030

3131

0 commit comments

Comments
 (0)