Skip to content

Add subdirectory to Direct URL schema - #1797

Closed
konstin wants to merge 2 commits into
python:mainfrom
konstin:konsti/fix-json-schema
Closed

konstin wants to merge 2 commits into
python:mainfrom
konstin:konsti/fix-json-schema

Conversation

@konstin

@konstin konstin commented Jan 31, 2025 •

Copy link
Copy Markdown
Contributor

The Direct URL JSON schema was missing an entry for subdirectory as described in the text.

I've also updated the schema to the 2020-12 draft, which removed some false positives about the schema in my URL.


📚 Documentation preview 📚: https://python-packaging-user-guide--1797.org.readthedocs.build/en/1797/

@edgarrmondragon edgarrmondragon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is subdirectory also supported for archive_info?

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR @konstin. This overlapped with #2161, which was merged yesterday. There is a difference in where subdirectory was added; PEP 610 allows it as a top-level key so the change in #2161 seems preferable to this PR.

I suggest closing this, and for the schema version bump opening a separate PR (I'll aim to merge that straight away).

@konstin konstin closed this Oct 27, 2026
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.

3 participants