Skip to content

Commit 9421c14

Browse files
authored
CI workflow to build plotly.py against latest plotly.js master (#1440)
* Add updateplotlyjsdev command to pull plotly.js from master * Add `dev_build` workflow on circleci that builds plotly.py sdist and plotlywidget against latest plotly.js master. Packages are available as artifacts of `dev_build`
1 parent ce2e1b5 commit 9421c14

File tree

12 files changed

+2623
-40
lines changed

12 files changed

+2623
-40
lines changed

Diff for: .circleci/config.yml

+58
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,67 @@ jobs:
383383
- store_artifacts:
384384
path: artifacts
385385

386+
plotlyjs_dev_build:
387+
docker:
388+
- image: circleci/python:3.7-stretch-node-browsers
389+
environment:
390+
PLOTLY_TOX_PYTHON_37: python3.7
391+
LANG: en_US.UTF-8
392+
393+
steps:
394+
- checkout
395+
- run:
396+
name: Install tox
397+
command: 'sudo pip install tox requests yapf pytz decorator retrying'
398+
- run:
399+
name: Update plotlywidget version
400+
command: 'python setup.py updateplotlywidgetversion'
401+
- run:
402+
name: Update plotly.js to dev
403+
command: 'python setup.py updateplotlyjsdev'
404+
- run:
405+
name: Test with tox
406+
command: |
407+
locale
408+
tox -e py37-core -- -a '!nodev'
409+
no_output_timeout: 20m
410+
- run:
411+
name: Commit
412+
command: |
413+
sudo mkdir /dist
414+
git config --global user.email "[email protected]"
415+
git config --global user.name "Your Name"
416+
git add -A
417+
git commit -m "Codegen"
418+
when: always
419+
- run:
420+
name: Build source distribution package
421+
command: |
422+
python setup.py sdist
423+
sudo cp dist/* /dist
424+
when: always
425+
- run:
426+
name: npm-pack widget
427+
command: |
428+
cd js/
429+
npm install webpack
430+
npm pack
431+
sudo cp ./plotlywidget* /dist
432+
when: always
433+
- store_artifacts:
434+
path: /dist
386435

387436
workflows:
388437
version: 2
438+
dev_build:
439+
jobs:
440+
- plotlyjs_dev_build:
441+
filters:
442+
branches:
443+
only:
444+
- master
445+
- bleeding_edge
446+
389447
build:
390448
jobs:
391449

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
plotly/_version.py export-subst

Diff for: MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ include LICENSE.txt
22
include README.rst
33
include README.md
44
include plotlywidget.json
5+
include versioneer.py
6+
include plotly/_version.py

Diff for: plotly/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@
3131
from plotly import (plotly, dashboard_objs, graph_objs, grid_objs, tools,
3232
utils, session, offline, colors, io)
3333
from plotly.version import __version__
34+
35+
from ._version import get_versions
36+
__version__ = get_versions()['version']
37+
del get_versions

0 commit comments

Comments
 (0)