v1.0.22
What's Changed
This release has a new method for making it easier to distribute .NET packages which use a Python component by fetching Python for you, removing the need to install Python (or specify where it is).
You can replace all FromXXX()
locators with a single FromRedistributable()
and it will download Python 3.12, put it into %APP_DATA%/CSnakes and use that for all of the integration.
https://tonybaloney.github.io/CSnakes/reference/#redistributable-locator
In future, we will allow overriding the major Python version (to say, 3.13)
Major Improvements
- Add a new Locator that downloads and installs Python for you by @tonybaloney in #323
- Allow support for Conda environments being a different version of Python than Conda by @tonybaloney in #321
- Generate doc summaries with references to Python function by @atifaziz in #293
Bug Fixes
- Improved handling of name generation with single-character segments by @jozefhornik in #320
Other Changes
- Use
ReadOnlySpan
where writing isn't needed by @atifaziz in #282 - Enable F5 debugging of source generator in Visual Studio by @atifaziz in #281
- Make generated code pretty to read (and write) by @atifaziz in #280
- Optimise generator iterator type instantiation by @atifaziz in #285
- Set variance of
IGeneratorIterator<,,>
type parameters by @atifaziz in #286 - Get error cause once by @atifaziz in #287
- Complete generator support for return value by @atifaziz in #288
- Use
System.Threading.Lock
on .NET 9. by @AaronRobinsonMSFT in #289 - Target .NET 9 if SDK is available by @atifaziz in #294
- Add missing reference to Superpower in test project by @atifaziz in #297
- Rename tokenizers that are actually parsers by @atifaziz in #298
- Avoid temp compilation artefacts during source generator tests by @atifaziz in #300
- Update the Aspire demo to .net 9 and the new aspire releases by @tonybaloney in #312
- Update samples/simple references by @emmanuel-ferdman in #316
New Contributors
- @emmanuel-ferdman made their first contribution in #316
- @jozefhornik made their first contribution in #320
Full Changelog: v1.0.21...v1.0.22