From nobody Wed Aug 16 18:30:24 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RQxX13kmbz4qxGx; Wed, 16 Aug 2023 18:30:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQxX102bWz4PWT; Wed, 16 Aug 2023 18:30:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692210625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GnOJizf9R/7URwH3RlmvfzC4q6URQLOBTzKV+FPUF4c=; b=L41fpXkWOUFHhSwx7sDvyJyBwYB6OqX6FaqVDyvZhBPrs2gKdNnwMSntoNnBXeR7YLa2ZJ hZKPX66fzq4DxigNRVr7uQ/rMuKDXCRwNR+Et6qRLv02DfgjFwHXYNiPZ7j1TUBndmgriu qFhM9aQEZlW7bL4P6fyVrITj6/T/5sy+D+eh2qEYai9/F4z0L4K3UTinO+DyvaLY8Zj23+ Zavj3T92CRqzHa3zSromC1aynqcTPOLAkSrTFKUsJ3QLT5EZ8YsFexC4WUTxMNKwQWPveu pxrV3PqZHaGFLIXZRnw5uGSfS27zYxFDdXM8rpJNo84Xp4BAYYpxBRVxjvzcGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692210625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GnOJizf9R/7URwH3RlmvfzC4q6URQLOBTzKV+FPUF4c=; b=pNWBuheuB/Bt3HxEbC/qHptOs8CudjWYoq3D7lo/zYQbQ79wS8jXXYJ9dcAL0j9elifqRa NwkqJ0YLpcbgoMvQ0p14J4c4BhjlKKCgUUpd/DjOjB8pbTF0kqeHAZwwyywXzBSkFXWe5U 7ARLWgI7PJXBxjS5s9LHFtnzuabX58tL8SiUBPHhKHY+vG1HncWCMNZIvrP9rLzC6J4PCP 2JpfqZahYr1+snE/HBAIo3q/KT8sSS0HUN7pTfLXwadSwiuoF8HP50sbMH9up1w2VdNXyN 1IloJafn/YUv81BqFwy2VichDlRo7wwyfxSX3/ZRsHS177sRiOI2wq/AXRvD2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692210625; a=rsa-sha256; cv=none; b=mLV7pYuarcYjnjDGqvuZtCZ23vUPjWra1QdJkQ5GVdIVBUJy/lfiqu6cX8ntbnyruHSk8u 4ua9/JLbedkUYHsn7Oq7iBuTYEHgb4zA4pNbxv9DW2oR3g2jHOoenRLmMrU5dN4IF38VEa hAVG2Vdlt5i5u74O9EdExfKyI4jwh4s9BAA+A5Z8bOOojfICmVxrZk2KMZ+dK/bbc7KJzK iHGlWAWsrVyPHjbHEkeDOUnnHlcgaGT+D2eQTZ/OuYK1eIXkIC/sQd7mf8m/YtgvY3KIAt 1GXxi+tzrwNq00c9yCK0ZLhWNjhZdknVOCSgvcBTu8DDEBi1bABpFR/P5efPkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RQxX06Fjlz11yv; Wed, 16 Aug 2023 18:30:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37GIUOGd023271; Wed, 16 Aug 2023 18:30:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GIUOmu023268; Wed, 16 Aug 2023 18:30:24 GMT (envelope-from git) Date: Wed, 16 Aug 2023 18:30:24 GMT Message-Id: <202308161830.37GIUOmu023268@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: dd4c723cf210 - main - devel/py-simple-parsing: Add py-simple-parsing 0.1.3 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dd4c723cf21014947a5f26be34a4fb1180886190 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd4c723cf21014947a5f26be34a4fb1180886190 commit dd4c723cf21014947a5f26be34a4fb1180886190 Author: Po-Chuan Hsieh AuthorDate: 2023-08-16 18:06:36 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-08-16 18:25:06 +0000 devel/py-simple-parsing: Add py-simple-parsing 0.1.3 simple-parsing allows you to transform your ugly argparse scripts into beautifully structured, strongly typed little works of art. This isn't a fancy, complicated new command-line tool either, this simply adds new features to plain-old argparse! Using dataclasses, simple-parsing makes it easier to share and reuse command-line arguments - no more copy pasting! Supports inheritance, nesting, easy serialization to json/yaml, automatic help strings from comments, and much more! --- devel/Makefile | 1 + devel/py-simple-parsing/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-simple-parsing/distinfo | 3 +++ devel/py-simple-parsing/files/patch-setup.py | 8 ++++++++ devel/py-simple-parsing/pkg-descr | 8 ++++++++ 5 files changed, 48 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 741bb7fff9fc..d8b988f60149 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5568,6 +5568,7 @@ SUBDIR += py-shellingham SUBDIR += py-shtab SUBDIR += py-signalr-client-aio + SUBDIR += py-simple-parsing SUBDIR += py-simple-term-menu SUBDIR += py-simpleeval SUBDIR += py-simplegeneric diff --git a/devel/py-simple-parsing/Makefile b/devel/py-simple-parsing/Makefile new file mode 100644 index 000000000000..eeccbfd89236 --- /dev/null +++ b/devel/py-simple-parsing/Makefile @@ -0,0 +1,28 @@ +PORTNAME= simple-parsing +PORTVERSION= 0.1.3 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= simple_parsing-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Small utility for simplifying and cleaning up argument parsing scripts +WWW= https://pypi.org/project/simple-parsing/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docstring-parser>=0.15<1:textproc/py-docstring-parser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= YAML +OPTIONS_DEFAULT=YAML + +YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} + +.include diff --git a/devel/py-simple-parsing/distinfo b/devel/py-simple-parsing/distinfo new file mode 100644 index 000000000000..6fb65764acc4 --- /dev/null +++ b/devel/py-simple-parsing/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691069898 +SHA256 (simple_parsing-0.1.3.tar.gz) = 14970728f11bdb084044f678035ce753c0860418282d7a4c49edfcd7f447c4b0 +SIZE (simple_parsing-0.1.3.tar.gz) = 172509 diff --git a/devel/py-simple-parsing/files/patch-setup.py b/devel/py-simple-parsing/files/patch-setup.py new file mode 100644 index 000000000000..d45383372e92 --- /dev/null +++ b/devel/py-simple-parsing/files/patch-setup.py @@ -0,0 +1,8 @@ +--- setup.py.orig 2023-06-06 21:39:38 UTC ++++ setup.py +@@ -48,5 +48,4 @@ setuptools.setup( + python_requires=">=3.7", + install_requires=install_requires, + extras_require=extras_require, +- setup_requires=["pre-commit"], + ) diff --git a/devel/py-simple-parsing/pkg-descr b/devel/py-simple-parsing/pkg-descr new file mode 100644 index 000000000000..5a7f7e27a922 --- /dev/null +++ b/devel/py-simple-parsing/pkg-descr @@ -0,0 +1,8 @@ +simple-parsing allows you to transform your ugly argparse scripts into +beautifully structured, strongly typed little works of art. This isn't a fancy, +complicated new command-line tool either, this simply adds new features to +plain-old argparse! Using dataclasses, simple-parsing makes it easier to share +and reuse command-line arguments - no more copy pasting! + +Supports inheritance, nesting, easy serialization to json/yaml, automatic help +strings from comments, and much more!