glyph / automat

Self-service finite-state machines for the programmer on the go.
MIT License
583 stars 64 forks source link

switch to pyproject.toml to address setuptools_scm traceback #156

Closed glyph closed 1 month ago

glyph commented 1 month ago

I keep seeing this traceback, so I should probably add a pyproject.toml

/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/build-env-w22fakb9/lib/python3.11/site-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'readme'
  warnings.warn(msg)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
  File "/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/build-env-w22fakb9/lib/python3.11/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
    section = defn.get("tool", {})[tool_name]
              ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'