-
Notifications
You must be signed in to change notification settings - Fork 101
chore(all): PEP 639 compliance #2089
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
b7a7aa8 to
7b0108a
Compare
|
The main reason we did it this way using hatch trigger, was because the build badly integrates the shared files in the build artifacts (in this case, the shared We need to check if your change properly integrates the said files into the build artifacts. |
The properties |
|
With your PR, $ python -m build --sdist && tar -tvf dist/skore*.tar.gz | less +G
[...]
-rw-r--r-- 0/0 1069 2020-02-02 01:00 skore-0.0.0+unknown/../LICENSE
-rw-r--r-- 0/0 5746 2020-02-02 01:00 skore-0.0.0+unknown/../README.md$ python -m build --wheel && unzip -l dist/skore*.whl | less +G
[...]
1069 2020-02-02 00:00 skore-0.0.0+unknown.dist-info/licenses/../LICENSEwhich will lead to errors when installing the sdist: Also for the wheel, i don't think the |
Why do you need to generate these properties in the the hatch hooks? |
|
I guess this could be a bug of the hatch implementation of PEP 639. Whatever the values of I'll compare with setuptools and flint, and create a hatch issue if they behave differently. I'll check PEP 639 as well, although I doubt it gets into such details. |
|
From Add
So I guess there is no way to point to files outside the directory containing |
Update licensing metadata as described in PEP 639.
7b0108a to
bc104a1
Compare
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.
Please use cp instead of read/open/write to feed licence-files.
Please commit this change without force-pushing. This will make the diff easier to review. |
Co-authored-by: Thomas S. <[email protected]>
f0b6f6c to
5a0b241
Compare
|
Finally, should the classifiers from Lines 11 to 28 in 2eefa98
More generally, how about striving to make the |
|
This is not necessary, because the only visible/searchable package we want is |
Coverage Report for |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| File | Stmts | Miss | Cover | Missing |
|---|---|---|---|---|
| skore-hub-project/src/skore_hub_project | ||||
| __init__.py | 22 | 1 | 95% | 39 |
| protocol.py | 31 | 0 | 100% | |
| skore-hub-project/src/skore_hub_project/artifact | ||||
| __init__.py | 0 | 0 | 100% | |
| artifact.py | 23 | 0 | 100% | |
| serializer.py | 26 | 0 | 100% | |
| upload.py | 36 | 4 | 88% | 175, 177–178, 180 |
| skore-hub-project/src/skore_hub_project/artifact/media | ||||
| __init__.py | 5 | 0 | 100% | |
| data.py | 22 | 0 | 100% | |
| feature_importance.py | 44 | 1 | 97% | 50 |
| media.py | 10 | 0 | 100% | |
| model.py | 9 | 0 | 100% | |
| performance.py | 44 | 0 | 100% | |
| skore-hub-project/src/skore_hub_project/artifact/pickle | ||||
| __init__.py | 2 | 0 | 100% | |
| pickle.py | 24 | 0 | 100% | |
| skore-hub-project/src/skore_hub_project/authentication | ||||
| __init__.py | 0 | 0 | 100% | |
| login.py | 66 | 0 | 100% | |
| logout.py | 4 | 0 | 100% | |
| token.py | 24 | 0 | 100% | |
| uri.py | 18 | 0 | 100% | |
| skore-hub-project/src/skore_hub_project/client | ||||
| __init__.py | 0 | 0 | 100% | |
| client.py | 60 | 0 | 100% | |
| skore-hub-project/src/skore_hub_project/metric | ||||
| __init__.py | 10 | 0 | 100% | |
| accuracy.py | 35 | 0 | 100% | |
| brier_score.py | 35 | 0 | 100% | |
| log_loss.py | 35 | 0 | 100% | |
| metric.py | 49 | 1 | 97% | 25 |
| precision.py | 61 | 0 | 100% | |
| r2.py | 35 | 0 | 100% | |
| recall.py | 63 | 0 | 100% | |
| rmse.py | 35 | 0 | 100% | |
| roc_auc.py | 35 | 0 | 100% | |
| timing.py | 90 | 4 | 95% | 52–53, 115–116 |
| skore-hub-project/src/skore_hub_project/project | ||||
| __init__.py | 0 | 0 | 100% | |
| project.py | 102 | 3 | 97% | 204, 308, 338 |
| skore-hub-project/src/skore_hub_project/report | ||||
| __init__.py | 3 | 0 | 100% | |
| cross_validation_report.py | 64 | 1 | 98% | 204 |
| estimator_report.py | 12 | 0 | 100% | |
| report.py | 52 | 0 | 100% | |
| TOTAL | 1186 | 15 | 98% | |
| Tests | Skipped | Failures | Errors | Time |
|---|---|---|---|---|
| 139 | 0 💤 | 0 ❌ | 0 🔥 | 1m 16s ⏱️ |
Coverage Report for |
|||||||||||||||||||||||||||||||||||||||||||||
| File | Stmts | Miss | Cover | Missing |
|---|---|---|---|---|
| skore-local-project/src/skore_local_project | ||||
| __init__.py | 5 | 0 | 100% | |
| metadata.py | 87 | 4 | 95% | 26, 38, 150–151 |
| project.py | 102 | 1 | 99% | 244 |
| storage.py | 40 | 2 | 95% | 45, 187 |
| TOTAL | 234 | 7 | 97% | |
| Tests | Skipped | Failures | Errors | Time |
|---|---|---|---|---|
| 24 | 0 💤 | 0 ❌ | 0 🔥 | 5.747s ⏱️ |
Makes sense, I would nevertheless suggest:
|
Co-authored-by: Thomas S. <[email protected]>
thomass-dev
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.
Fine. Thank you for fixing this deprecation.
In all packages metadata, change
licence(deprecated in PEP 639) tolicence-files.