-
Notifications
You must be signed in to change notification settings - Fork 904
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
Migrate most project metadata to static pyproject.toml
#2475
Conversation
I'd suggest adding @SajidAlamQB and @AhdraMeraliQB as reviewers, because they're leading the complete Move to |
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 great! And really nice way of checking it all worked as expected using diff
👍
# get package version | ||
with open(path.join(here, name, "__init__.py"), encoding="utf-8") as f: | ||
result = re.search(r'__version__ = ["\']([^"\']+)', f.read()) | ||
|
||
if not result: | ||
raise ValueError("Can't find the version in kedro/__init__.py") | ||
|
||
version = result.group(1) | ||
|
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.
So pleased to see the back of this 😀
[tool.setuptools.dynamic] | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
version = {attr = "kedro.__version__"} | ||
dependencies = {file = "dependency/requirements.txt"} |
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.
@astrojuanlu How does pyproject.toml
handle the tests' requirements?
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.
Test requirements don't exist anymore, they're replaced by the optional-dependencies
(extras_requires
in setuptools)
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.
Thanks for taking this on! 🌟
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
See gh-2152. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
5b798ff
to
2890254
Compare
) * Remove deprecated tests_require Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com> * Migrate most project metadata to static pyproject.toml See kedro-orggh-2152. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com> * Replace direct setup.py invokations by standard command Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com> --------- Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com> Signed-off-by: MaximeSteinmetz <maxime.steinmetz@gadz.org>
Description
Address most of gh-2152, serve as a starting point for further efforts.
Development notes
Notice that https://github.com/asottile/setup-py-upgrade failed miserably, so I had to migrate everything manually. I followed these documentation pages:
Difference in
RECORD
(files included in the wheel):differences in
METADATA
:So, I'm quite confident that this is correct.
Checklist
RELEASE.md
file