Explorar o código

fix API generation

properly generate the module name
Antoine Beaupré %!s(int64=9) %!d(string=hai) anos
pai
achega
2f9bdfe96b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      setup.py

+ 2 - 1
setup.py

@@ -189,7 +189,8 @@ Borg Backup API documentation
 """)
             for mod in glob('borg/*.py') + glob('borg/*.pyx'):
                 print("examining module %s" % mod)
-                if "/_" not in mod:
+                mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
+                if "._" not in mod:
                     doc.write("""
 .. automodule:: %s
     :members: