【.NET 10】C#がスクリプト言語になった? `dotnet run script.cs` で NuGet パッケージごと即実行できる新機能を試してみた
https://qiita.com/syaryn/items/334edee6b2c2811a99b2?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
【.NET 10】C#がスクリプト言語になった? `dotnet run script.cs` で NuGet パッケージごと即実行できる新機能を試してみた
https://qiita.com/syaryn/items/334edee6b2c2811a99b2?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
- https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment/
Sharing single-file Python scripts with external dependencies is now easy thanks to uv and PEP 723, which enable embedding dependency metadata directly within scripts. This approach eliminates the need for complex setup tools like requirements.txt or package managers, making script distribution and execution seamless and simplifying deployment while maintaining flexibility and efficiency.
Using uv and PEP 723 for Self-Contained Python Scripts
https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment/
#HackerNews #PythonScripts #UV #PEP723 #EasyDeployment #CodingTips
@ofek Hello and welcome to Mastodon!
#Python people: give @ofek a follow, he's the author of the #Hatch project manager and the #Hatchling build backend, plus cool tools like https://github.com/ofek/pypinfo, and wrote #PEP723 "Inline script metadata"!
I need to check how https://astral.sh/blog/uv-unified-python-packaging works with https://pypi.org/project/django-unicorn-playground/ now. When I tried it a month or so ago I ran into some snags, but maybe the issues have been smoothed over at this point.
El PEP-723 ha sido aceptado. Con este PEP se permite añadir a los scripts de python información sobre el entorno de ejecución que, hasta ahora, había que especificar externamente con un fichero pyproject.toml o similar.
Este modo de integrar dependencias en un único fichero de script sigue la tendencia de algunos otros lenguajes. La más notable serían las "directivas" de scala, con las que se puede controlar no sólo las dependencias, sino también las versiones de la máquina virtual jvm, las implementaciones del lenguaje, el testing y el building final.
A natural highlight in October 2023 is the release of Python 3.12. However, the community doesn't rest, and nominations for a new Python Steering Council are underway, while a Documentation Editorial Board and a Typing Council are about to be established.