title: GitLab CI bump Python package version
body: <p>I was wondering whether is possible to bump Python package version stored in gitlab inside gitlab ci runner.</p>
  
  <p>I have example package structure:</p>
  
  <pre><code>/package
    /src
      /__init__.py
       main.py
    setup.py
    Dockerfile
    .gitlab-ci.yml
  </code></pre>
  
  <p><strong>init</strong>.py includes:</p>
  
  <pre><code>  __version__ = '1.0.0'
  </code></pre>
  
  <p>setup.py includes:</p>
  
  <pre><code>  setup(
          name='foo',
          version=src.__version__,
          packages=find_packages(),
          install_required=[foo, bar]
    )
  </code></pre>
  
  <p>Simple workflow for bumping and releasing looks like here: <a href="https://stackoverflow.com/questions/53122766/best-workflow-and-practices-for-releasing-a-new-python-package-version-on-github">Best workflow and practices for releasing a new python package version on github and pypi</a></p>
  
  <p>But can we automatically bump version in __init_.py while releasing directly in gitlab-ci? </p>