浏览代码

setup.py: build_api: sort file list for determinism

Marian Beermann 8 年之前
父节点
当前提交
e208d1150e
共有 3 个文件被更改,包括 30 次插入23 次删除
  1. 25 22
      docs/api.rst
  2. 1 0
      docs/changes.rst
  3. 4 1
      setup.py

+ 25 - 22
docs/api.rst

@@ -1,60 +1,63 @@
 
+.. IMPORTANT: this file is auto-generated by "setup.py build_api", do not edit!
+
+
 API Documentation
 =================
 
-.. automodule:: borg.logger
+.. automodule:: borg.archive
     :members:
     :undoc-members:
 
-.. automodule:: borg.upgrader
+.. automodule:: borg.archiver
     :members:
     :undoc-members:
 
-.. automodule:: borg.archive
+.. automodule:: borg.cache
     :members:
     :undoc-members:
 
-.. automodule:: borg.cache
+.. automodule:: borg.chunker
     :members:
     :undoc-members:
 
-.. automodule:: borg.key
+.. automodule:: borg.compress
     :members:
     :undoc-members:
 
-.. automodule:: borg.lrucache
+.. automodule:: borg.crypto
     :members:
     :undoc-members:
 
-.. automodule:: borg.archiver
+.. automodule:: borg.fuse
     :members:
     :undoc-members:
 
-.. automodule:: borg.xattr
+.. automodule:: borg.hashindex
     :members:
     :undoc-members:
 
-.. automodule:: borg.fuse
+.. automodule:: borg.helpers
     :members:
     :undoc-members:
 
-.. automodule:: borg.keymanager
+.. automodule:: borg.key
     :members:
     :undoc-members:
 
-.. automodule:: borg.shellpattern
+.. automodule:: borg.keymanager
     :members:
     :undoc-members:
 
-.. automodule:: borg.remote
+.. automodule:: borg.locking
     :members:
     :undoc-members:
 
-.. automodule:: borg.helpers
+.. automodule:: borg.logger
     :members:
     :undoc-members:
 
-.. automodule:: borg.locking
+.. automodule:: borg.lrucache
     :members:
     :undoc-members:
 
@@ -62,34 +65,34 @@ API Documentation
     :members:
     :undoc-members:
 
-.. automodule:: borg.repository
+.. automodule:: borg.platform_darwin
     :members:
     :undoc-members:
 
-.. automodule:: borg.hashindex
+.. automodule:: borg.platform_freebsd
     :members:
     :undoc-members:
 
-.. automodule:: borg.platform_darwin
+.. automodule:: borg.platform_linux
     :members:
     :undoc-members:
 
-.. automodule:: borg.crypto
+.. automodule:: borg.remote
     :members:
     :undoc-members:
 
-.. automodule:: borg.platform_linux
+.. automodule:: borg.repository
     :members:
     :undoc-members:
 
-.. automodule:: borg.platform_freebsd
+.. automodule:: borg.shellpattern
     :members:
     :undoc-members:
 
-.. automodule:: borg.chunker
+.. automodule:: borg.upgrader
     :members:
     :undoc-members:
 
-.. automodule:: borg.compress
+.. automodule:: borg.xattr
     :members:
     :undoc-members:

+ 1 - 0
docs/changes.rst

@@ -155,6 +155,7 @@ Other changes:
 
   - language clarification - "borg create --one-file-system" option does not respect
     mount points, but considers different file systems instead, #2141
+- setup.py: build_api: sort file list for determinism
 
 Version 1.0.10rc1 (2017-01-29)
 ------------------------------

+ 4 - 1
setup.py

@@ -230,10 +230,13 @@ class build_api(Command):
         print("auto-generating API documentation")
         with open("docs/api.rst", "w") as doc:
             doc.write("""
+.. IMPORTANT: this file is auto-generated by "setup.py build_api", do not edit!
+
+
 API Documentation
 =================
 """)
-            for mod in glob('borg/*.py') + glob('borg/*.pyx'):
+            for mod in sorted(glob('borg/*.py') + glob('borg/*.pyx')):
                 print("examining module %s" % mod)
                 mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
                 if "._" not in mod: