diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..682b4af --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +import os +import setuptools + +# Written according to the docs at +# https://packaging.python.org/en/latest/distributing.html + +# Get the list of all filepaths under ./peru/resources/, relative to ./peru/. +peru_module_dir = os.path.join(os.path.dirname(__file__), 'peru') +resources_dir = os.path.join(peru_module_dir, 'resources') +resources_paths = [] +for dirpath, dirnames, filenames in os.walk(resources_dir): + relpaths = [os.path.relpath(os.path.join(dirpath, f), + start=peru_module_dir) + for f in filenames] + resources_paths.extend(relpaths) + +setuptools.setup( + name='peru', + version='0.1.0', + url='https://github.com/buildinspace/peru', + author="Jack O'Connor , " + "Sean Olson ", + license='MIT', + packages=['peru'], + package_data={'peru': resources_paths}, + scripts=['bin/peru'], + install_requires=[ + 'docopt', + 'PyYAML', + ], +)