Skip to content

Commit 0a69a08

Browse files
committed
Fix Julia build for new version of Dash
1 parent 3221fe4 commit 0a69a08

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/doctest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
version: '1.6.1'
5050
- name: Add Julia artifacts to repo for local install
5151
run: |
52-
git add -f deps src/*.jl Project.toml
52+
git add -f deps src/*.jl src/jl Project.toml
5353
git -c user.name="GitHub Actions" -c user.email="actions@github.com" commit -m "Add Julia build artifacts"
5454
- name: Install Julia dependencies
5555
run: julia -e 'using Pkg; Pkg.add(["Dash", "DashCoreComponents", "DashHtmlComponents", "HTTP"]); Pkg.add(path=".");'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ NAMESPACE
3838
# Julia build artifacts
3939
deps/
4040
src/*.jl
41+
src/jl
4142
Project.toml

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
build
2-
dash[dev]
2+
dash[dev]>=1.21.0
33
invoke
44
semver
55
termcolor

tasks.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,16 @@ def copy_dist():
210210

211211

212212
@task
213-
def clean(ctx):
213+
def clean(_):
214214
make_and_clean_dir("dist")
215215
make_and_clean_dir("lib")
216216
make_and_clean_dir("dash_bootstrap_components/_components")
217217
make_and_clean_dir("src", "*.jl")
218+
make_and_clean_dir("src/jl")
218219

219220

220221
@task
221-
def move_generated_files(ctx):
222+
def move_generated_files(_):
222223
info("Moving generated files")
223224
dir_ = HERE / "dash_bootstrap_components"
224225
for file_ in chain(dir_.glob("*.py"), dir_.glob("*.json")):
@@ -276,7 +277,7 @@ def build_jl(ctx):
276277
)
277278
copy_dist()
278279
move_generated_files(ctx)
279-
shutil.copy(HERE / "jl" / "themes.jl", HERE / "src" / "themes.jl")
280+
shutil.copy(HERE / "jl" / "themes.jl", HERE / "src" / "jl" / "themes.jl")
280281

281282
with (HERE / "src" / "DashBootstrapComponents.jl").open() as f:
282283
lines = f.readlines()
@@ -286,7 +287,7 @@ def build_jl(ctx):
286287
if line.startswith("include"):
287288
break
288289

289-
lines.insert(n - i, 'include("themes.jl")\n')
290+
lines.insert(n - i, 'include("jl/themes.jl")\n')
290291

291292
with (HERE / "src" / "DashBootstrapComponents.jl").open("w") as f:
292293
f.writelines(lines)

0 commit comments

Comments
 (0)