Skip to content

Commit

Permalink
Only run check-manifest if using setuptools (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Apr 17, 2022
1 parent 703fbbe commit e684f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_releaser/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ def check_npm(dist_dir, npm_install_options):
@use_checkout_dir()
def check_manifest():
"""Check the project manifest"""
if util.PYPROJECT.exists() or util.SETUP_PY.exists():
# Only run the check if we're using setuptools
if util.SETUP_PY.exists() or util.MANIFEST.exists():
util.run("check-manifest -v")
else:
util.log("Skipping check-manifest since there are no python package files")
Expand Down
1 change: 1 addition & 0 deletions jupyter_releaser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
SETUP_PY = Path("setup.py")
SETUP_CFG = Path("setup.cfg")
PACKAGE_JSON = Path("package.json")
MANIFEST = Path("MANIFEST.in")
YARN_LOCK = Path("yarn.lock")
JUPYTER_RELEASER_CONFIG = Path(".jupyter-releaser.toml")

Expand Down

0 comments on commit e684f36

Please sign in to comment.