pydantic / pydantic-extra-types

Extra Pydantic types.
MIT License
198 stars 53 forks source link

question: plan for `pendulum_dt` given lack of `3.13` support #239

Open zzstoatzz opened 4 hours ago

zzstoatzz commented 4 hours ago

I would have opened a discussion, but I appear unable

Is there any plan for what to do about pendulum's lack of 3.13 support? and general uncertainty around maintenance

It's unclear from their issues whether support will be added, but of course we would (at Prefect) like to support 3.13 as soon as we can.

Just opening this to start a conversation - cheers!


it appears with lack of published wheels, we'd be forced to install rust ... which doesn't seem ideal (maybe adopting uv as a core dep would be some more palatable workaround? idk just thinking out loud for now)

EDIT: i think we would still need to install rust (like the example below)

zzstoatzz commented 4 hours ago

in case its helpful to anyone, this works for me (with aforementioned disclaimer)

FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim

ENV UV_SYSTEM_PYTHON=1
ENV RUSTUP_HOME=/usr/local/rustup \
    CARGO_HOME=/usr/local/cargo \
    PATH=/usr/local/cargo/bin:$PATH

RUN apt-get update && apt-get install -y \
    curl \
    gcc \
    build-essential \
    && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.75.0 -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN uv pip install prefect

CMD ["uv", "run", "prefect", "server", "start"]