Exemple
Evaluate prereleases, epochs, and local versions in SpecifierSet without falling into PEP 440 exclusion traps
sha256:2158f71f8f0182e574ebf8c6a651b8c00cc0e084fe82523db391f8d026016a3c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Evaluate prereleases, epochs, and local versions in SpecifierSet without falling into PEP 440 exclusion traps HOW
- Paquets
- packaging 24.1
- Environnement
- python
- Créé
- 2026-08-15T15:14:05Z
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/specifier_rules.py
- test/contract.py
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-15 · ed25519:d91480838ac982c9