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

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

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

drikusroor
Copy link
Contributor

@drikusroor drikusroor commented Jun 27, 2024

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.

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
@drikusroor drikusroor self-assigned this Jun 27, 2024
This was an indirect dependency of iptocc and got removed when iptocc was removed from the pythonic requirements.
The code changes replace the `numpy` import with the `random` module in the `speech2song.py` and `practice.py` files. This change improves performance and removes the need for the `numpy` dependency.
@drikusroor drikusroor changed the title Chore(deps): Remove IPToCC from base requirements Chore(deps): Remove IPToCC and numpy from base requirements Jun 27, 2024
@drikusroor drikusroor merged commit 4274613 into develop Jun 28, 2024
10 checks passed
@drikusroor drikusroor deleted the poc/remove-iptocc-pandas branch June 28, 2024 09:19
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

Successfully merging this pull request may close these issues.

2 participants