sktime / pytorch-forecasting

Time series forecasting with PyTorch
https://pytorch-forecasting.readthedocs.io/
MIT License
3.87k stars 612 forks source link

[MNT] add minimal dependency management utilities #1628

Closed fkiraly closed 2 weeks ago

fkiraly commented 3 weeks ago

Adds minimal utilities for dependency management, to determine the packages installed.

This will be used later in isolation of dependencies that could be soft dependencies.

Instead of dumping the new utils in the current utils file, a new folder utils is added, in which the current utils is moved one level lower, and a _dependencies submodule is also added.

codecov-commenter commented 3 weeks ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 16.66667% with 10 lines in your changes missing coverage. Please review.

Project coverage is 90.01%. Comparing base (4df80af) to head (bb8f6a6). Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
pytorch_forecasting/utils/_dependencies.py 0.00% 10 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1628 +/- ## ========================================== - Coverage 90.19% 90.01% -0.19% ========================================== Files 30 32 +2 Lines 4724 4736 +12 ========================================== + Hits 4261 4263 +2 - Misses 463 473 +10 ``` | [Flag](https://app.codecov.io/gh/jdb78/pytorch-forecasting/pull/1628/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jan+Beitner) | Coverage Δ | | |---|---|---| | [cpu](https://app.codecov.io/gh/jdb78/pytorch-forecasting/pull/1628/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jan+Beitner) | `90.01% <16.66%> (-0.19%)` | :arrow_down: | | [pytest](https://app.codecov.io/gh/jdb78/pytorch-forecasting/pull/1628/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jan+Beitner) | `90.01% <16.66%> (-0.19%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jan+Beitner#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.