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

Feature/new pyenv 2.7.0 #198

Merged
merged 2 commits into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 0 additions & 105 deletions CODE_OF_CONDUCT.rst

This file was deleted.

64 changes: 0 additions & 64 deletions CONTRIBUTING.rst

This file was deleted.

82 changes: 82 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Ansible role: Python developer

[![Tests](https://github.com/staticdev/ansible-role-python-developer/workflows/Tests/badge.svg)][tests]

[tests]: https://github.com/staticdev/ansible-role-python-developer/actions?workflow=Tests

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

## Features

Installs:

- [Cookiecutter]
- [Nox]
- [Pipx]
- [Poetry]
- [pre-commit]
- [pyenv]

Note: for a playbook that installs IDEs, try [Linux workstation playbook].

## 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])

## Dependencies

- [staticdev.pyenv]

## Example Playbook

Here are some common usages of this role.

1. Role using defaults:

```yaml
- hosts: all
roles:
- role: staticdev.python-developer
```

2. Role defining Python versions:

```yaml
- hosts: all
roles:
- role: staticdev.python-developer
vars:
pyenv_global:
- "3.11.0"
pyenv_python_versions:
- "3.11.0"
- "3.10.6"
```

## License

Distributed under the terms of the [MIT] license,
_Ansible role Python developer_ is free and open source software.

## Author Information

[staticdev]

[cookiecutter]: https://github.com/audreyr/cookiecutter
[cookiecutter hypermodern python]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[linux workstation playbook]: https://github.com/staticdev/linux-workstation-playbook
[mit]: https://opensource.org/licenses/MIT
[nox]: https://nox.thea.codes/
[pipx]: https://pypa.github.io/pipx/
[poetry]: https://python-poetry.org/
[pre-commit]: https://pre-commit.com/
[pyenv]: https://github.com/pyenv/pyenv
[staticdev]: https://github.com/staticdev
[staticdev.pyenv]: https://galaxy.ansible.com/staticdev/pyenv
112 changes: 0 additions & 112 deletions README.rst

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
roles:
- name: staticdev.pyenv
version: 2.6.3
version: 2.7.0