Skip to content
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

Andrew/build overhaul #183

Open
wants to merge 173 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
7ae606c
Create central toolchain directory
ayjayt Jul 2, 2024
7d603e5
Add filter to circleci for only:master
ayjayt Jul 2, 2024
c743a3d
Add first build step + some utilities
ayjayt Jul 2, 2024
3ac4ed4
Add check in 00-set_version for .set_version
ayjayt Jul 2, 2024
aa3c1ff
Fix indentation
ayjayt Jul 2, 2024
14e616f
Fix bad syntax
ayjayt Jul 2, 2024
3c4481e
Fix basic typos in bash
ayjayt Jul 2, 2024
762a173
Add utilities for get/export version in bash
ayjayt Jul 2, 2024
55de6c6
Add 01-fetch_tools
ayjayt Jul 2, 2024
36771a9
Add depot_tools path during utilities.sh
ayjayt Jul 2, 2024
23d39ef
Properly quote all paths
ayjayt Jul 2, 2024
10a1269
Add fake namespace to bash util functions
ayjayt Jul 3, 2024
a62e86f
Fix export given new namespace
ayjayt Jul 3, 2024
1d4bbd9
Fix up usage help
ayjayt Jul 3, 2024
631ad6e
Fix more namespace errors
ayjayt Jul 3, 2024
2483e95
Fixed up scripts with verbose options
ayjayt Jul 3, 2024
e09c06b
Add tag to get latest known version
ayjayt Jul 3, 2024
6c73c30
Add script to grab platform
ayjayt Jul 3, 2024
3935971
Add script to find architecture
ayjayt Jul 3, 2024
dc600cf
Reorganize utilities to support platform switch
ayjayt Jul 3, 2024
1d7acc9
Remove filters from circle ci
ayjayt Jul 3, 2024
6249077
Add line to delete depot_tools/.git
ayjayt Jul 3, 2024
bd31520
Archive old config.yml and write simple one
ayjayt Jul 3, 2024
00d58b3
Upgrade resource class, small doesn't exist
ayjayt Jul 3, 2024
3a1b09e
Remove resource class
ayjayt Jul 3, 2024
603b450
Updated config.yml
ayjayt Jul 3, 2024
5039c71
Use more modern ubuntu for ci
ayjayt Jul 3, 2024
6f43d61
Switch to default linux imagine for circleci
ayjayt Jul 3, 2024
7a7e89d
Print out some diagnostics
ayjayt Jul 3, 2024
1e9056a
Print out some diagnostics 2
ayjayt Jul 3, 2024
ddf8b6e
Fix bad line order cause false error
ayjayt Jul 3, 2024
e262593
Allow multi-platform builds
ayjayt Jul 3, 2024
d756fd6
Add windows box
ayjayt Jul 3, 2024
f395942
Remove redundant dep install
ayjayt Jul 3, 2024
84f636f
Add option to delete git
ayjayt Jul 3, 2024
504fbf0
Add mac CI
ayjayt Jul 3, 2024
46a3647
Remove resource class from win circleci
ayjayt Jul 3, 2024
52f2433
Remove long-runing delete process from mac
ayjayt Jul 3, 2024
46ff12c
Fix yaml syntax
ayjayt Jul 3, 2024
c06ee97
Add utility to put build scripts in bin
ayjayt Jul 3, 2024
c3c5b7b
Add to git file from previous commit
ayjayt Jul 3, 2024
a04fc56
Add cheap linux build
ayjayt Jul 3, 2024
11c6298
Fix yaml
ayjayt Jul 3, 2024
c67d9c2
Add version to python
ayjayt Jul 3, 2024
7f99d5c
Remove debugging print
ayjayt Jul 3, 2024
f058851
Reformat comments a bit
ayjayt Jul 4, 2024
aba2d65
Reorganize dev interface a bit
ayjayt Jul 6, 2024
1e90824
Create defaults for build
ayjayt Jul 6, 2024
6e4613b
Add script to run all
ayjayt Jul 6, 2024
d9ef495
Update toolchain/README.md
ayjayt Jul 6, 2024
d445b6d
Improve build template
ayjayt Jul 6, 2024
d2299f9
Add path modifications to utilties for all plats
ayjayt Jul 6, 2024
7003656
Add build artifact to gitignore
ayjayt Jul 6, 2024
0232303
Fix up circle ci
ayjayt Jul 6, 2024
55639bc
Create docker helper script + init_tools start
ayjayt Jul 6, 2024
ed755d0
Rename stages-->src + add new to bin
ayjayt Jul 6, 2024
55f047f
Organize folders a bit more
ayjayt Jul 6, 2024
aa8d23b
Bring vendor tools to vendor, not repo
ayjayt Jul 6, 2024
d68c115
Copy some host env to docker env for ease
ayjayt Jul 7, 2024
a41d281
Rework docker build a bit:
ayjayt Jul 8, 2024
f49e66b
Add krefresh command to do clean build
ayjayt Jul 8, 2024
ab416ac
Fix up verbose
ayjayt Jul 8, 2024
c3c1457
Add usage to two scripts
ayjayt Jul 8, 2024
2542475
Cache apt-get update
ayjayt Jul 8, 2024
1909b7a
Add .gitconfig to docker user
ayjayt Jul 8, 2024
3802da9
Improve kdocker help
ayjayt Jul 8, 2024
ccb8f36
Rework and comment utilities a bit
ayjayt Jul 9, 2024
2f44697
Refactor build strategy
ayjayt Jul 10, 2024
fe4fe4a
Add some more flag syntax
ayjayt Jul 10, 2024
46a86ad
Fix bools in all/
ayjayt Jul 10, 2024
cc3d9a5
Fix some typos
ayjayt Jul 10, 2024
fbb50cb
Fix up bad logic
ayjayt Jul 10, 2024
2107d1b
Fix bad logic
ayjayt Jul 10, 2024
d907535
Fix main_repo
ayjayt Jul 10, 2024
99e567a
Fix logic in all
ayjayt Jul 10, 2024
e9c5b36
Fix env var typo
ayjayt Jul 10, 2024
c4f64fa
Tune make_bin to work with zsh
ayjayt Jul 11, 2024
5ba9595
Skip all automatic sourcing
ayjayt Jul 11, 2024
9c095d2
Upgrade to new version of chromium:
ayjayt Jul 11, 2024
3e3c315
Pull out krefresh and add --toolchain
ayjayt Jul 11, 2024
4ca9346
Leverage git for refresh, not cp
ayjayt Jul 11, 2024
1f69dde
Allow empty patches
ayjayt Jul 11, 2024
5f1c769
Remove comment
ayjayt Jul 11, 2024
4595cb1
Fix up a bit bash outputs
ayjayt Jul 11, 2024
134f3f2
List unrefreshed files
ayjayt Jul 11, 2024
d4ca1d5
Add depot_tools to git ignore
ayjayt Jul 11, 2024
530051d
Fix typo in init_tools
ayjayt Jul 11, 2024
f159d3b
Make python build executable
ayjayt Jul 11, 2024
d2336a9
Make install-build-deps noninteractive
ayjayt Jul 11, 2024
58530b7
Fix up verbosity
ayjayt Jul 11, 2024
9e9b8da
Create 03-ksync
ayjayt Jul 11, 2024
a6588b9
Remove OS-switches from ksync
ayjayt Jul 11, 2024
d026a8f
Fix bad logic
ayjayt Jul 11, 2024
e2bdb9e
Add windows build step NOTES for sync
ayjayt Jul 11, 2024
07fb2db
Fix comment in ksync
ayjayt Jul 15, 2024
c19dddc
Add patch_chromium build step
ayjayt Jul 16, 2024
eb7a4f9
Add no py3 flag to old versions
ayjayt Jul 16, 2024
9919068
Remove historical readme
ayjayt Jul 16, 2024
854c428
Add verbose flag to gsync
ayjayt Jul 16, 2024
0d53787
Use git patch instead of cp for patching
ayjayt Jul 16, 2024
d3cd9f5
Add gen_preamble to build tools
ayjayt Jul 16, 2024
49f91e7
Make 04/05 executable
ayjayt Jul 16, 2024
c7bdb2b
Remember to set version env vars
ayjayt Jul 16, 2024
42b5cb3
Copy 108 patches to 126
ayjayt Jul 16, 2024
cbf81fb
Fix silly typo
ayjayt Jul 16, 2024
c034858
Fix silly typo2
ayjayt Jul 16, 2024
6e7bf60
Fix patch, try w/o patches for 126
ayjayt Jul 16, 2024
fd53884
Update README.md
ayjayt Jul 16, 2024
5551fcc
Update gitignore to reflect directory changes
ayjayt Jul 16, 2024
c8f2e10
Move kaleido from repos/ to src/
ayjayt Jul 16, 2024
aa3d187
Fix slash direction
ayjayt Jul 16, 2024
f6f721a
Fix slash direction2
ayjayt Jul 16, 2024
d310691
Reorg gitignore
ayjayt Jul 16, 2024
e49687b
Add 06, append gn directives
ayjayt Jul 16, 2024
81f920d
Add platform swtich to 06-append_gn
ayjayt Jul 16, 2024
2686b39
Remove old build system
ayjayt Jul 16, 2024
9169ebc
Move patches to src/vendor-patches
ayjayt Jul 16, 2024
72ab5ce
Add more gn stuff to append_gn, change name:
ayjayt Jul 16, 2024
733495e
Remove host-arch detect, unnecessary
ayjayt Jul 16, 2024
167635f
Finish ninja gn build
ayjayt Jul 16, 2024
6fbb28f
Reorg gn-ninja fragments
ayjayt Jul 16, 2024
593abab
Update .gitignore
ayjayt Jul 16, 2024
8d97e34
Fix typo in gitignore
ayjayt Jul 16, 2024
d6c2be8
Set chmod 06-* +x
ayjayt Jul 16, 2024
aafb633
Fix syntax typo
ayjayt Jul 16, 2024
663ef20
Add cd to gen out per gn error
ayjayt Jul 16, 2024
56c32c1
Add quotes to gn arg file
ayjayt Jul 16, 2024
8e9037f
Create 07-write_kversion
ayjayt Jul 16, 2024
2370da0
Fix typos in xx-all.sh
ayjayt Jul 16, 2024
ee0752b
Add debug info to version py
ayjayt Jul 16, 2024
0fdb870
Fix path semantics in version.py
ayjayt Jul 16, 2024
9748ae2
Revert subtle change to version.py
ayjayt Jul 16, 2024
369bff8
Remove vestigal flag from 07
ayjayt Jul 16, 2024
2dfddd1
Rework c++ naming and add 08-sync_cpp
ayjayt Jul 16, 2024
9fa8a8b
Change 04-patch to precheck for patches in dir
ayjayt Jul 16, 2024
851a15d
Add DEPS template to all versions:
ayjayt Jul 16, 2024
4401b42
Add 09-build_kaleido
ayjayt Jul 16, 2024
78b3ba1
Add BUILD.gn.patch to all platforms
ayjayt Jul 16, 2024
0f19e30
Fix typo in dir name
ayjayt Jul 16, 2024
3783fc7
Remove unnecessary deps from gn_append
ayjayt Jul 16, 2024
dc11d0a
Replace 126 kaleido w/ headless exampel app
ayjayt Jul 16, 2024
5a12666
Change gn_append.patch
ayjayt Jul 16, 2024
96c1558
Continue even if gn patch applied
ayjayt Jul 16, 2024
3361aae
Fix continue semantics
ayjayt Jul 16, 2024
1a7531d
Fix continue semantics2
ayjayt Jul 16, 2024
6733ade
Remove official_build flag
ayjayt Jul 16, 2024
b55b7ee
Fix up gn_args template
ayjayt Jul 16, 2024
a5ea075
Fix syntax error '-->"
ayjayt Jul 16, 2024
d94ccfe
Refix example port to proper naming
ayjayt Jul 16, 2024
c0d5dc1
Follow example for BUILD.gn more closely
ayjayt Jul 16, 2024
1690366
Ammend gn build to remove weird flag
ayjayt Jul 16, 2024
522a560
Rework ninja build
ayjayt Jul 16, 2024
7ca0bcb
Fix boolean logic error
ayjayt Jul 16, 2024
ea7b9aa
Remove weird build artifacts
ayjayt Jul 16, 2024
ec7b90a
Remove weird build artifacts2 w/ typo
ayjayt Jul 16, 2024
e38eb0e
Improve verbosity of build ninja
ayjayt Jul 16, 2024
00a6631
Fix BUILD.gn for version
ayjayt Jul 16, 2024
8e10fb0
Try process sub to not eat my own tail
ayjayt Jul 17, 2024
562112f
Try sed for truncate
ayjayt Jul 17, 2024
e5775df
Use tempfile, not sed
ayjayt Jul 17, 2024
ef5ea78
Add verbosity
ayjayt Jul 17, 2024
c5ecde1
Make ninja build versiond dependent
ayjayt Jul 17, 2024
fc5ef6e
Refactor build a bit:
ayjayt Jul 17, 2024
6f4691b
Remove unneeded todos
ayjayt Jul 17, 2024
972bf6e
Add rsync as docker/image dependency
ayjayt Jul 17, 2024
726e57b
Make own copy of headless lib to be kaleido lib
ayjayt Jul 17, 2024
f78771f
Add more info to 06 help
ayjayt Jul 17, 2024
c63979e
Write optimistic paths into TRY
ayjayt Jul 17, 2024
02a48e8
Fix syntax typo
ayjayt Jul 17, 2024
e0fc277
Reorder to set variable properly
ayjayt Jul 17, 2024
9b0acfb
Reorder to set variable properly2
ayjayt Jul 17, 2024
4ede0a7
Fix verbose flag in build
ayjayt Jul 17, 2024
46b7b39
Fix verbose in ksync
ayjayt Jul 17, 2024
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
424 changes: 49 additions & 375 deletions .circleci/config.yml

