Skip to content

Commit

Permalink
Warn the user if MANIFEST.in is missing (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 1, 2014
1 parent dd68570 commit df7861b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Changelog
0.22 (unreleased)
-----------------

* Warn the user if MANIFEST.in is missing (`issue #31
<https://github.com/mgedmin/check-manifest/issues/31>`__).

* Fix IOError when files listed under version control are missing (`issue #32
<https://github.com/mgedmin/check-manifest/issues/32>`__).

Expand Down
4 changes: 4 additions & 0 deletions check_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,10 @@ def check_manifest(source_tree='.', create=False, update=False,
suggestions, unknowns = find_suggestions(missing_from_manifest)
user_asked_for_help = update or (create and not
os.path.exists('MANIFEST.in'))
if 'MANIFEST.in' not in existing_source_files:
info_begin("no MANIFEST.in found")
if suggestions and not user_asked_for_help:
info_end("; you can run 'check-manifest -c' to create one")
if suggestions:
info("suggested MANIFEST.in rules:\n%s"
% format_list(suggestions))
Expand Down

0 comments on commit df7861b

Please sign in to comment.