From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:Python sdist" |
|---|
| claim | "A standard sdist is a .tar.gz named {name}-{version}.tar.gz with one top-level directory {name}-{version}/ containing pyproject.toml and a PKG-INFO of metadata version 2.2 or later (License-File paths present from 2.4); the tarball is POSIX.1-2001 pax and must open with tarfile mode r:gz. Extractors must use tarfile data_filter or equivalent rules: no entries outside the destination, no links or device files escaping, leading slashes dropped, setuid/setgid/sticky bits cleared." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Python sdist" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "archive layout" |
|---|
| indicator | "{name}-{version}/PKG-INFO and {name}-{version}/pyproject.toml in a .tar.gz" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "File name, file format, and archive-features sections." |
|---|
| repo | "https://github.com/pypa/packaging.python.org" |
|---|
| commit | "d1ad4ad3d6d6f3a3582e4c6b8a1b6f8284f4cb3b" |
|---|
| path | "source/specifications/source-distribution-format.rst" |
|---|
| lines | "37-79, 84-142" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "sdist layout" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T07:16:15.458Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:11:53.057Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read the whole source-distribution-format.rst at the cited commit: file name, single top-level directory, pyproject.toml + PKG-INFO >= 2.2, License-File from 2.4, pax format, data filter and mode-bit rules (high bits cleared). The page also defines a legacy format without pyproject.toml, which this fact does not claim to cover." |
|---|
|
|
|---|