-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pep508.parseMarkers: Make platform_release a distinct type
`platform_release` parsing is more complicated than other fields. It can be either a PEP-440 version, or a non-compliant version string. If both lhs and rhs were correctly parsed as PEP-440 versions run regular version comparison, otherwise compare lexicographically See: - pypa/packaging#774 - astral-sh/uv#3917 (comment)
- Loading branch information
1 parent
f70611f
commit c95597a
Showing
18 changed files
with
2,936 additions
and
2,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"implementation_name": { | ||
"type": "string", | ||
"value": "pypy" | ||
}, | ||
"implementation_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
7, | ||
3, | ||
11 | ||
], | ||
"str": "7.3.11" | ||
} | ||
}, | ||
"os_name": { | ||
"type": "string", | ||
"value": "posix" | ||
}, | ||
"platform_machine": { | ||
"type": "string", | ||
"value": "x86_64" | ||
}, | ||
"platform_python_implementation": { | ||
"type": "string", | ||
"value": "PyPy" | ||
}, | ||
"platform_release": { | ||
"type": "platform_release", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"str": "0.0.0" | ||
} | ||
}, | ||
"platform_system": { | ||
"type": "string", | ||
"value": "Linux" | ||
}, | ||
"platform_version": { | ||
"type": "string", | ||
"value": "" | ||
}, | ||
"python_full_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
7, | ||
3, | ||
11 | ||
], | ||
"str": "7.3.11" | ||
} | ||
}, | ||
"python_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
9 | ||
], | ||
"str": "3.9" | ||
} | ||
}, | ||
"sys_platform": { | ||
"type": "string", | ||
"value": "linux" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"implementation_name": { | ||
"type": "string", | ||
"value": "cpython" | ||
}, | ||
"implementation_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
11, | ||
4 | ||
], | ||
"str": "3.11.4" | ||
} | ||
}, | ||
"os_name": { | ||
"type": "string", | ||
"value": "posix" | ||
}, | ||
"platform_machine": { | ||
"type": "string", | ||
"value": "x86_64" | ||
}, | ||
"platform_python_implementation": { | ||
"type": "string", | ||
"value": "CPython" | ||
}, | ||
"platform_release": { | ||
"type": "platform_release", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"str": "0.0.0" | ||
} | ||
}, | ||
"platform_system": { | ||
"type": "string", | ||
"value": "Darwin" | ||
}, | ||
"platform_version": { | ||
"type": "string", | ||
"value": "" | ||
}, | ||
"python_full_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
11, | ||
4 | ||
], | ||
"str": "3.11.4" | ||
} | ||
}, | ||
"python_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
11 | ||
], | ||
"str": "3.11" | ||
} | ||
}, | ||
"sys_platform": { | ||
"type": "string", | ||
"value": "darwin" | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
lib/expected/pep508.mkEnviron.testPython311DarwinAarch64.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"implementation_name": { | ||
"type": "string", | ||
"value": "cpython" | ||
}, | ||
"implementation_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
11, | ||
4 | ||
], | ||
"str": "3.11.4" | ||
} | ||
}, | ||
"os_name": { | ||
"type": "string", | ||
"value": "posix" | ||
}, | ||
"platform_machine": { | ||
"type": "string", | ||
"value": "arm64" | ||
}, | ||
"platform_python_implementation": { | ||
"type": "string", | ||
"value": "CPython" | ||
}, | ||
"platform_release": { | ||
"type": "platform_release", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"str": "0.0.0" | ||
} | ||
}, | ||
"platform_system": { | ||
"type": "string", | ||
"value": "Darwin" | ||
}, | ||
"platform_version": { | ||
"type": "string", | ||
"value": "" | ||
}, | ||
"python_full_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
11, | ||
4 | ||
], | ||
"str": "3.11.4" | ||
} | ||
}, | ||
"python_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
11 | ||
], | ||
"str": "3.11" | ||
} | ||
}, | ||
"sys_platform": { | ||
"type": "string", | ||
"value": "darwin" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"implementation_name": { | ||
"type": "string", | ||
"value": "cpython" | ||
}, | ||
"implementation_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
8, | ||
2 | ||
], | ||
"str": "3.8.2" | ||
} | ||
}, | ||
"os_name": { | ||
"type": "string", | ||
"value": "posix" | ||
}, | ||
"platform_machine": { | ||
"type": "string", | ||
"value": "x86_64" | ||
}, | ||
"platform_python_implementation": { | ||
"type": "string", | ||
"value": "CPython" | ||
}, | ||
"platform_release": { | ||
"type": "platform_release", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"str": "0.0.0" | ||
} | ||
}, | ||
"platform_system": { | ||
"type": "string", | ||
"value": "Linux" | ||
}, | ||
"platform_version": { | ||
"type": "string", | ||
"value": "" | ||
}, | ||
"python_full_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
8, | ||
2 | ||
], | ||
"str": "3.8.2" | ||
} | ||
}, | ||
"python_version": { | ||
"type": "version", | ||
"value": { | ||
"dev": null, | ||
"epoch": 0, | ||
"local": null, | ||
"post": null, | ||
"pre": null, | ||
"release": [ | ||
3, | ||
8 | ||
], | ||
"str": "3.8" | ||
} | ||
}, | ||
"sys_platform": { | ||
"type": "string", | ||
"value": "linux" | ||
} | ||
} |
Oops, something went wrong.