title: python google cloud function local dependency
body: <p>I am writing two google cloud functions in python. These two functions have some common code. This is my directory tree:</p>
  <pre><code>root
  |-- module
      |-- common
          |-- common_func.py
      |-- func1
          |-- main.py
          |-- requriments.txt
      |-- func2
          |-- main.py
          |-- requriments.txt
  </code></pre>
  <p>In <code>commmon_func.py</code> i have a method <code>common_method()</code> used in both <code>main.py</code> (corresponding to each cloud function). Locally works fine making the following import:</p>
  <pre><code>from root.module.common.common_func import common_method
  </code></pre>
  <p>but when deploying into google cloud functions, this does not work, im assuming somehow in the <code>requirements.txt</code> i need to specify to ship the <code>common_func</code> module.</p>
  <p>How can i achieve this?</p>
  <p>thanks!</p>