Skip to content

Bump dependencies#217

Closed
satishlokkoju wants to merge 2 commits intocriteo:masterfrom
satishlokkoju:bump-dependencies
Closed

Bump dependencies#217
satishlokkoju wants to merge 2 commits intocriteo:masterfrom
satishlokkoju:bump-dependencies

Conversation

@satishlokkoju
Copy link
Copy Markdown
Contributor

No description provided.

This change updates the `requirements.txt` and `requirements-test.txt` files to use `>=` for version constraints instead of `==`, allowing for newer package versions to be installed.

This update introduced two issues that have been addressed:

1.  A `TypeError` during JSON serialization of numpy's `float32` type. This was resolved by adding a custom `NumpyEncoder` to handle the serialization of numpy types.
2.  Tests were creating large artifact files in the project root, causing file size limit errors in the test environment. This was fixed by modifying the tests to use temporary directories for their output and adding the generated file patterns to `.gitignore`.
1. Bumps the package dependencies to allow for newer versions.
2. Upgrades the minimum supported Python version to 3.10.

The dependency update from fixed versions to minimum versions (`>=`) in `requirements.txt` and `requirements-test.txt` caused some issues that were addressed:
- A `TypeError` during JSON serialization of numpy types was fixed by introducing a custom `NumpyEncoder`.
- Tests creating large artifact files were fixed to use temporary directories, and the generated file patterns were added to `.gitignore`.

The Python version upgrade involved:
- Removing classifiers for Python versions older than 3.10 in `setup.py`.
- Removing conditional dependencies for older Python versions in `requirements.txt`.
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.

1 participant