Module pluginconf.flit

Hijacks flit to use pluginconf sources. (It's a hack, but builds work.)

pyproject.toml foobar/__init__.py
[build-system]
requires = ["pluginconf", "flit"]
build-backend = "pluginconf.flit"

[project]
name = "foobar"
dynamic = ["*"]
# title: foobar
# description: package summary
# version: 2.5.0
# depends: python:requests >= 2.25
# license: MITL
# classifiers: backend, text
# url: http;//example.org

Can be invoked per flit-pluginconf build or python -m build.

flit - can't believe it's not setup.py!!

Functions

def make_metadata(module, ini_info)

@inject different sourcing order to apply plugin meta fields

def pmd_update(pmd, ini)

enjoin PMD fields with flit.common.MetaData

def read_flit_config(path)

@inject patch_flit_config() with forced dynamic fields