pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-cattrs



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri May  5 09:34:11 UTC 2023

Added Files:
        pkgsrc/devel/py-cattrs: DESCR Makefile PLIST distinfo

Log Message:
devel/py-cattrs: import py-cattrs-22.2.0

cattrs is an open source Python library for structuring and
unstructuring data. cattrs works best with attrs classes, dataclasses
and the usual Python collections, but other kinds of classes are
supported by manually registering converters.

Python has a rich set of powerful, easy to use, built-in data types
like dictionaries, lists and tuples. These data types are also the
lingua franca of most data serialization libraries, for formats
like json, msgpack, yaml or toml.

Data types like this, and mappings like dict s in particular,
represent unstructured data. Your data is, in all likelihood,
structured: not all combinations of field names or values are valid
inputs to your programs. In Python, structured data is better
represented with classes and enumerations. attrs is an excellent
library for declaratively describing the structure of your data,
and validating it.

When you're handed unstructured data (by your network, file system,
database...), cattrs helps to convert this data into structured data.
When you have to convert your structured data into data types other
libraries can handle, cattrs turns your classes and enumerations
into dictionaries, integers and strings.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-cattrs/DESCR \
    pkgsrc/devel/py-cattrs/Makefile pkgsrc/devel/py-cattrs/PLIST \
    pkgsrc/devel/py-cattrs/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-cattrs/DESCR