Large diffs are not rendered by default.

416 changes: 416 additions & 0 deletions .circleci/config.yml.old

Large diffs are not rendered by default.

54 changes: 25 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
repos/CREDITS.html
repos/src
repos/depot_tools
*.DS_Store
*.kate-swp
repos/.cipd/
repos/.gclient_entries
repos/.idea
repos/build
repos/cmake-build-debug
repos/kaleido/js/node_modules
repos/kaleido/js/build
repos/kaleido/version
repos/kaleido/LICENSE.txt
repos/kaleido/README.md
repos/kaleido/py/LICENSE.txt
repos/kaleido/py/README.md
repos/kaleido/py/tests/baselines/plotly/failed
repos/kaleido/artifacts
repos/kaleido/kaleido_artifacts*.zip
# Py build stuff
*.pyc
win_toolchain/*.zip
repos/kaleido/py/kaleido/executable
repos/kaleido/py/kaleido/_version.py
repos/kaleido/py/build/
repos/kaleido/py/dist/
*.egg-info/
repos/kaleido/py/scratch/
.idea/
repos/CREDITS.html
repos/*.tar.gz

# Text editor stuff
*.DS_Store
*.kate-swp
*.sw*

# Old, don't know
.idea/

# Toolchain artifacts
.set_version
bin
toolchain/tmp/

# Vendor repos
vendor/src
vendor/depot_tools

# Build artifacts
src/kaleido/LICENSE.txt
src/kaleido/README.md
src/kaleido/CREDITS.html
CREDITS.html


206 changes: 0 additions & 206 deletions README-HISTORICAL.md

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Overview
Kaleido is a cross-platform library for generating static images (e.g. png, svg, pdf, etc.) for web-based visualization libraries.
Kaleido is a cross-platform library for generating static images (e.g. png, svg, pdf, etc.) for web-based visualization libraries.

In short: If you `pip install kaleido` you can use `fig.write_image("filename.png")`.

It is designed to be relatively straight-forward to extend to other web-based visualization libraries (and other programming languages)- see [BUILD_AND_RELEASE.md](BUILD_AND_RELEASE.md) for that and other developer questions.
It is designed to be relatively straight-forward to extend to other web-based visualization libraries (and other programming languages)- see [BUILD_AND_RELEASE.md](toolchain/BUILD_AND_RELEASE.md) for that and other developer questions.

[Here is the historical readme](README-HISTORICAL.md)

Expand Down
10 changes: 0 additions & 10 deletions repos/CMakeLists.txt

This file was deleted.

60 changes: 0 additions & 60 deletions repos/linux_scripts/Dockerfile

This file was deleted.

Loading