Commits

Anonymous committed e02ced6

Fix entry point parsing when a standalone module name has whitespace
between it and the extras.

Comments (0)

Files changed (2)

                 src
             )
         else:
-            return cls(name.strip(), value.lstrip(), attrs, extras, dist)
+            return cls(name.strip(), value.strip(), attrs, extras, dist)
 
     parse = classmethod(parse)
 

setuptools/tests/test_resources.py

 
     def checkSubMap(self, m):
         self.assertEqual(str(m),
-            "{"
-            "'feature2': EntryPoint.parse("
+            "{'feature2': EntryPoint.parse("
                 "'feature2 = another.module:SomeClass [extra1,extra2]'), "
+            "'feature3': EntryPoint.parse('feature3 = this.module [something]'), "
             "'feature1': EntryPoint.parse("
-                "'feature1 = somemodule:somefunction')"
-            "}"
+                "'feature1 = somemodule:somefunction')}"
         )
 
     submap_str = """
             # define features for blah blah
             feature1 = somemodule:somefunction
             feature2 = another.module:SomeClass [extra1,extra2]
+            feature3 = this.module [something]
     """
 
     def testParseList(self):