dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
583 stars 43 forks source link

pyproject.toml: python-minifier as build-backend #42

Open nschloe opened 2 years ago

nschloe commented 2 years ago

Modern Python projects define their build requirements in pyproject.toml, e.g.,

[build-system]
requires = [
  "setuptools>=42",
  "wheel",
]
build-backend = "setuptools.build_meta"

It'd be nice addition of python-minifier could be defined as the builder, e.g.,

[build-system]
requires = [
  "setuptools>=42",
  "wheel",
  "python-minifier>=xyz",
]
build-backend = "python_minifier.build_meta"

to spit out minified package code.