liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.46k stars 223 forks source link

pyproject.toml: pyminifier as build-backend #133

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 pyminifier could be defined as the builder, e.g.,

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

to spit out a minified package code.