Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

staticdev/ansible-role-python-developer

Repository files navigation

Ansible role: Python developer

pre-commit Tests

Ansible role to install packages for developing in Python using Cookiecutter Hypermodern Python.

Features

Installs:

Requirements

None.

Role Variables

Here is the list of all variables and their default values:

  • pyenv_global: optional list of Python global versions for pyenv (from staticdev.pyenv)
  • pyenv_python_versions: optional list of Python versions installed (from staticdev.pyenv)
  • install_pycharm: false
  • pycharm_flavor: community. You can use also professional or edu
  • install_vscode: false
  • vscode_extensions: optional list of name_ids of extensions. eg.: ms-python.python (Python Official Extension)

Dependencies

Example Playbook

Here are some common usages of this role.

  1. Role without IDE:
- hosts: all
  roles:
    - role: staticdev.python-developer
  1. Role defining Python versions:
- hosts: all
  roles:
    - role: staticdev.python-developer
      vars:
        pyenv_global:
          - "3.10.0"
        pyenv_python_versions:
          - "3.10.0"
          - "3.9.9"
  1. Role with Pycharm
- hosts: all
  roles:
    - role: staticdev.python-developer
      vars:
        install_pycharm: true
        pycharm_flavor: edu
  1. Role with vscode and extensions
- hosts: all
  roles:
    - role: staticdev.python-developer
      vars:
        install_vscode: true
        vscode_extensions:
          - ms-python.python
          - ms-python.vscode-pylance
          - shan.code-settings-sync

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Ansible role Python developer is free and open source software.

Author Information

staticdev

About

Ansible role to install packages for developing in Python on multiple versions using Cookiecutter Hypermodern Python.

Topics

Resources

License

Stars

13 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors