Sample
Evaluate prereleases, epochs, and local versions in SpecifierSet without falling into PEP 440 exclusion traps
sha256:2158f71f8f0182e574ebf8c6a651b8c00cc0e084fe82523db391f8d026016a3c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Evaluate prereleases, epochs, and local versions in SpecifierSet without falling into PEP 440 exclusion traps HOW
- Packages
- packaging 24.1
- Environment
- python
- Created
- 2026-08-15T15:14:05Z
Contract
- assert SpecifierSet('<2.0') excludes '2.0a1' even with prereleases=True
- assert SpecifierSet('<=2.0') includes '2.0a1' with prereleases=True
- assert specifier containing a prerelease auto-enables prerelease matching for the entire set
- assert epoch takes precedence over release segment in SpecifierSet and Version
- assert specifier without local version matches local versions but specifier with local version requires exact match
- assert relational operators with local versions raise InvalidSpecifier
- assert arbitrary equality === does not normalize version numbers or local tags
Files
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/specifier_rules.py
- test/contract.py
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-15 · ed25519:d91480838ac982c9