def test_sklearn():
    versions = utils.pypi_versions('scikit-learn')
    majors = version.majors(versions)
    minors = version.minors(versions)
    patchs = version.patchs(versions)

    assert len(majors) >= 1
    assert len(minors) >= 14
    assert len(patchs) >= 24

    assert len(majors) <= len(minors) <= len(patchs) <= len(versions)
def test_skimage():
    versions = utils.pypi_versions('scikit-image')
    assert versions[0] == '0.7.2'

    majors = version.majors(versions)
    minors = version.minors(versions)
    patchs = version.patchs(versions)

    assert len(majors) >= 1
    assert len(minors) >= 7
    assert len(patchs) >= 18

    assert len(majors) <= len(minors) <= len(patchs) <= len(versions)
Esempio n. 3
0
 def versions(self, tags=True):
     pp = self.dir/self.name
     versions = []
     if self.vcs == 'pypi':
         versions = pypi_versions(self.name)
     else:
         if not pp.exists():
             logger.info('We clone the package %s to get the versions'%self.name)
             self.clone()
         if self.vcs == 'git':
             versions = git_versions(pp, tags=tags)
         elif self.vcs == 'svn':
             versions = svn_versions(pp)
         else:
             raise Exception('%s is not implemented yet'%self.vcs)
     return versions
Esempio n. 4
0
 def versions(self, tags=True):
     pp = self.dir / self.name
     versions = []
     if self.vcs == 'pypi':
         versions = pypi_versions(self.name)
     else:
         if not pp.exists():
             logger.info('We clone the package %s to get the versions' %
                         self.name)
             self.clone()
         if self.vcs == 'git':
             versions = git_versions(pp, tags=tags)
         elif self.vcs == 'svn':
             versions = svn_versions(pp)
         else:
             raise Exception('%s is not implemented yet' % self.vcs)
     return versions
def test_sklearn():
    versions = utils.pypi_versions('scikit-learn')
    assert versions[0] == '0.9'
def test_skimage():
    versions = utils.pypi_versions('scikit-image')
    assert versions[0] == '0.7.2'