safety 3.6.1 does not install on Python 3.14
Checklist
- [x] I agree to the terms within the Safety Code of Conduct.
Safety version
Version 3.6.1 of safety pins pydantic<2.10.0,>=2.6.0.
However, the version of pydantic that officially started supporting Python 3.14 is pydantic 2.12.0 (see https://docs.pydantic.dev/latest/changelog/#v2120-2025-10-07). I did not try whether earlier pydantic versions run fine on Python 3.14.
Therefore, safety does not currently install on Python 3.14.
Python version
Python 3.14.0 on GitHub Actions on ubuntu and macos
Operating System
GitHub Actions ubuntu-latest (24.04.3) and macos-latest (15.6.1)
Describe the problem you'd like to have solved
Support Python 3.14. Test on Python 3.14. Remove pinning of pydantic.
Describe the ideal solution
See above.
Alternatives and current workarounds
We currently have disabled safety on Python 3.14.
Additional context
No response
What I Did
See above.
I meanwhile found that safety 3.6.2 removed the pinning of pydantic.
I have tests running with it on Python 3.14, but GitHub seems to behave strangely at the moment. Will update this issue later today.
Hi @andy-maier, thank you for opening this issue!
We appreciate your effort in reporting this. Our team will review it and get back to you soon. If you have any additional details or updates, feel free to add them to this issue.
Note: If this is a serious security issue that could impact the security of Safety CLI users, please email [email protected] immediately.
Thank you for contributing to Safety CLI!
The safety install and runs with Python 3.14 (on GitHub Actions with Ubuntu, macos and WIndows) run fine.
So the only remaining ask in this issue is to add Python 3.14 to the CI tests of safety.