[tor-commits] [sbws/master] Move examples to docs/

juga at torproject.org juga at torproject.org
Tue Oct 16 13:02:27 UTC 2018


commit 3a766569f8edacacf59a16de08d0337806b03a19
Author: juga0 <juga at riseup.net>
Date:   Mon Oct 15 11:11:01 2018 +0000

    Move examples to docs/
    
    and do not include them as data files in python packages,
    since system packages will then include them in /usr
---
 {examples => docs/examples}/config.example.ini | 0
 docs/source/config.rst                         | 2 +-
 setup.py                                       | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/config.example.ini b/docs/examples/config.example.ini
similarity index 100%
rename from examples/config.example.ini
rename to docs/examples/config.example.ini
diff --git a/docs/source/config.rst b/docs/source/config.rst
index cafe5fe..84c850f 100644
--- a/docs/source/config.rst
+++ b/docs/source/config.rst
@@ -27,7 +27,7 @@ The user example config file provided by ``sbws`` might look like this.
 
 .. _init-config:
 
-.. literalinclude:: config.example.ini
+.. literalinclude:: examples/config.example.ini
     :caption: Example config.example.ini
 
 **No other configuration files are read.**
diff --git a/setup.py b/setup.py
index 8e93e7b..31a5eb4 100755
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ def get_package_data():
 
 
 def get_data_files():
-    return [('examples', [os.path.join('examples', 'config.example.ini')])]
+    pass
 
 
 def find_version():





More information about the tor-commits mailing list