Skip to content

CI workflow to build plotly.py against plotly.js master #1440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,67 @@ jobs:
- store_artifacts:
path: artifacts

plotlyjs_dev_build:
docker:
- image: circleci/python:3.7-stretch-node-browsers
environment:
PLOTLY_TOX_PYTHON_37: python3.7
LANG: en_US.UTF-8

steps:
- checkout
- run:
name: Install tox
command: 'sudo pip install tox requests yapf pytz decorator retrying'
- run:
name: Update plotlywidget version
command: 'python setup.py updateplotlywidgetversion'
- run:
name: Update plotly.js to dev
command: 'python setup.py updateplotlyjsdev'
- run:
name: Test with tox
command: |
locale
tox -e py37-core -- -a '!nodev'
no_output_timeout: 20m
- run:
name: Commit
command: |
sudo mkdir /dist
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git add -A
git commit -m "Codegen"
when: always
- run:
name: Build source distribution package
command: |
python setup.py sdist
sudo cp dist/* /dist
when: always
- run:
name: npm-pack widget
command: |
cd js/
npm install webpack
npm pack
sudo cp ./plotlywidget* /dist
when: always
- store_artifacts:
path: /dist

workflows:
version: 2
dev_build:
jobs:
- plotlyjs_dev_build:
filters:
branches:
only:
- master
- bleeding_edge

build:
jobs:

Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
plotly/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ include LICENSE.txt
include README.rst
include README.md
include plotlywidget.json
include versioneer.py
include plotly/_version.py
4 changes: 4 additions & 0 deletions plotly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
from plotly import (plotly, dashboard_objs, graph_objs, grid_objs, tools,
utils, session, offline, colors, io)
from plotly.version import __version__

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
Loading