# $NetBSD: Makefile,v 1.103 2025/12/17 11:48:11 kim Exp $

DISTNAME=	ansible-13.1.0
PKGREVISION=	1
CATEGORIES=	sysutils python
MASTER_SITES=	${MASTER_SITE_PYPI:=a/ansible/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.ansible.com/
COMMENT=	SSH-based configuration management, deployment, and task execution
LICENSE=	gnu-gpl-v3

PREV_PKGPATH=	sysutils/ansible2

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools

# Each ansible release tracks a specific release branch of ansible-core.
# Enforce this by using an upper limit for the dependency version.
# PLEASE KEEP THE UPPER LIMIT WHEN UPGRADING THIS PACKAGE.
DEPENDS+=	ansible-core>=2.20.1<2.21:../../sysutils/ansible-core

USE_LANGUAGES=	# none

PYTHON_VERSIONS_INCOMPATIBLE=	310

CHECK_SHLIBS_SUPPORTED=	no
CHECK_WRKREF_SKIP=	*
CTF_SUPPORTED=		no
IGNORE_INFO_DIRS=	${PYSITELIB}/ansible_collections/dellemc/openmanage/plugins/module_utils/idrac_utils/info
STRIP_DEBUG_SUPPORTED=	no

REPLACE_PYTHON+=	ansible_collections/*/*/.azure-pipelines/scripts/*.py
REPLACE_PYTHON+=	ansible_collections/*/*/tests/*/*.py
REPLACE_PYTHON+=	ansible_collections/*/*/tests/*/*/*.py
REPLACE_PYTHON+=	ansible_collections/*/*/tests/*/*/*/*.py
REPLACE_PYTHON+=	ansible_collections/cisco/meraki/scripts/sublime-build/build.py.generic
REPLACE_PYTHON+=	ansible_collections/community/digitalocean/scripts/inventory/*.py
REPLACE_PYTHON+=	ansible_collections/community/dns/update-docs-fragments.py
REPLACE_PYTHON+=	ansible_collections/community/general/scripts/inventory/*.py
REPLACE_PYTHON+=	ansible_collections/community/general/scripts/vault/*.py
REPLACE_PYTHON+=	ansible_collections/community/general/tests/integration/targets/django_manage/files/base_test/*/*/*.py
REPLACE_PYTHON+=	ansible_collections/community/hashi_vault/.github/actions/ansible-codecov/process.py
REPLACE_PYTHON+=	ansible_collections/community/hashi_vault/.github/actions/docker-image-versions/versions.py
REPLACE_PYTHON+=	ansible_collections/community/mysql/run_all_tests.py
REPLACE_PYTHON+=	ansible_collections/community/okd/ci/doc_fragment_modules.py
REPLACE_PYTHON+=	ansible_collections/community/okd/ci/downstream_fragments.py
REPLACE_PYTHON+=	ansible_collections/community/routeros/update-docs.py
REPLACE_PYTHON+=	ansible_collections/community/sap_libs/plugins/module_utils/swpm2_parameters_inifile_generate.py
REPLACE_PYTHON+=	ansible_collections/lowlydba/sqlserver/plugins/modules/*.py
REPLACE_PYTHON+=	ansible_collections/ngine_io/cloudstack/scripts/inventory/cloudstack.py
REPLACE_PYTHON+=	ansible_collections/ovirt/ovirt/roles/disaster_recovery/files/*.py
REPLACE_PYTHON+=	ansible_collections/ovirt/ovirt/roles/disaster_recovery/files/ovirt-dr
REPLACE_PYTHON+=	ansible_collections/sensu/sensu_go/fix-pytest-ini.py
REPLACE_PYTHON+=	ansible_collections/sensu/sensu_go/tools/windows-versions.py

CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/*/*/.azure-pipelines/scripts/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/*/*/tests/*/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/*/*/tests/*/*/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/*/*/tests/*/*/*/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/amazon/aws/check_mypy.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cisco/dnac/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cisco/meraki/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/grafana/hacking/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/hashi_vault/docs/preview/build.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/kubernetes/utils/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/okd/ci/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/vmware/tools/antsibull-docs-wrapper.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/vmware/tools/check-ignores-order
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/zabbix/roles/zabbix_proxy/files/*.bsx
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/community/zabbix/roles/zabbix_server/files/*.bsx
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cyberark/conjur/ci/*
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cyberark/conjur/conjur-cloud-tools/conjurCloudTenant/*/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cyberark/conjur/conjur-cloud-tools/conjurCloudTenant/*/*/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cyberark/conjur/dev/*
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/cyberark/conjur/roles/conjur_host_identity/tests/test.sh*
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/google/cloud/scripts/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/google/cloud/test-fixtures/cloud-function-source/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/hetzner/hcloud/scripts/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/grafana/grafana/tools/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/infinidat/infinibox/bin/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/lowlydba/sqlserver/plugins/modules/*.ps1
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/netbox/netbox/hacking/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/ovirt/ovirt/automation/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/ovirt/ovirt/build.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/sensu/sensu_go/docker/*.sh
CHECK_INTERPRETER_SKIP+=	${PYSITELIB}/ansible_collections/vmware/vmware_rest/manual/source/export_to_ansible_ansible.sh

post-extract:
	${FIND} ${WRKSRC}/ansible_collections -name .DS_Store -delete

.include "../../lang/python/application.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
