[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Include docs and tests in source distribution



commit 3b79cf94c21aeeb65cb07d22c160fffb54dada22
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Fri Nov 25 10:48:03 2016 -0800

    Include docs and tests in source distribution
    
    Juan pointed out the source distribution we upload does have docs, tests, or
    our LICENSE file. This is because we moved from uploading a git archive to
    'python setup.py sdist', which is the more proper thing to upload nowadays.
---
 MANIFEST.in | 11 +++++++++++
 setup.py    |  8 ++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..086a5db
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,11 @@
+include cache_fallback_directories.py
+include cache_manual.py
+include LICENSE
+include MANIFEST.in
+include requirements.txt
+include run_tests.py
+include tox.ini
+graft docs
+graft test
+global-exclude __pycache__
+global-exclude *.py[co]
diff --git a/setup.py b/setup.py
index 7d7e5e9..65c790e 100644
--- a/setup.py
+++ b/setup.py
@@ -42,9 +42,13 @@ distutils.core.setup(
   packages = ['stem', 'stem.descriptor', 'stem.interpreter', 'stem.response', 'stem.util'],
   keywords = 'tor onion controller',
   scripts = ['tor-prompt'],
-  package_data = {'stem': ['cached_tor_manual.cfg', 'settings.cfg'], 'stem.descriptor': ['fallback_directories.cfg'], 'stem.interpreter': ['settings.cfg'], 'stem.util': ['ports.cfg']},
   provides = ['stem'],
-  classifiers = [
+  package_data = {
+    'stem': ['cached_tor_manual.cfg', 'settings.cfg'],
+    'stem.descriptor': ['fallback_directories.cfg'],
+    'stem.interpreter': ['settings.cfg'],
+    'stem.util': ['ports.cfg'],
+  }, classifiers = [
     'Development Status :: 5 - Production/Stable',
     'Intended Audience :: Developers',
     'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits