mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 13:03:01 +00:00
Ensure jsx is in sdist
This commit is contained in:
@@ -8,6 +8,7 @@ include *requirements.txt
|
|||||||
include Dockerfile
|
include Dockerfile
|
||||||
|
|
||||||
graft onbuild
|
graft onbuild
|
||||||
|
graft jsx
|
||||||
graft jupyterhub
|
graft jupyterhub
|
||||||
graft scripts
|
graft scripts
|
||||||
graft share
|
graft share
|
||||||
@@ -18,6 +19,10 @@ graft ci
|
|||||||
graft docs
|
graft docs
|
||||||
prune docs/node_modules
|
prune docs/node_modules
|
||||||
|
|
||||||
|
# Intermediate javascript files
|
||||||
|
prune jsx/node_modules
|
||||||
|
prune jsx/build
|
||||||
|
|
||||||
# prune some large unused files from components
|
# prune some large unused files from components
|
||||||
prune share/jupyterhub/static/components/bootstrap/dist/css
|
prune share/jupyterhub/static/components/bootstrap/dist/css
|
||||||
exclude share/jupyterhub/static/components/bootstrap/dist/fonts/*.svg
|
exclude share/jupyterhub/static/components/bootstrap/dist/fonts/*.svg
|
||||||
|
2
setup.py
2
setup.py
@@ -278,8 +278,6 @@ class JSX(BaseCommand):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
js_target_mtime = mtime(self.js_target)
|
js_target_mtime = mtime(self.js_target)
|
||||||
# The sdist doesn't contain the jsx directory so this always returns 0
|
|
||||||
# if run from the dist/*.tar.gz
|
|
||||||
jsx_mtime = recursive_mtime(self.jsx_dir)
|
jsx_mtime = recursive_mtime(self.jsx_dir)
|
||||||
if js_target_mtime < jsx_mtime:
|
if js_target_mtime < jsx_mtime:
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user