|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
| def | __init__ (self, dist) |
| def | __getattr__ (self, name) |
| def | as_requirement (self) |
Adapt a pkg_resources.Distribution to simply return the project name as the 'requirement' so that scripts will work across multiple versions. >>> from pkg_resources import Distribution >>> dist = Distribution(project_name='foo', version='1.0') >>> str(dist.as_requirement()) 'foo==1.0' >>> adapted_dist = VersionlessRequirement(dist) >>> str(adapted_dist.as_requirement()) 'foo'
| def __init__ | ( | self, | |
| dist | |||
| ) |
| def __getattr__ | ( | self, | |
| name | |||
| ) |
| def as_requirement | ( | self | ) |