git: 89e381263235 - main - textproc/py-ini2toml: Add py-ini2toml 0.10
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 17:20:13 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=89e3812632353a57ec409740ef4f54ee4083e5ec
commit 89e3812632353a57ec409740ef4f54ee4083e5ec
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 17:15:19 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 17:19:23 +0000
textproc/py-ini2toml: Add py-ini2toml 0.10
The original purpose of this project is to help migrating setup.cfg files to PEP
621, but by extension it can also be used to convert any compatible .ini/.cfg
file to TOML.
Please notice, the provided .ini/.cfg files should follow the same syntax
supported by Python's ConfigParser library (here referred to as INI syntax) and
more specifically abide by ConfigUpdater restrictions (e.g., no interpolation or
repeated fields).
WWW: https://github.com/abravalheri/ini2toml
---
textproc/Makefile | 1 +
textproc/py-ini2toml/Makefile | 22 ++++++++++++++++++++++
textproc/py-ini2toml/distinfo | 3 +++
textproc/py-ini2toml/pkg-descr | 10 ++++++++++
4 files changed, 36 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 1b871fbb708a..cbaf8601fdf5 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1327,6 +1327,7 @@
SUBDIR += py-html2text2018
SUBDIR += py-humanfriendly
SUBDIR += py-hunspell
+ SUBDIR += py-ini2toml
SUBDIR += py-isbnlib
SUBDIR += py-isbntools
SUBDIR += py-iso-639
diff --git a/textproc/py-ini2toml/Makefile b/textproc/py-ini2toml/Makefile
new file mode 100644
index 000000000000..cf923dba2125
--- /dev/null
+++ b/textproc/py-ini2toml/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= ini2toml
+PORTVERSION= 0.10
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Automatically conversion of .ini/.cfg files to TOML equivalents
+
+LICENSE= MPL20
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20.7:devel/py-packaging@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-ini2toml/distinfo b/textproc/py-ini2toml/distinfo
new file mode 100644
index 000000000000..d4cffdca416a
--- /dev/null
+++ b/textproc/py-ini2toml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1648219977
+SHA256 (ini2toml-0.10.tar.gz) = b34983939b396b5ee01e5591c1b7c1ee62d263178ae95e04a99ab7c3c82918f6
+SIZE (ini2toml-0.10.tar.gz) = 99836
diff --git a/textproc/py-ini2toml/pkg-descr b/textproc/py-ini2toml/pkg-descr
new file mode 100644
index 000000000000..e8d6b882c18e
--- /dev/null
+++ b/textproc/py-ini2toml/pkg-descr
@@ -0,0 +1,10 @@
+The original purpose of this project is to help migrating setup.cfg files to PEP
+621, but by extension it can also be used to convert any compatible .ini/.cfg
+file to TOML.
+
+Please notice, the provided .ini/.cfg files should follow the same syntax
+supported by Python's ConfigParser library (here referred to as INI syntax) and
+more specifically abide by ConfigUpdater restrictions (e.g., no interpolation or
+repeated fields).
+
+WWW: https://github.com/abravalheri/ini2toml