-
Notifications
You must be signed in to change notification settings - Fork 6
Migrate build to pyproject.toml #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| *.cover | ||
| .hypothesis/ | ||
| .pytest_cache/ | ||
| prof/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor personal annoyance.
| try: | ||
| from typing import TypeAlias # Python 3.10+ | ||
| except ImportError: # pragma nocover | ||
| from typing_extensions import TypeAlias # Python 3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only residual bit of dependency from the python-dependent subclassing. Removable with 3.10.
| # D107: __init__ is self explanatory | ||
| # D301: backslash is used in making docstrings for sphinx to parse | ||
| # D401: Imperative mood requirement basically gets in the way | ||
| ignore = D100,D104,D105,D107,D301,D401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flake8 can't pull configuration from pyproject.toml, so it remains here.
|
|
||
| [run] | ||
| omit = gemd/demo/* | ||
| omit = gemd/demo/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed in a follow up. It's required to pass tests common-gh-actions no longer references tox.ini.
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = "gemd.__version__.__version__"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah, this is a small but awesome little feature!
anoto-moniz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I'll use this as a model for CP in the near future.
GEMD Python PR
Description
This PR migrates the gemd-python repository to take advantage of newer build capabilities and makes it compatible with the uv build tool & venv.
PR Type:
Adherence to team decisions