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
10
9
clean : # # Make a clean source tree
11
10
-find . -name ' *.pyc' -exec rm -fv {} \;
12
11
rm -rf $(PKG_NAME ) /__pycache__ __pycache__
13
- rm -rf * .egg-info
14
- rm -rf node_modules
15
- rm -rf lib
16
-
17
- activate : # # Make a conda activation command for eval
18
- @echo " source activate $( PKG_SLUG) "
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 )
12
+ rm -rf * .egg-info node_modules/ lib/ dist/
13
+
14
+ pipenv : # # Make a pipenv development environment
15
+ pipenv --python 3.7
16
+ PIPENV_VENV_IN_PROJECT=true pipenv sync --dev
17
+
18
+ shell : # # Make a pipenv shell
19
+ pipenv shell
20
+
21
+ build : # # Make an install of the frontend and server extensions
22
+ jlpm install
23
+ jupyter labextension install . --no-build
24
+ pip install -e .
25
+ jupyter serverextension enable $(PKG_NAME )
29
26
30
27
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
28
+ rm -rf dist/
29
+ python setup.py sdist
30
+ ls -l dist/
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