Skip to content

Commit

Permalink
Grab examples from the awscli/examples
Browse files Browse the repository at this point in the history
Use package_data the same way we're using it for
the .json files.

Also examples/*/* is how we specify the files.
This will need to change if we have directory
structures that nest more deeply than this.
  • Loading branch information
jamesls committed Aug 19, 2013
1 parent 7515dfe commit dfc57e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include README.rst
include LICENSE.txt
include requirements.txt
recursive-include doc/source/examples *.rst
recursive-include awscli/examples *.rst
recursive-include awscli/data *.json
15 changes: 1 addition & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@
from setuptools import setup, find_packages


def _get_example_files():
filenames = []
for root, dirs, files in os.walk('doc/source/examples'):
for filename in files:
filenames.append(os.path.join(root, filename))
return filenames


def get_data_files():
return [('awscli/examples', _get_example_files())]


requires = ['botocore>=0.14.0,<0.15.0',
'bcdoc>=0.6.0,<0.7.0',
'six>=1.1.0',
Expand All @@ -43,8 +31,7 @@ def get_data_files():
'bin/aws_completer', 'bin/aws_zsh_completer.sh'],
packages=find_packages('.', exclude=['tests*']),
package_dir={'awscli': 'awscli'},
package_data={'awscli': ['data/*.json']},
data_files=get_data_files(),
package_data={'awscli': ['data/*.json', 'examples/*/*']},
install_requires=requires,
license=open("LICENSE.txt").read(),
classifiers=(
Expand Down

0 comments on commit dfc57e7

Please sign in to comment.