Skip to content
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

pyproject: use setuptools' automatic discovery #239

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

dtrifiro
Copy link
Contributor

By not explicitly defining packages, setuptools will automatically find all packages using the flat-layout strategy.

This also prevents the following warnings to be printed when building using python -m build:

 _Warning: Package 'caikit_nlp.toolkit' is absent from the `packages` configuration.

Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
By not explicitly defining packages, setuptools will automatically
find all packages using the flat-layout strategy.

This also fixes the following warnings when building with `python -m
build`
```
 _Warning: Package 'caikit_nlp.<snip>' is absent from the `packages` configuration.
```

Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
@dtrifiro
Copy link
Contributor Author

dtrifiro commented Oct 18, 2023

Note that the linting error is (somehow) not related to this change. __init__.py was missing in the text_generation submodule and thus pylint was not running in that directory.

The relevant fixes can be found here: #240

@dtrifiro dtrifiro mentioned this pull request Oct 18, 2023
@gkumbhat gkumbhat merged commit 3e419df into caikit:main Oct 18, 2023
3 of 4 checks passed
@dtrifiro dtrifiro deleted the fix-setuptools-find branch October 18, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants