[RFC] Which module do we use to check the library version?
See original GitHub issueOptuna uses three modules to check the library versions, i.e., packaging
, pkg_resources
and distutils
. As mentioned in #1551, packaging
is not a standard library, and we need an additional dependency.
Currently, packaging
is only used for the deprecation, and maybe we can replace it with distutils
and reduce the number of dependencies.
See https://github.com/optuna/optuna/pull/1551#pullrequestreview-455262699 for further details.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
HOW TO: Check installed version and patch level of SAP RFC ...
To find out the patch level of a NW RFC library file, run the command (replace <sapnwrfc> with the platform specific file name;...
Read more >RFC 7950: The YANG 1.1 Data Modeling Language
When updating a YANG version 1 module to 1.1 and the module uses such quote characters, the string must be changed to match...
Read more >rfclint · PyPI
Usage. rfclint accepts a single XML document as input and optionally outputs a modified version of the document. The following options affect how...
Read more >RFC: Splitting the library into packages - Discuss - ProseMirror
(I could have put every node and mark type in the current default schema into its own module, for consistency, but then we're...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hvy Sounds reasonable. I created a PR #1589 to replace the other modules with
packaging
and labeled it contribution-welcome.Thank you for the throughout investigation. I agree with “introducing” either
pkg_resources
orpackaging
, but don’t have a stronger preference for either, since both seem very ubiquitous (license-wise, they also seem okay). Some argument forpackaing
could be that it’s somewhat lighter and thatsetuptools
could be overkill for this particular use case.Edit:
packaging
is by the way already required in outsetup.py
so it would require no additions.