BSD Ports

devel/py-eval-type-backport 0.4.0 FreeBSD

Like typing._eval_type, but lets older Python versions use newer typing features

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
3f6efd2cae
License
MIT
Categories
devel, python
Package size
12.2 KiB, 40.5 KiB installed

Description

eval_type_backport is a tiny package providing a replacement for typing._eval_type to support newer typing features in older Python versions.

Yes, that's very specific, and yes, typing._eval_type is a protected function that you shouldn't normally be using. Really this package is specifically made for pydantic/pydantic#7873.

Specifically, this transforms X | Y into typing.Union[X, Y] and list[X] into typing.List[X] etc. (for all the types made generic in PEP 585) if the original syntax is not supported in the current Python version.

In the other systems

SystemPortVersion
FreeBSDdevel/py-eval-type-backport0.4.0
MidnightBSDdevel/py-eval-type-backport0.3.1_1
HardenedBSDdevel/py-eval-type-backport0.4.0
GhostBSDdevel/py-eval-type-backport0.4.0

Install

Binary package:

pkg install py312-eval-type-backport

From the ports tree:

cd /usr/ports/devel/py-eval-type-backport/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-eval-type-backport>0:devel/py-eval-type-backport

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.4.00.4.0-0.2.20.4.0
FreeBSD:14:quarterly0.4.00.4.0n/a0.2.20.4.0
FreeBSD:15:latest0.4.00.4.0n/a0.2.20.2.2
FreeBSD:15:quarterly0.4.00.4.0n/an/an/a
FreeBSD:16:latest0.4.00.4.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
eval_type_backport-0.4.0.tar.gz102608397d25e6524c2e67b9576bb0636be27dea2192017711220c534ec2de921e9b0
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
3f6efd2cae Po-Chuan Hsieh devel/py-eval-type-backport: Update to 0.4.0
Changes: https://github.com/alexmojaki/eval_type_backport/commits/main