Port details |
- py-cattrs Composable complex class support for attrs and dataclasses
- 24.1.2 devel
=2 24.1.2Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2022-02-28 12:51:25
- Last Update: 2024-10-14 05:25:27
- Commit Hash: 092b072
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- Also Listed In: python
- License: MIT
- WWW:
- https://catt.rs/en/stable/
- https://github.com/python-attrs/cattrs
- Description:
- 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.
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}cattrs>0:devel/py-cattrs@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-cattrs/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-cattrs
- pkg install py311-cattrs
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-cattrs listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-cattrs
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1728632330
SHA256 (cattrs-24.1.2.tar.gz) = 8028cfe1ff5382df59dd36474a86e02d817b06eaf8af84555441bac915d2ef85
SIZE (cattrs-24.1.2.tar.gz) = 426462
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-hatch-vcs>=0 : devel/py-hatch-vcs@py311
- py311-hatchling>=0 : devel/py-hatchling@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-attrs>=23.1.0 : devel/py-attrs@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- devel/py-lsprotocol
- devel/py-pygls
- www/py-requests-cache
- www/py-requests-cache0
Configuration Options:
- No options to configure
- Options name:
- devel_py-cattrs
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 13
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
24.1.2 14 Oct 2024 05:25:27
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Update to 24.1.2
Changes: https://github.com/python-attrs/cattrs/releases |
23.2.3 08 Apr 2024 12:37:28
    |
Po-Chuan Hsieh (sunpoet)  |
Mk/Uses/python.mk: Introduce PY_EXCEPTIONGROUP
The minimal version is set to 1.1.1 because it is required by devel/py-cattrs.
Convert ports to use PY_EXCEPTIONGROUP to simplify Makefile.
With hat: python |
23.2.3 01 Dec 2023 22:11:42
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Update to 23.2.3
Changes: https://github.com/python-attrs/cattrs/releases |
23.2.2 27 Nov 2023 10:28:11
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Update to 23.2.2
- Update WWW
Changes: https://github.com/python-attrs/cattrs/releases |
22.2.0_1 30 Jun 2023 07:03:15
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Convert to USE_PYTHON=pep517
- Remove outdated PYTHON_REL check after lang/python37 removal
- Bump PORTREVISION for package change |
22.2.0 27 Jun 2023 19:34:34
    |
Rene Ladan (rene)  |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
22.2.0 11 Jan 2023 15:58:34
    |
Dmitry Marakasov (amdmi3)  |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
22.2.0 09 Oct 2022 15:37:54
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Update to 22.2.0
Changes: https://github.com/python-attrs/cattrs/blob/main/HISTORY.rst |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
22.1.0 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
22.1.0 20 Jul 2022 14:21:35
    |
Tobias C. Berner (tcberner)  |
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org> (Only the first 15 lines of the commit message are shown above ) |
22.1.0 21 Jun 2022 16:32:53
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Update to 22.1.0
Changes: https://github.com/python-attrs/cattrs/blob/main/HISTORY.rst |
1.10.0 28 Feb 2022 12:45:54
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-cattrs: Add py-cattrs 1.10.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.
WWW: https://github.com/python-attrs/cattrs |
Number of commits found: 13
|