glyph / automat

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

switch to pyproject.toml to address setuptools_scm traceback #156

Closed glyph closed 2 months ago

glyph commented 2 months 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'