Browse Source

Merge pull request #9129 from jtpio/fix-packaging

Add setup.py and pyproject.toml to MANIFEST.in
Jeremy Tuloup 4 years ago
parent
commit
c198d6162c
3 changed files with 10 additions and 3 deletions
  1. 2 0
      MANIFEST.in
  2. 2 2
      scripts/ci_install.sh
  3. 6 1
      scripts/ci_script.sh

+ 2 - 0
MANIFEST.in

@@ -2,6 +2,8 @@ include package.json
 include LICENSE
 include CONTRIBUTING.md
 include README.md
+include pyproject.toml
+include setup.py
 
 # Documentation
 graft docs

+ 2 - 2
scripts/ci_install.sh

@@ -23,7 +23,7 @@ pip install jupyter_packaging
 pip install -e ".[test]" || pip install -v -e ".[test]"
 jlpm versions
 jlpm config current
-jupyter server extension enable jupyterlab 
+jupyter server extension enable jupyterlab
 jupyter server extension list 1>serverextensions 2>&1
 cat serverextensions
 cat serverextensions | grep -i "jupyterlab.*enabled"
@@ -42,7 +42,7 @@ fi
 
 if [[ $GROUP == nonode ]]; then
     # Build the wheel
-    python setup.py bdist_wheel
+    python setup.py bdist_wheel sdist
 
     # Remove NodeJS, twice to take care of system and locally installed node versions.
     sudo rm -rf $(which node)

+ 6 - 1
scripts/ci_script.sh

@@ -190,7 +190,7 @@ if [[ $GROUP == usage ]]; then
     cat labextensions | grep "@jupyterlab/mock-extension.*enabled.*OK"
     jupyter labextension build extension --static-url /foo/
     jupyter labextension disable @jupyterlab/mock-extension --debug
-    jupyter labextension enable @jupyterlab/mock-extension --debug 
+    jupyter labextension enable @jupyterlab/mock-extension --debug
     jupyter labextension uninstall @jupyterlab/mock-extension --debug
     jupyter labextension list 1>labextensions 2>&1
     # bail if mock-extension was listed
@@ -336,4 +336,9 @@ if [[ $GROUP == nonode ]]; then
     sleep 5
     kill $TASK_PID
     wait $TASK_PID
+
+    # Make sure we can install the tarball
+    virtualenv -p $(which python3) test_sdist
+    ./test_sdist/bin/pip install dist/*.tar.gz
+    ./test_sdist/bin/python -m jupyterlab.browser_check --no-chrome-test
 fi