Skip to content

Commit f0ca188

Browse files
committed
Use twine for Python release
1 parent 79a935a commit f0ca188

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SHELL:=bash
22
PKG_SLUG:=jupyterlab-quickopen
33
PKG_NAME:=jupyterlab_quickopen
4-
CONDA_ENV:=jupyterlab-ext2
4+
CONDA_ENV:=jupyterlab-quickopen
55

66
help:
77
# http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@@ -28,8 +28,10 @@ conda-env: ## Make a conda development environment
2828
jupyter serverextension enable $(PKG_NAME)
2929

3030
release: ## Make a release on PyPI and npmjs.org
31-
python setup.py sdist register upload
32-
npm publish --access=public
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
3335

3436
watch-lab: ## Make a JupyterLab build process watch for extension builds
3537
source activate $(PKG_SLUG) && jupyter lab --watch

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ coverage
22
flake8
33
nodejs
44
pytest
5+
twine

0 commit comments

Comments
 (0)