Skip to content

Commit

Permalink
add binder build config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Mar 3, 2021
1 parent 6a817a7 commit d8b0afe
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ __pycache__
*.tsbuildinfo

# python distribution stuff
build
dist
MANIFEST

Expand Down
7 changes: 7 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
channels:
- conda-forge
dependencies:
- jupyterlab=2.2
- nodejs=14
# Python Kernel
- python=3.7
5 changes: 5 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -ex

jlpm build:dev
6 changes: 6 additions & 0 deletions binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
h5py
simplejson
black
numpy
pytest
requests
64 changes: 27 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,60 +11,50 @@
long_description = fh.read()

data_files_spec = [
('etc/jupyter/jupyter_notebook_config.d',
'jupyter-config/jupyter_notebook_config.d',
'jupyterlab_hdf.json'),
("etc/jupyter/jupyter_notebook_config.d", "jupyter-config/jupyter_notebook_config.d", "jupyterlab_hdf.json"),
]

cmdclass = create_cmdclass(data_files_spec=data_files_spec)

setup_dict = dict(
name='jupyterlab_hdf',
name="jupyterlab_hdf",
description="A Jupyter Notebook server extension that provides APIs for fetching hdf5 contents and data. Built on h5py.",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
cmdclass=cmdclass,
author = 'Max Klein',
url = 'https://github.com/telamonian/jupyterlab-hdf5',
license = 'BSD',
platforms = "Linux, Mac OS X, Windows",
keywords = ['Jupyter', 'JupyterLab', 'hdf5'],
python_requires = '>=3.6',
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
author="Max Klein",
url="https://github.com/telamonian/jupyterlab-hdf5",
license="BSD",
platforms="Linux, Mac OS X, Windows",
keywords=["Jupyter", "JupyterLab", "hdf5"],
python_requires=">=3.6",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
install_requires=[
'h5py',
'notebook',
'simplejson',
"h5py",
"jupyterlab<=3",
"numpy",
"simplejson",
],
extras_require={
'dev': [
'black',
'numpy',
'pre-commit',
'pytest',
'requests',
"dev": [
"black",
"pytest",
"requests",
]
}
},
)

try:
ensure_python(setup_dict["python_requires"].split(','))
ensure_python(setup_dict["python_requires"].split(","))
except ValueError as e:
raise ValueError("{:s}, to use {} you must use python {} ".format(
e,
setup_dict["name"],
setup_dict["python_requires"])
)
raise ValueError("{:s}, to use {} you must use python {} ".format(e, setup_dict["name"], setup_dict["python_requires"]))

setuptools.setup(
version=get_version('jupyterlab_hdf/_version.py'),
**setup_dict
)
setuptools.setup(version=get_version("jupyterlab_hdf/_version.py"), **setup_dict)

0 comments on commit d8b0afe

Please sign in to comment.