Skip to content

Commit

Permalink
updated setup and manifest for examples move
Browse files Browse the repository at this point in the history
  • Loading branch information
kip-hart committed Nov 7, 2019
1 parent f649187 commit 29f1ce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ include README.rst
include tox.ini
include requirements.txt

prune .github
prune docs/source/auto_examples
prune docs/build*
prune src/*/examples/*
prune src/*.egg-info
prune tests/tmp_out
prune *.yml

exclude examples/*.png
include examples/aluminum_micro.png
exclude examples/*.txt
exclude *.*
exclude src/*/examples/*.png
include src/microstructpy/examples/aluminum_micro.png
exclude src/*/examples/*.txt
exclude src/*/examples/.gitignore

global-exclude *.py[cod] __pycache__ *.so *.dylib .DS_Store *.log Icon*
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def find_version(*fname):
packages=find_packages('src'),
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
package_data={'': ['src/microstructpy/examples']},
package_data={'': ['src/microstructpy/examples/*.{csv,py,xml}',
'src/microstructpy/examples/aluminum_micro.png']},
include_package_data=True,
zip_safe=False,
classifiers=[
Expand Down

0 comments on commit 29f1ce5

Please sign in to comment.