# including development builds in jupyter lite
this work augments our [existing lite build](../xxii/2022-12-21-lite-build.ipynb) by vendoring things that i'm actively working on for demonstration.
https://jupyterlite.readthedocs.io/en/latest/howto/python/wheels.html#adding-pyolite-wheels
@task_params([dict(name="pypi",type=list,default=["https://github.com/deathbeds/midgy","https://github.com/deathbeds/pidgy","https://github.com/deathbeds/importnb"])])deftask_lite(pypi):with__import__("importnb").imports("ipynb"):fromtonyfast.xxii.__lite_buildimportset_files_importsenv=os.environ.copy()env["SETUPTOOLS_SCM_PRETEND_VERSION"]="6.6.6"hatch=list(filter(lambdax:x.startswith("HATCH"),env))forxinhatch:env.pop(x)wheels=[]forrepoinpypi:org,_,name=repo.rpartition("/")target=TARGET/nameyielddict(name=F"clone:{repo}",actions=[F"git clone --depth 1 {repo}{target}"],targets=[HEAD:=(target/".git"/"HEAD")],clean=[F"rm -rf {target}"],uptodate=[target.exists()])pypi=Path("pypi").absolute()# this directory needs to relative to build directorywheel=pypi/F"{name}-6.6.6-py3-none-any.whl"wheels.append(wheel)yielddict(name=F"build:{name}",actions=[(doit.tools.create_folder,[pypi]),doit.tools.CmdAction(F"python -m build --wheel --outdir {pypi}",cwd=target,env=env)],clean=True,targets=[wheel],uptodate=[False])yielddict(name="build",file_dep=wheels,actions=["rm -rf tonyfast/pidgy/lite tonyfast/pidgy/.binder","pip install --pre --upgrade notebook",# development version of notebook for v7"jupyter lite -vv build --apps repl --apps lab --contents tonyfast --output-dir site/run",# voici is activated here when it works(set_files_imports,(Path("site/run/files"),))],targets=["site/run/index.html"],clean=["rm -rf site/run"])