Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

Chore(deps): Remove IPToCC and numpy from base requirements #1161

Closed drikusroor closed 6 days ago

drikusroor commented 1 week ago

The commit removes the IPToCC package from the base requirements file. This package was used to get the country code from an IP address, but it is no longer needed and caused 15m Docker image build times due to its dependency on the pandas library, which had to be rebuilt every time.

Additionally, it also removes numpy as a dependency as there were only 4 lines of code in 2 files that were using it and which were very easy to replace with the already built-in python library of random. NB: you can't see numpy removed from base.txt as it was a dependency of IPToCC too.