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 + +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 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