Skip to content

Commit

Permalink
Merge pull request #286 from staticdev/deps/staticdev.pyenv-2.10.2
Browse files Browse the repository at this point in the history
Changed syntax for dependency on molecule
  • Loading branch information
staticdev authored Dec 1, 2023
2 parents de6cce4 + 65eb677 commit fe91911
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Install test dependencies
run: |
python3 -m pip install --constraint=.github/workflows/constraints.txt ansible 'molecule-plugins[podman]' podman
python3 -m pip install --constraint=.github/workflows/constraints.txt ansible 'molecule-plugins[podman]'
- name: Run Molecule tests
run: molecule test
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ Installs:
- [Pipx]
- [Poetry]
- [pre-commit]
- [pyenv]
- [Tox]

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

## Requirements

None.
- [pyenv]

## Role Variables

Expand All @@ -32,10 +31,6 @@ 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.
Expand All @@ -53,6 +48,7 @@ Here are some common usages of this role.
```yaml
- hosts: all
roles:
- role: staticdev.pyenv
- role: staticdev.python-developer
vars:
pyenv_global:
Expand Down
5 changes: 0 additions & 5 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ galaxy_info:
- hatch
- nox
- poetry
- pyenv
- pipx
- precommit
- tox
- workstation

dependencies:
- name: staticdev.pyenv
version: 2.10.2
2 changes: 0 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
driver:
name: podman
platforms:
Expand Down
1 change: 1 addition & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
when: ansible_os_family == 'Debian'

roles:
- role: staticdev.pyenv

Check failure on line 15 in playbook.yml

View workflow job for this annotation

GitHub Actions / Lint

syntax-check[specific]

the role 'staticdev.pyenv' was not found in /home/runner/work/ansible-role-python-developer/ansible-role-python-developer/staticdev.python_developer/roles:/home/runner/.cache/ansible-compat/30b79b/roles:/home/runner/work/ansible-role-python-developer/ansible-role-python-developer/staticdev.python_developer:/home/runner/.ansible/roles:/home/runner/work/ansible-role-python-developer/ansible-role-python-developer/staticdev.python_developer
- role: .
4 changes: 0 additions & 4 deletions requirements.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
- name: Load custom facts
ansible.builtin.import_tasks: custom_facts.yml

- name: Install pyenv
ansible.builtin.import_role:
name: staticdev.pyenv
vars:
pyenv_owner: "{{ ansible_facts.user_id }}"
pyenv_path: "{{ ansible_env.HOME }}/pyenv"
when: pyenv_python_versions

- name: Ensure dependencies are installed
ansible.builtin.package:
name: "{{ item }}"
Expand Down

0 comments on commit fe91911

Please sign in to comment.