Skip to content

validate pydantic version when testing on Debian #1766

@tomkralidis

Description

@tomkralidis

As discussed at FOSS4G Europe 2024 with @EdwardBetts and @pantierra (in support of pygeoapi on Debian):

https://hachyderm.io/@edward/112728302761775798

@EdwardBetts @pantierra can you confirm the Debian version?

On jammy (our current baseline):

dpkg -l | grep -i pydantic
ii  python3-pydantic            1.8.2-1                                 all          Data validation and settings management using Python type hinting

And a small script to test/reproduce (Debian sid):

docker run -it debian:sid
apt update -y && apt install python3-pydantic
from pydantic import BaseModel, Field

class Foo(BaseModel):
    api_version: str = Field(regex=r'^\d+\.\d+\..+$',
                             description="Semantic API version number.")

f = Foo(api_version='1.0.0')

Metadata

Metadata

Labels

packagingPackagingquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions