StratosphereLinuxIPS icon indicating copy to clipboard operation
StratosphereLinuxIPS copied to clipboard

Using Python Poetry for packaging and track the state of dependencies

Open tahifahimi opened this issue 1 year ago • 3 comments

Please Describe The Feature You Want (Right now, Slips has problems tracking dependencies and installing on different OS because of inconsistencies in dependencies like #243 )

(Optional): Suggest A Solution One of the solutions is to use Python poetry, which makes it easier to control the versions of different dependencies. Also, it has simple packaging and publishing options (I am not sure if publishing Slips as a package is a good idea or not)

tahifahimi avatar Mar 14 '24 02:03 tahifahimi

Thanks for the suggestion @tahifahimi. I never used poetry before, but have know this is an issue to solve. However I'm not sure if poetry will be better than pip or conda or pipx for example. So what specially about that that makes it unique?

eldraco avatar Mar 14 '24 12:03 eldraco

I tried installing Slips with pip on Mac OS (Python 3.9) and Ubuntu 22.4 (Python 3.10) with pip, and in both cases, I had issues resolving dependencies. I know that both pip and pipx do not have a clear dependency resolution, but I am not sure about conda. Poetry ensures that a project runs consistently across different operating systems.

tahifahimi avatar Mar 14 '24 18:03 tahifahimi

ok, @tahifahimi show us how this would work. We didn't tried poetry before. So make it work and shows us. If it can manage the packages, dependencies and virtual environments in macos and linux (not sure win?) then it can maybe solve many issues. Lets try!

eldraco avatar Mar 19 '24 13:03 eldraco