1
1
SHELL: =bash
2
2
PKG_SLUG: =jupyterlab-quickopen
3
3
PKG_NAME: =jupyterlab_quickopen
4
- CONDA_ENV: =jupyterlab-quickopen
5
4
6
5
help :
7
6
# http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@@ -14,27 +13,26 @@ clean: ## Make a clean source tree
14
13
rm -rf node_modules
15
14
rm -rf lib
16
15
17
- activate : # # Make a conda activation command for eval
18
- @echo " source activate $( PKG_SLUG) "
16
+ pipenv : # # Make a pipenv development environment
17
+ pipenv --python 3.7
18
+ PIPENV_VENV_IN_PROJECT=true pipenv sync --dev
19
19
20
- conda-env : # # Make a conda development environment
21
- conda create -n $(PKG_SLUG ) -c conda-forge python=3 \
22
- --file requirements.txt --file requirements-dev.txt
23
- source activate $(PKG_SLUG ) && \
24
- jlpm install && \
25
- jupyter labextension install . --no-build
26
- source activate $(PKG_SLUG ) && \
27
- pip install -e . && \
28
- jupyter serverextension enable $(PKG_NAME )
20
+ shell : # # Make a pipenv shell
21
+ pipenv shell
22
+
23
+ build : # # Make an install of the frontend and server extensions
24
+ jlpm install
25
+ jupyter labextension install . --no-build
26
+ pip install -e .
27
+ jupyter serverextension enable $(PKG_NAME )
29
28
30
29
release : # # Make a release on PyPI and npmjs.org
31
- source activate $(PKG_SLUG ) && \
32
- python setup.py sdist && \
33
- twine upload dist/* .tar.gz
34
- source activate $(PKG_SLUG ) && npm publish --access=public
30
+ python setup.py sdist
31
+ twine upload dist/* .tar.gz
32
+ npm publish --access=public
35
33
36
34
watch-lab : # # Make a JupyterLab build process watch for extension builds
37
- source activate $( PKG_SLUG ) && jupyter lab --watch
35
+ jupyter lab --watch
38
36
39
37
watch-src : # # Make a TypeScript build process watch for source changes
40
- source activate $( PKG_SLUG ) && jlpm run watch
38
+ jlpm run watch
0 commit comments