diff -u /dev/null pkgsrc/devel/py-cattrs/DESCR:1.1
--- /dev/null   Fri May  5 09:34:11 2023
+++ pkgsrc/devel/py-cattrs/DESCR        Fri May  5 09:34:11 2023
@@ -0,0 +1,23 @@
+cattrs is an open source Python library for structuring and
+unstructuring data. cattrs works best with attrs classes, dataclasses
+and the usual Python collections, but other kinds of classes are
+supported by manually registering converters.
+
+Python has a rich set of powerful, easy to use, built-in data types
+like dictionaries, lists and tuples. These data types are also the
+lingua franca of most data serialization libraries, for formats
+like json, msgpack, yaml or toml.
+
+Data types like this, and mappings like dict s in particular,
+represent unstructured data. Your data is, in all likelihood,
+structured: not all combinations of field names or values are valid
+inputs to your programs. In Python, structured data is better
+represented with classes and enumerations. attrs is an excellent
+library for declaratively describing the structure of your data,
+and validating it.
+
+When you're handed unstructured data (by your network, file system,
+database...), cattrs helps to convert this data into structured data.
+When you have to convert your structured data into data types other
+libraries can handle, cattrs turns your classes and enumerations
+into dictionaries, integers and strings.
Index: pkgsrc/devel/py-cattrs/Makefile
diff -u /dev/null pkgsrc/devel/py-cattrs/Makefile:1.1
--- /dev/null   Fri May  5 09:34:11 2023
+++ pkgsrc/devel/py-cattrs/Makefile     Fri May  5 09:34:11 2023
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2023/05/05 09:34:11 wiz Exp $
+
+DISTNAME=      cattrs-22.2.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cattrs/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/python-attrs/cattrs
+COMMENT=       Composable complex class support for attrs and dataclasses
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-attrs>=20:../../devel/py-attrs
+# no tests included in pypi distfile
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-test>=0:../../devel/py-test
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-test-benchmark>=0:../../devel/py-test-benchmark
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} < 308
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=0:../../devel/py-typing-extensions
+.endif
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=      ${PYPKGPREFIX}-exceptiongroup>=0:../../devel/py-exceptiongroup
+.endif
+
+#do-test:
+#      cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-cattrs/PLIST
diff -u /dev/null pkgsrc/devel/py-cattrs/PLIST:1.1
--- /dev/null   Fri May  5 09:34:11 2023
+++ pkgsrc/devel/py-cattrs/PLIST        Fri May  5 09:34:11 2023
@@ -0,0 +1,98 @@
+@comment $NetBSD: PLIST,v 1.1 2023/05/05 09:34:11 wiz Exp $
+${PYSITELIB}/cattr/__init__.py
+${PYSITELIB}/cattr/__init__.pyc
+${PYSITELIB}/cattr/__init__.pyo
+${PYSITELIB}/cattr/converters.py
+${PYSITELIB}/cattr/converters.pyc
+${PYSITELIB}/cattr/converters.pyo
+${PYSITELIB}/cattr/disambiguators.py
+${PYSITELIB}/cattr/disambiguators.pyc
+${PYSITELIB}/cattr/disambiguators.pyo
+${PYSITELIB}/cattr/dispatch.py
+${PYSITELIB}/cattr/dispatch.pyc
+${PYSITELIB}/cattr/dispatch.pyo
+${PYSITELIB}/cattr/errors.py
+${PYSITELIB}/cattr/errors.pyc
+${PYSITELIB}/cattr/errors.pyo
+${PYSITELIB}/cattr/gen.py
+${PYSITELIB}/cattr/gen.pyc
+${PYSITELIB}/cattr/gen.pyo
+${PYSITELIB}/cattr/preconf/__init__.py
+${PYSITELIB}/cattr/preconf/__init__.pyc
+${PYSITELIB}/cattr/preconf/__init__.pyo
+${PYSITELIB}/cattr/preconf/bson.py
+${PYSITELIB}/cattr/preconf/bson.pyc
+${PYSITELIB}/cattr/preconf/bson.pyo
+${PYSITELIB}/cattr/preconf/json.py
+${PYSITELIB}/cattr/preconf/json.pyc
+${PYSITELIB}/cattr/preconf/json.pyo
+${PYSITELIB}/cattr/preconf/msgpack.py
+${PYSITELIB}/cattr/preconf/msgpack.pyc
+${PYSITELIB}/cattr/preconf/msgpack.pyo
+${PYSITELIB}/cattr/preconf/orjson.py
+${PYSITELIB}/cattr/preconf/orjson.pyc
+${PYSITELIB}/cattr/preconf/orjson.pyo
+${PYSITELIB}/cattr/preconf/pyyaml.py
+${PYSITELIB}/cattr/preconf/pyyaml.pyc
+${PYSITELIB}/cattr/preconf/pyyaml.pyo
+${PYSITELIB}/cattr/preconf/tomlkit.py
+${PYSITELIB}/cattr/preconf/tomlkit.pyc
+${PYSITELIB}/cattr/preconf/tomlkit.pyo
+${PYSITELIB}/cattr/preconf/ujson.py
+${PYSITELIB}/cattr/preconf/ujson.pyc
+${PYSITELIB}/cattr/preconf/ujson.pyo
+${PYSITELIB}/cattr/py.typed
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/cattrs/__init__.py
+${PYSITELIB}/cattrs/__init__.pyc
+${PYSITELIB}/cattrs/__init__.pyo
+${PYSITELIB}/cattrs/_compat.py
+${PYSITELIB}/cattrs/_compat.pyc
+${PYSITELIB}/cattrs/_compat.pyo
+${PYSITELIB}/cattrs/_generics.py
+${PYSITELIB}/cattrs/_generics.pyc
+${PYSITELIB}/cattrs/_generics.pyo
+${PYSITELIB}/cattrs/converters.py
+${PYSITELIB}/cattrs/converters.pyc
+${PYSITELIB}/cattrs/converters.pyo
+${PYSITELIB}/cattrs/disambiguators.py
+${PYSITELIB}/cattrs/disambiguators.pyc
+${PYSITELIB}/cattrs/disambiguators.pyo
+${PYSITELIB}/cattrs/dispatch.py
+${PYSITELIB}/cattrs/dispatch.pyc
+${PYSITELIB}/cattrs/dispatch.pyo
+${PYSITELIB}/cattrs/errors.py
+${PYSITELIB}/cattrs/errors.pyc
+${PYSITELIB}/cattrs/errors.pyo
+${PYSITELIB}/cattrs/gen.py
+${PYSITELIB}/cattrs/gen.pyc
+${PYSITELIB}/cattrs/gen.pyo
+${PYSITELIB}/cattrs/preconf/__init__.py
+${PYSITELIB}/cattrs/preconf/__init__.pyc
+${PYSITELIB}/cattrs/preconf/__init__.pyo
+${PYSITELIB}/cattrs/preconf/bson.py
+${PYSITELIB}/cattrs/preconf/bson.pyc
+${PYSITELIB}/cattrs/preconf/bson.pyo
+${PYSITELIB}/cattrs/preconf/json.py
+${PYSITELIB}/cattrs/preconf/json.pyc
+${PYSITELIB}/cattrs/preconf/json.pyo
+${PYSITELIB}/cattrs/preconf/msgpack.py
+${PYSITELIB}/cattrs/preconf/msgpack.pyc
+${PYSITELIB}/cattrs/preconf/msgpack.pyo
+${PYSITELIB}/cattrs/preconf/orjson.py
+${PYSITELIB}/cattrs/preconf/orjson.pyc
+${PYSITELIB}/cattrs/preconf/orjson.pyo
+${PYSITELIB}/cattrs/preconf/pyyaml.py
+${PYSITELIB}/cattrs/preconf/pyyaml.pyc
+${PYSITELIB}/cattrs/preconf/pyyaml.pyo
+${PYSITELIB}/cattrs/preconf/tomlkit.py
+${PYSITELIB}/cattrs/preconf/tomlkit.pyc
+${PYSITELIB}/cattrs/preconf/tomlkit.pyo
+${PYSITELIB}/cattrs/preconf/ujson.py
+${PYSITELIB}/cattrs/preconf/ujson.pyc
+${PYSITELIB}/cattrs/preconf/ujson.pyo
+${PYSITELIB}/cattrs/py.typed
Index: pkgsrc/devel/py-cattrs/distinfo
diff -u /dev/null pkgsrc/devel/py-cattrs/distinfo:1.1
--- /dev/null   Fri May  5 09:34:11 2023
+++ pkgsrc/devel/py-cattrs/distinfo     Fri May  5 09:34:11 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/05/05 09:34:11 wiz Exp $
+
+BLAKE2s (cattrs-22.2.0.tar.gz) = bd0b4b76f9d41ab73731239c9158c995db3a9c8295e42de65d95f85345c9c767
+SHA512 (cattrs-22.2.0.tar.gz) = 688b227e568ca928b195e0c450a8d159e52dcd82315504f69d44606943340111269ec14fa7f78a1d30535b2821a9d3b4bbabea0a85e8cb0db9e956d3e07dac06
+Size (cattrs-22.2.0.tar.gz) = 30050 bytes



Home | Main Index | Thread Index | Old Index