Spaces:
Sleeping

dn commited on
Commit
f718aed
·
1 Parent(s): 6071728

local import

Browse files
.github/scripts/build.py CHANGED
@@ -11,15 +11,6 @@ The script can be run from the command line with optional arguments:
11
  The exported files will be placed in the specified output directory (default: _site).
12
  """
13
 
14
- # /// script
15
- # requires-python = ">=3.12"
16
- # dependencies = [
17
- # "jinja2==3.1.3",
18
- # "fire==0.7.0",
19
- # "loguru==0.7.0"
20
- # ]
21
- # ///
22
-
23
  import os
24
  import subprocess
25
  from pathlib import Path
 
11
  The exported files will be placed in the specified output directory (default: _site).
12
  """
13
 
 
 
 
 
 
 
 
 
 
14
  import os
15
  import subprocess
16
  from pathlib import Path
.github/workflows/deploy.yml CHANGED
@@ -18,9 +18,6 @@ concurrency:
18
  cancel-in-progress: false # Don't cancel in-progress runs when a new one is triggered
19
 
20
  # Environment variables used by the workflow
21
- env:
22
- UV_SYSTEM_PYTHON: 1 # Use system Python with uv package manager
23
-
24
  jobs:
25
  # The build job exports marimo notebooks to static HTML/WebAssembly
26
  build:
@@ -34,7 +31,12 @@ jobs:
34
  # Install uv package manager for faster Python package installation
35
  - name: 🚀 Install uv
36
  uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
37
- # Run the build script to export notebooks to WebAssembly
 
 
 
 
 
38
  - name: 🛠️ Export notebooks
39
  run: |
40
  # todo: Ultimately this function should not be part of this repo
 
18
  cancel-in-progress: false # Don't cancel in-progress runs when a new one is triggered
19
 
20
  # Environment variables used by the workflow
 
 
 
21
  jobs:
22
  # The build job exports marimo notebooks to static HTML/WebAssembly
23
  build:
 
31
  # Install uv package manager for faster Python package installation
32
  - name: 🚀 Install uv
33
  uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
34
+
35
+ - name: 📦 Install dependencies and project
36
+ run: |
37
+ uv sync # create venv, install all deps
38
+ uv pip install -e . # install this project (src) in editable mode
39
+
40
  - name: 🛠️ Export notebooks
41
  run: |
42
  # todo: Ultimately this function should not be part of this repo
pyproject.toml CHANGED
@@ -49,3 +49,9 @@ pythonpath = ["src"]
49
  [tool.pytest.ini_options]
50
  pythonpath = ["src"]
51
 
 
 
 
 
 
 
 
49
  [tool.pytest.ini_options]
50
  pythonpath = ["src"]
51
 
52
+ [build-system]
53
+ requires = ["setuptools>=61"]
54
+ build-backend = "setuptools.build_meta"
55
+
56
+ [tool.setuptools.packages.find]
57
+ where = ["src"]