Skip to content

Commit

Permalink
ansible-lint: Update to 24.12.2 and update python default to 3.13
Browse files Browse the repository at this point in the history
  - Update to 24.12.2
  - Change default python to 3.13
  - Additionally correct the logic for a wanring message where an empty
    PYENV_VIRTUAL_ENV system variable trips incorrectly
  • Loading branch information
jhoyt4 committed Jan 31, 2025
1 parent a3e7bed commit ec74eb4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions sysutils/ansible-lint/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0

github.setup ansible-community ansible-lint 24.2.3 v
github.setup ansible-community ansible-lint 24.12.2 v
github.tarball_from archive
revision 0

Expand All @@ -20,12 +20,12 @@ description Best practices checker for Ansible playbooks
long_description \
ansible-lint checks playbooks for practices and behaviour that could potentially be improved

checksums rmd160 2310f060e3d82bab5909cfb30a5349524850efdf \
sha256 b934f8de0431c78f73c206ba17b1f47771be4f95fa2fc41204256eece5bf4e6c \
size 460489
checksums rmd160 e6750a4429ed567a84a6b8ac366123e9471cbd37 \
sha256 ad54ecabb32e727622c996ae8517f4bbe359cc483dac8cea2758ebd9df427d68 \
size 490633

# Keep Python version compatible with yamllint
python.default_version 311
python.default_version 313
python.link_binaries_suffix

depends_build-append \
Expand All @@ -37,6 +37,7 @@ depends_build-append \
depends_run-append port:py${python.version}-ansible \
port:py${python.version}-ansible-compat \
port:py${python.version}-black \
port:py${python.version}-importlib-metadata\
port:yamllint

depends_lib-append port:py${python.version}-enrich \
Expand All @@ -49,8 +50,10 @@ depends_lib-append port:py${python.version}-enrich \
port:py${python.version}-wcmatch \
port:py${python.version}-yaml

# Stop setuptools from using the scm version which doesn't exist in this context
patchfiles patch-disable_use_scm_version.diff
# patch-disable_use_scm_version.diff: Stop setuptools from using the scm version which doesn't exist in this context
# patch-disable_path_warning.diff: Correct wanring logic where an empty PYENV_VIRTUAL_ENV triggers a warning
patchfiles patch-disable_use_scm_version.diff \
patch-disable_path_warning.diff

python.pep517 yes

Expand Down

0 comments on commit ec74eb4

Please sign in to comment.