diff --git a/setup.py b/setup.py index 82a589f..5c576de 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ import versioneer -install_requires = ['jupyter', 'vpnotebook', 'numpy', 'ipykernel', +install_requires = ['jupyter', 'numpy', 'ipykernel', 'autobahn>=18.8.2'] if sys.version_info.major == 3 and sys.version_info.minor >= 5: diff --git a/vpython.recipe/meta.yaml b/vpython.recipe/meta.yaml index 6d4c940..b3a317c 100644 --- a/vpython.recipe/meta.yaml +++ b/vpython.recipe/meta.yaml @@ -31,7 +31,6 @@ requirements: - python - setuptools - jupyter - - vpnotebook - ujson - cython - wheel @@ -39,12 +38,15 @@ requirements: run: - python - jupyter - - vpnotebook - ujson - autobahn >=18.8.2 - numpy - ipykernel +test: + imports: + - vpython + outputs: # Someday, maybe: - type: wheel - type: conda diff --git a/vpython.recipe/run_test.py b/vpython.recipe/run_test.py deleted file mode 100644 index 4e3e495..0000000 --- a/vpython.recipe/run_test.py +++ /dev/null @@ -1,26 +0,0 @@ -import sys - -from jupyter_client import kernelspec - - -# If we get this far, vpnotebook ought to have been installed and -# we should have a vpython kernel. - -assert 'vpython' in kernelspec.find_kernel_specs().keys() - -# Python 2.7 and 3.4: -major, minor = sys.version_info[0:2] -if major == 2 or (major == 3 and minor == 4): - # Make sure vpython is installed. The import is expected to fail because it - # tries to connect to a jupyter comm, and we are not running a notebook. - # The test is really that the error message expected if that is the - # failure is the actual error message. - try: - import vpython - except Exception as e: - assert "The non-notebook version of vpython requires" in str(e) - except OSError as e: - if sys.platform.startswith('win'): - assert "The system cannot find the path specified" in str(e) - else: - assert "No such file or directory" in str(e)