Skip to content

Update version helpers to handle pyproject.toml#71

Merged
ludeeus merged 6 commits intohome-assistant:masterfrom
cdce8p:version-parsing
May 25, 2022
Merged

Update version helpers to handle pyproject.toml#71
ludeeus merged 6 commits intohome-assistant:masterfrom
cdce8p:version-parsing

Conversation

@cdce8p
Copy link
Copy Markdown
Member

@cdce8p cdce8p commented May 24, 2022

Followup to home-assistant/core#72422 To eventually be able to move the version key from setup.cfg to pyproject.toml, the version helper actions need to be updated.

Unfortunately, tomllib will only be added in Python 3.11 so we can't rely on it and have to use tomli in the meantime. Instead of installing it every time, I chose to include the contents of the wheel directly. With PYTHONPATH, it's possible to import it just like as it would be if it is installed.

For vendoring, I went with a basic structure structure that's also used by eg. setuptools.

@cdce8p cdce8p marked this pull request as ready for review May 25, 2022 00:43
@cdce8p cdce8p marked this pull request as draft May 25, 2022 08:39
@cdce8p cdce8p marked this pull request as ready for review May 25, 2022 09:03
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
@ludeeus ludeeus merged commit 1a0060d into home-assistant:master May 25, 2022
@cdce8p cdce8p deleted the version-parsing branch May 25, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants