git: 5d613390a733 - main - sysutils/py-ansible-compat: New Port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Apr 2022 12:00:47 UTC
The branch main has been updated by matthew: URL: https://cgit.FreeBSD.org/ports/commit/?id=5d613390a733415afc8649a444011390a037aa5b commit 5d613390a733415afc8649a444011390a037aa5b Author: Matthew Seaman <matthew@FreeBSD.org> AuthorDate: 2022-04-18 09:21:56 +0000 Commit: Matthew Seaman <matthew@FreeBSD.org> CommitDate: 2022-04-18 11:59:09 +0000 sysutils/py-ansible-compat: New Port A python package that contains functions that facilitate working with various versions of Ansible 2.9 and newer. PR: 263033 --- sysutils/Makefile | 1 + sysutils/py-ansible-compat/Makefile | 32 +++++++++++++++++++++++++ sysutils/py-ansible-compat/distinfo | 3 +++ sysutils/py-ansible-compat/files/patch-setup.py | 8 +++++++ sysutils/py-ansible-compat/pkg-descr | 4 ++++ 5 files changed, 48 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 196f27551ce7..cd3c44f6611c 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1022,6 +1022,7 @@ SUBDIR += pxattr SUBDIR += pxp-agent SUBDIR += py-ansible-base + SUBDIR += py-ansible-compat SUBDIR += py-ansible-core SUBDIR += py-ansible-core211 SUBDIR += py-ansible-lint diff --git a/sysutils/py-ansible-compat/Makefile b/sysutils/py-ansible-compat/Makefile new file mode 100644 index 000000000000..72ed696633a9 --- /dev/null +++ b/sysutils/py-ansible-compat/Makefile @@ -0,0 +1,32 @@ +PORTNAME= ansible-compat +PORTVERSION= 2.0.2 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@FreeBSD.org +COMMENT= Ansible compatibility goodies + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=45.0.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.3.1:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>=1.0:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}subprocess-tee>=0.3.5:devel/py-subprocess-tee@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flaky>0:devel/py-flaky@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pip-tools>0:devel/py-pip-tools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-markdown>0:devel/py-pytest-markdown@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-plus>0:devel/py-pytest-plus@${PY_FLAVOR} + +USES= python:3.8+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/sysutils/py-ansible-compat/distinfo b/sysutils/py-ansible-compat/distinfo new file mode 100644 index 000000000000..1924b64e7315 --- /dev/null +++ b/sysutils/py-ansible-compat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650118955 +SHA256 (ansible-compat-2.0.2.tar.gz) = c651995dc323ef145bab857fee6540febc881fb71b7feafe8163d49e273163a5 +SIZE (ansible-compat-2.0.2.tar.gz) = 35072 diff --git a/sysutils/py-ansible-compat/files/patch-setup.py b/sysutils/py-ansible-compat/files/patch-setup.py new file mode 100644 index 000000000000..12c9d0596446 --- /dev/null +++ b/sysutils/py-ansible-compat/files/patch-setup.py @@ -0,0 +1,8 @@ +--- setup.py.orig 2019-12-09 07:04:35 UTC ++++ setup.py +@@ -0,0 +1,5 @@ ++ ++import setuptools ++if __name__ == "__main__": ++ setuptools.setup(use_scm_version=True) ++ diff --git a/sysutils/py-ansible-compat/pkg-descr b/sysutils/py-ansible-compat/pkg-descr new file mode 100644 index 000000000000..1faa18199a2b --- /dev/null +++ b/sysutils/py-ansible-compat/pkg-descr @@ -0,0 +1,4 @@ +A python package that contains functions that facilitate working with +various versions of Ansible 2.9 and newer. + +WWW: https://github.com/ansible-community/ansible-compat