<?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: Python Wheel in Serverless Job in DAB in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135042#M50262</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149417"&gt;@georgemichael40&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Put your whl file in the volume and then you can reference it in following way in your DAB file:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dependencies:
  - " /Volumes/workspace/default/my_volume/hellopkg-0.0.1-py3-none-any.whl"&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/compute/serverless/dependencies#-add-dependencies-to-the-notebook" target="_blank"&gt;https://docs.databricks.com/aws/en/compute/serverless/dependencies#-add-dependencies-to-the-notebook&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2025 18:29:14 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-10-15T18:29:14Z</dc:date>
    <item>
      <title>Python Wheel in Serverless Job in DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135005#M50252</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I am trying to run a job with serverless compute, that runs python scripts.&lt;/P&gt;&lt;P&gt;I need the paramiko package to get my scripts to work. I managed to get it working by doing:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;environments&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;environment_key&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;default&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Full documentation of this spec can be found at:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# &lt;A href="https://docs.databricks.com/api/workspace/jobs/create#environments-spec" target="_blank"&gt;https://docs.databricks.com/api/workspace/jobs/create#environments-spec&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spec&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dependencies&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;paramiko==4.0.0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;in the yaml for the job.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, to more centralize the project config and not having to specify the package per job, I want to make use of a python wheel.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I already set up my pyproject.toml with the dependecies.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I saw other scripts online adding the following to the databricks.yml:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# A set of artifacts to build before deploying&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;artifacts&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;whl&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;build&lt;/SPAN&gt;&lt;SPAN&gt;: poetry&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;build&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Not sure if this is needed?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, I am not sure what to give as arguments in the environment block, because I read that this is required for the serverless job. I assume I have to fill in the dependencies in another way there now?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How would this work?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Oct 2025 13:59:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135005#M50252</guid>
      <dc:creator>georgemichael40</dc:creator>
      <dc:date>2025-10-15T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python Wheel in Serverless Job in DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135042#M50262</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149417"&gt;@georgemichael40&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Put your whl file in the volume and then you can reference it in following way in your DAB file:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dependencies:
  - " /Volumes/workspace/default/my_volume/hellopkg-0.0.1-py3-none-any.whl"&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/compute/serverless/dependencies#-add-dependencies-to-the-notebook" target="_blank"&gt;https://docs.databricks.com/aws/en/compute/serverless/dependencies#-add-dependencies-to-the-notebook&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 18:29:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135042#M50262</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-15T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python Wheel in Serverless Job in DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135064#M50267</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But the documentation refers to notebooks. I am deploying a DAB that runs a serverless job to run Python scripts. Do you think that would make a difference?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 06:00:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135064#M50267</guid>
      <dc:creator>georgemichael40</dc:creator>
      <dc:date>2025-10-16T06:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python Wheel in Serverless Job in DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135142#M50285</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Can confirm this works! It's&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dependencies:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;string&lt;/EM&gt;&amp;nbsp;value of path to the wheel in the volume or workspace.&lt;/P&gt;&lt;P&gt;For me, workspace worked fine.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 15:03:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135142#M50285</guid>
      <dc:creator>georgemichael40</dc:creator>
      <dc:date>2025-10-16T15:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python Wheel in Serverless Job in DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135144#M50286</link>
      <description>&lt;P&gt;Cool, great that it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 15:18:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-wheel-in-serverless-job-in-dab/m-p/135144#M50286</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-16T15:18:14Z</dc:date>
    </item>
  </channel>
</rss>

