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

Suggest to loosen the dependency on halo #20

Open
Agnes-U opened this issue Jul 29, 2022 · 0 comments
Open

Suggest to loosen the dependency on halo #20

Agnes-U opened this issue Jul 29, 2022 · 0 comments

Comments

@Agnes-U
Copy link

Agnes-U commented Jul 29, 2022

Hi, your project dados-pb requires "halo==0.0.23" in its dependency. After analyzing the source code, we found that the following versions of halo can also be suitable without affecting your project, i.e., halo 0.0.22, 0.0.24, 0.0.25. Therefore, we suggest to loosen the dependency on halo from "halo==0.0.23" to "halo>=0.0.22,<=0.0.25" to avoid any possible conflict for importing more packages or for downstream projects that may use dados-pb.

May I pull a request to further loosen the dependency on halo?

By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?



We also give our detailed analysis as follows for your reference:

Your project dados-pb directly uses 1 APIs from package halo.

halo.halo.Halo.__init__

Beginning from the 1 APIs above, 6 functions are then indirectly called, including 3 halo's internal APIs and 3 outsider APIs. The specific call graph is listed as follows (neglecting some repeated function occurrences).

[/Vnicius/dados-pb]
+--halo.halo.Halo.__init__
|      +--halo._utils.get_environment
|      |      +--IPython.get_ipython
|      +--halo.halo.Halo.stop
|      |      +--halo.halo.Halo.clear
|      |      +--cursor.show
|      +--IPython.get_ipython
|      +--atexit.register

We scan halo's versions and observe that during its evolution between any version from [0.0.22, 0.0.24, 0.0.25] and 0.0.23, the changing functions (diffs being listed below) have none intersection with any function or API we mentioned above (either directly or indirectly called by this project).

diff: 0.0.23(original) 0.0.22
[](no clear difference between the source codes of two versions)

diff: 0.0.23(original) 0.0.24
[](no clear difference between the source codes of two versions)

diff: 0.0.23(original) 0.0.25
[](no clear difference between the source codes of two versions)

As for other packages, the APIs of IPython, atexit and cursor are called by halo in the call graph and the dependencies on these packages also stay the same in our suggested versions, thus avoiding any outside conflict.

Therefore, we believe that it is quite safe to loose your dependency on halo from "halo==0.0.23" to "halo>=0.0.22,<=0.0.25". This will improve the applicability of dados-pb and reduce the possibility of any further dependency conflict with other projects.

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

No branches or pull requests

1 participant