Commits

Anonymous committed 4f5244b

Do a slightly better job of forcing the inferred project name to lowercase.

  • Participants
  • Parent commits 572765b

Comments (0)

Files changed (1)

             return s
         s = split[-1]
         match = re.match("(.+)-[vr]?\d+([._].*)?", s)
-        return match.group(1) if match else s
+        return match.group(1).lower() if match else s
 
 
 fetcher_loaders = []
 
     @classmethod
     def _find_extension(cls, source):
-        if source.startswith("http://"):
+        if isfile(source) or source.startswith("http://"):
             bare_source = urllib.parse.urlparse(source).path
             for extension, decompressor in cls.constructor.extensions.items():
                 if bare_source.endswith(extension):