<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Manage Project Dependencies with pyproject.toml in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178215#M57507</link>
    <description>&lt;P&gt;How is that central? It seems to take an array from a DAB variable right?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2026 13:33:31 GMT</pubDate>
    <dc:creator>a_user12</dc:creator>
    <dc:date>2026-11-30T13:33:31Z</dc:date>
    <item>
      <title>Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178072#M57473</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Dear Community!&lt;/P&gt;&lt;P&gt;I want to work in a serverless environment. I tried this &lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/library-dependencies#uv-and-pyprojecttoml" target="_blank" rel="nofollow noopener noreferrer"&gt;code&lt;/A&gt; here a couple of weeks:&lt;/P&gt;&lt;PRE&gt;resources:
  pipelines:
    test_uv_etl:
      name: test_uv_etl
      catalog: ${var.catalog}
      schema: ${var.schema}
      serverless: true
      root_path: '../src/test_uv_etl'

      libraries:
        - glob:
            include: ../src/test_uv_etl/transformations/**

      environment:
        dependencies:
          - --editable ${workspace.file_path}&lt;/PRE&gt;&lt;P&gt;I really like it: it simply installs all libraries defined in the pyproject.toml. On top, it builds a wheel for the package specified in the pyproject.toml. &lt;EM&gt;I assume, that this also works for jobs.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now, I saw this pretty &lt;A href="https://docs.databricks.com/aws/en/compute/serverless/notebooks/shared-serverless#manage-the-environment-with-pyprojecttoml" target="_blank" rel="nofollow noopener noreferrer"&gt;new docu&lt;/A&gt; about serverless folders&lt;/P&gt;&lt;P&gt;Here the following code snippet is suggested:&lt;/P&gt;&lt;PRE&gt;resources:
  jobs:
    my_project_job:
      name: my-project-job
      environments:
        - environment_key: project
          spec:
            project_environment: ../pyproject.toml
      tasks:
        - task_key: main
          environment_key: project
          spark_python_task:
            python_file: ../src/main.py&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;I assume, that this also works for pipelines.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Pretty similar, but still not clear for me:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With --editable I shouldn't have any issues with cache. When I refer to the project environment directly as it is done in the second snippet: is it also cache-safe?&lt;/LI&gt;&lt;LI&gt;The first snippet also triggers a build (e.g. via hatchling): is that also trigger in the second option?&lt;/LI&gt;&lt;LI&gt;Finally: are the two approaches at the end the same? If not: what is the difference (I know that shared serverless is for the whole bundle, I mean difference in processing the pyproject.toml)?&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://community.databricks.com/t5/data-engineering/pyproject-toml-driven-environment-management/td-p/177839#" target="_blank" rel="noopener"&gt;Add Products&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI&gt;Labels:&lt;/LI&gt;&lt;LI&gt;&lt;A class="" href="https://community.databricks.com/t5/forums/filteredbylabelpage/board-id/data-engineering/label-name/workflows" target="_blank" rel="noopener"&gt;Workflows&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://community.databricks.com/t5/data-engineering/pyproject-toml-driven-environment-management/td-p/177839#" target="_blank" rel="noopener" aria-label="Add Tag..."&gt;Add tags&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Nov 2026 17:08:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178072#M57473</guid>
      <dc:creator>a_user12</dc:creator>
      <dc:date>2026-11-29T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178148#M57485</link>
      <description>&lt;P&gt;the editable install worked in an Azure serverless pipeline. I put --editable in environment.dependencies and the package metadata reported editable=true. In a standard serverless Jobs task, the same dependency entry led to ModuleNotFoundError. A wheel built from the same Hatchling project imported successfully.&lt;/P&gt;&lt;P&gt;For the Jobs project_environment beta, Databricks requires a build backend and a current uv.lock to install the project itself. In our dev workspace, both Jobs API routes asked for a base environment or version even with the preview on. That left the beta’s build and cache behavior unverified. &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/compute/serverless/dependencies#configure-a-project-environment-with-pyprojecttoml" target="_self"&gt;Jobs project environments&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Databricks caches pipeline dependencies during development. If you’re changing a dependency while iterating, declare it directly in the pipeline’s environment.dependencies.&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/library-dependencies#uv-and-pyprojecttoml" target="_self"&gt;Pipeline dependency guidance&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Databricks SQL Editor showing the installed pipeline package version and editable=true." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33854i1C4C728B2A4BEE37/image-size/large?v=v2&amp;amp;px=999" role="button" title="databricks-pipeline-native.png" alt="Databricks SQL Editor showing the installed pipeline package version and editable=true." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Databricks SQL Editor showing the installed pipeline package version and editable=true.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Databricks Jobs task showing the successful wheel import and the package marker." style="width: 940px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33853iE8C7991E239D06DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="databricks-wheel-job-native.png" alt="Databricks Jobs task showing the successful wheel import and the package marker." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Databricks Jobs task showing the successful wheel import and the package marker.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 04:05:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178148#M57485</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-30T04:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178154#M57487</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you share how you generated the table and how you enabled the graph tab (i don't have it)&lt;/LI&gt;&lt;LI&gt;For me the, pyproject.toml approach makes sense if it can be used everywhere (jobs, pipelines, web-ui) and so&amp;nbsp;it is a bit weird, that using an editable wheel as a dependency does not work with jobs: would be interesting if this is a temporary issue&lt;/LI&gt;&lt;LI&gt;If git-folder environments are cached (not only in pipelines, but also when working in web-ui), then the approach is heavily limited as you can't use it during regular deployment. Indeed, in the &lt;A href="https://docs.databricks.com/aws/en/compute/serverless/notebooks/shared-serverless#manage-the-environment-with-pyprojecttoml" target="_self"&gt;docu&lt;/A&gt;&amp;nbsp;they use tool.uv (package=false) and so it is not clear for me, if the approach is inteded to be used create wheels: as you mentioned: "That left the beta’s build and cache behavior unverified."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 06:52:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178154#M57487</guid>
      <dc:creator>a_user12</dc:creator>
      <dc:date>2026-11-30T06:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178175#M57492</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110209"&gt;@a_user12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;if your company manages l&lt;STRONG&gt;ibraries centrally then follwing will be method:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;environments:&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; - environment_key: serverless_env_v4&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spec:&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; environment_version: '4'&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dependencies: ${var.serverless_libraries}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 09:31:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178175#M57492</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2026-11-30T09:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178176#M57493</link>
      <description>&lt;P&gt;Thanks for the follow-up. The table came from a one-row Lakeflow pipeline materialized view called editable_install_proof. The pipeline read the installed version with importlib.metadata and the editable flag from direct_url.json, then wrote them with the package name and a marker from the imported module. After the update, I ran this in SQL Editor with the pipeline’s catalog and schema selected:&lt;/P&gt;&lt;P&gt;SELECT package, version, marker, editable FROM editable_install_proof;&lt;/P&gt;&lt;P&gt;The Graph tab in the second screenshot is part of the Jobs run page. In Jobs &amp;amp; Pipelines, open Runs and click the run’s start time. Select Graph, then click a task to see its output. For a chart of the SQL results, use + Add visualization next to Table in the first screenshot.&lt;/P&gt;&lt;P&gt;Databricks lists Graph for both single-task and multi-task runs, with no separate preview switch. Free Edition includes serverless Jobs. My screenshot is from an Azure Databricks workspace, so if Graph is still missing on your run details page, it would help to know your edition and which page you’re on.&lt;/P&gt;&lt;P&gt;Shared Serverless in Git folders and the Jobs Project environment do require the Project-Scoped Shared Compute beta. A workspace admin can check for it under the profile menu &amp;gt; Previews. The Git folder editor also needs serverless environment version 5 or later. Databricks doesn’t guarantee this beta on Free Edition or on a free trial. If you don’t see Environment source &amp;gt; Project in the job task, use Standard with a versioned wheel.&lt;/P&gt;&lt;P&gt;For the editable test, I passed the source directory to --editable. It worked in the pipeline and the import failed in the standard serverless Jobs task I tested. The same task type imported a built Hatchling wheel successfully. I can’t tell from that test whether the editable failure is temporary. For a Jobs deployment today, I’d pin a versioned wheel.&lt;/P&gt;&lt;P&gt;In uv, [tool.uv] package = false tells uv sync to install the dependencies and skip installing the root project. You can still run uv build explicitly. In the Git folder editor with Shared Serverless, use Apply or %uv sync after editing dependencies. I haven’t verified what gets reused after a Git update or how the Jobs project-environment beta caches builds.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Databricks SQL Editor showing the installed pipeline package version and editable=true." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33854i1C4C728B2A4BEE37/image-size/large?v=v2&amp;amp;px=999" role="button" title="databricks-pipeline-native.png" alt="Databricks SQL Editor showing the installed pipeline package version and editable=true." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Databricks SQL Editor showing the installed pipeline package version and editable=true.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Databricks Jobs task showing the successful wheel import and the package marker." style="width: 940px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33853iE8C7991E239D06DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="databricks-wheel-job-native.png" alt="Databricks Jobs task showing the successful wheel import and the package marker." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Databricks Jobs task showing the successful wheel import and the package marker.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 09:50:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178176#M57493</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-30T09:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178189#M57499</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jobs run Graph showing the successful verify_package task. Click the task node to open its output." style="width: 588px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33870i35A6ADD4F109BB8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="databricks-jobs-graph-followup.png" alt="Jobs run Graph showing the successful verify_package task. Click the task node to open its output." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Jobs run Graph showing the successful verify_package task. Click the task node to open its output.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 11:14:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178189#M57499</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-30T11:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178215#M57507</link>
      <description>&lt;P&gt;How is that central? It seems to take an array from a DAB variable right?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 13:33:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178215#M57507</guid>
      <dc:creator>a_user12</dc:creator>
      <dc:date>2026-11-30T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178243#M57514</link>
      <description>&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;still some open questions where we have to wait till beta is past &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2026 18:16:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178243#M57514</guid>
      <dc:creator>a_user12</dc:creator>
      <dc:date>2026-11-30T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Manage Project Dependencies with pyproject.toml</title>
      <link>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178308#M57527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110209"&gt;@a_user12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;you're right that the DAB variable itself is just an array. In our setup, though, we don't list all project dependencies in that array separately. Each project is built through CI/CD and published as a versioned package to Artifactory, with its dependencies defined by the project itself.&lt;/P&gt;&lt;P&gt;The DAB deployment then references that released package through our internal Artifactory, and its dependencies are resolved from there. So for us the separation is intentional: pyproject.toml defines/builds the project, CI/CD produces the released artifact, and the production DAB deploys that versioned artifact rather than installing the project directly from source.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Dec 2026 09:49:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/manage-project-dependencies-with-pyproject-toml/m-p/178308#M57527</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2026-12-01T09:49:05Z</dc:date>
    </item>
  </channel>
</rss>

