Fix issues with installing sdist and wheels 87/37187/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 11 Jul 2017 07:27:31 +0000 (00:27 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 12 Jul 2017 18:18:47 +0000 (11:18 -0700)
A local install of the sdist and wheel found the following issues:

- sdist: Add MANIFEST.in to include missing README.md, LICENSE,
  anteater.conf, master_list.yaml, and explicitly exclude exception
  files.
- sdist: Both py_modules and packages listed. Since Anteater is a Python
  package, not a module, only the 'packages' argument is required for
  setup().
- wheel: 'REQUIRES' in setup.py is missing dependent packages

JIRA: RELENG-275

Change-Id: I3b1447edcd7161cda4c5d581e31019bcf8eba1c8
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
MANIFEST.in [new file with mode: 0644]
setup.py

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..e043fed
--- /dev/null
@@ -0,0 +1,4 @@
+include LICENSE README.md
+include anteater.conf
+include master_list.yaml
+exclude exceptions/*
index d392231..c791175 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,9 @@ from setuptools import setup, find_packages
 
 REQUIRES = [
     'docopt',
+    'six',
+    'binaryornot',
+    'PyYAML',
 ]
 
 
@@ -71,7 +74,6 @@ setup(
         'Programming Language :: Python :: Implementation :: PyPy'
     ],
     packages=find_packages(),
-    py_modules=["anteater"],
     entry_points={
         'console_scripts': [
             "anteater = anteater.main:main"