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 if match else s
+        return if match else s
 fetcher_loaders = []
     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):