Skip to content

Releases: 15r10nk/pysource-codegen

v0.6.0

09 Oct 06:47
Compare
Choose a tag to compare

What's Changed

Feat

  • more variation in string constants
  • start to support 3.13

Fix

  • fixed typing
  • correct probability spelling
  • { and } are not allowed in formatspec, because they can not be escaped
  • asynchronous comprehension in TypeVar.bound
  • asynchronous comprehension outside of an asynchronous function
  • no async code in type annotations
  • the same varibale can be declared global multiple times
  • Starred expression inside ClassDef.bases
  • named expression cannot be used within a TypeVar bound
  • no async generators in type aliases
  • allow await in generator expressions
  • dict comprehension is a valid base class
  • named expression is a valid base class
  • allow SetComp in type-scope
  • lambda is valid inside annotations
  • made generator expressions valid inside class bases and type annotations
  • allow ListComp in type-scope
  • named-expressions inside list-comprehensions use the outside scope
  • restrict match value patterns
  • variable can not be nonlocal if it is declared global in the parent scope
  • count MatchStar variables as none usable global names
  • non default type params before type params with default values

Full Changelog: v0.5.2...v0.6.0

v0.5.2

23 Apr 19:45
Compare
Choose a tag to compare

What's Changed

  • Explicitly re-export generate() in __init__.py @AlexWaygood

Full Changelog: v0.5.1...v0.5.2

v0.5.1

23 Jan 11:52
4448e41
Compare
Choose a tag to compare

This version hopefully fixes last bugs where pysource-codegen generated code with syntax errors🤞.
The next goal is to make sure that pysource-codegen can generate 100% of all possible valid Python syntaxes.
Many thanks to all my sponsors for their support

@nathanjmcdougall
@pawamoy
@alexmojaki

Full Changelog: v0.5.0...v0.5.1

v0.5.0

29 Nov 18:30
Compare
Choose a tag to compare

What's Changed

This version contains many bug fixes and improvements. I have developed a good testing strategy and pysource-codegen is well on its way to becoming a code generator that can generate any Python code.

Full Changelog: v0.4.3...v0.5.0

v0.4.3

12 Nov 21:50
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.2...v0.4.3

v0.4.2

07 Oct 11:23
7d23df5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.1...v0.4.2

v0.4.1

01 Oct 11:36
Compare
Choose a tag to compare

reverted a refactoring which produced invalid global and nonlocal statements.

Full Changelog: v0.4.0...v0.4.1

v0.4.0

01 Oct 09:19
Compare
Choose a tag to compare

pysource-codegen can now generate random python 3.12 source-code

What's Changed

Full Changelog: v0.3.0...v0.4.0