Skip to content

Commit e684f36

Browse files
authored
Only run check-manifest if using setuptools (#302)
1 parent 703fbbe commit e684f36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

jupyter_releaser/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ def check_npm(dist_dir, npm_install_options):
448448
@use_checkout_dir()
449449
def check_manifest():
450450
"""Check the project manifest"""
451-
if util.PYPROJECT.exists() or util.SETUP_PY.exists():
451+
# Only run the check if we're using setuptools
452+
if util.SETUP_PY.exists() or util.MANIFEST.exists():
452453
util.run("check-manifest -v")
453454
else:
454455
util.log("Skipping check-manifest since there are no python package files")

jupyter_releaser/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
SETUP_PY = Path("setup.py")
3232
SETUP_CFG = Path("setup.cfg")
3333
PACKAGE_JSON = Path("package.json")
34+
MANIFEST = Path("MANIFEST.in")
3435
YARN_LOCK = Path("yarn.lock")
3536
JUPYTER_RELEASER_CONFIG = Path(".jupyter-releaser.toml")
3637

0 commit comments

Comments
 (0)