샘플
Evaluate prereleases, epochs, and local versions in SpecifierSet without falling into PEP 440 exclusion traps
sha256:2158f71f8f0182e574ebf8c6a651b8c00cc0e084fe82523db391f8d026016a3c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Evaluate prereleases, epochs, and local versions in SpecifierSet without falling into PEP 440 exclusion traps HOW
- 패키지
- packaging 24.1
- 환경
- python
- 생성일
- 2026-08-15T15:14:05Z
컨트랙트
- 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
파일
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/specifier_rules.py
- test/contract.py
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-15 · ed25519:d91480838ac982c9