From 630de97fc191b05fecfc4c4abea9a6f665455502 Mon Sep 17 00:00:00 2001 From: Chad Huesgen Date: Thu, 20 Apr 2017 23:15:04 -0400 Subject: [PATCH] Updated package structure and setup.py to allow for packaging tools to find stepford.py correctly --- CHANGES | 4 ++++ MANIFEST.in | 4 +++- Makefile | 2 +- setup.py | 4 +++- stepford/__init__.py | 0 stepford.py => stepford/stepford.py | 0 tests.py => test/tests.py | 0 7 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 stepford/__init__.py rename stepford.py => stepford/stepford.py (100%) rename tests.py => test/tests.py (100%) diff --git a/CHANGES b/CHANGES index cbf5697..d58a643 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ Version 0.1 2013-09-07 ---------------------- - Initial release + +Version 0.2 2017-04-20 +---------------------- +- Updated package structure and setup.py to allow for packaging tools to find stepford.py correctly diff --git a/MANIFEST.in b/MANIFEST.in index dbc5b13..c012c1c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,3 @@ -include README LICENSE CHANGES stepford.py tests.py +include README LICENSE CHANGES +include stepford/* +include test/* diff --git a/Makefile b/Makefile index 513e20f..5d6124a 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ test: nosetests -s --with-coverage --cover-package=stepford lint: - pylint stepford.py -r n \ + pylint stepford/stepford.py -r n \ -d F0401,E0611 \ --output-format=colorized \ --msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}' diff --git a/setup.py b/setup.py index 43d4e99..940738a 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup(name='stepford', keywords='python,facebook,integration test,test users', - version='0.1', + version='0.2', description='An implementation of the Facebook test user API', author='Demian Brecht', author_email='demianbrecht@gmail.com', @@ -27,6 +27,8 @@ 'Topic :: Utilities', ], long_description=README, + packages=find_packages(), + include_package_data=True, install_requires=requires, test_suite='tests.TestStepford', ) diff --git a/stepford/__init__.py b/stepford/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/stepford.py b/stepford/stepford.py similarity index 100% rename from stepford.py rename to stepford/stepford.py diff --git a/tests.py b/test/tests.py similarity index 100% rename from tests.py rename to test/tests.py