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

Bump mail-parser from 3.15.0 to 4.1.2 #5801

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 18, 2024

Bumps mail-parser from 3.15.0 to 4.1.2.

Also, two changes were needed to make this upgrade work (notes from @oliverjwroberts):

  • After bumping mail-parser to 4.1.2, mailparser.parse_from_file().date was returning a timezone aware date, whereas previously it was not. This was causing django.utils.timezone.make_aware() to raise an error. A ternary was added so that only naive datetime objects were passed to the make_aware() method.
  • Upon removing the simplejson package and falling back to the built-in json library, it was found there were differences in the serialization of decimal numbers. This was causing the test_gross_value_added_filters test to fail when asserting the response of a project with max gross value added (99,999,989,999,999,999,990.000001). Rather than re-configuring the JSON encoder that Django uses or refactoring the tests, which are both longer-term pieces of work, it was decided to keep the simplejson package and explicitly list it in the requirements.txt file.
Release notes

Sourced from mail-parser's releases.

4.1.2

What's Changed

  • Bugfix GitHub pipeline

Full Changelog: SpamScope/mail-parser@4.1.1...4.1.2

4.1.1

What's Changed

  • Added build pipeline for tags. Automatic upload on PyPi

Full Changelog: SpamScope/mail-parser@4.1.0...4.1.1

4.1.0

What's Changed

Full Changelog: SpamScope/mail-parser@4.0.0...4.1.0

4.0.0

What's Changed

New Contributors

Full Changelog: SpamScope/mail-parser@v3.15.0...4.0.0

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a November 18, 2024 00:47
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 18, 2024
@aadam-ali aadam-ali force-pushed the dependabot/pip/mail-parser-4.1.2 branch from 68a35f9 to e630027 Compare November 20, 2024 15:45
@dependabot dependabot bot force-pushed the dependabot/pip/mail-parser-4.1.2 branch from e630027 to 2f445ec Compare December 2, 2024 01:09
Bumps [mail-parser](https://github.com/SpamScope/mail-parser) from 3.15.0 to 4.1.2.
- [Release notes](https://github.com/SpamScope/mail-parser/releases)
- [Commits](SpamScope/mail-parser@v3.15.0...4.1.2)

---
updated-dependencies:
- dependency-name: mail-parser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@oliverjwroberts oliverjwroberts force-pushed the dependabot/pip/mail-parser-4.1.2 branch from 2f445ec to f1cab43 Compare December 4, 2024 07:55
After bumping `mail-parser` to 4.1.2, `mailparser.parse_from_file().date` was returning a timezone aware date, whereas previously it was not. This was causing `django.utils.timezone.make_aware()` to raise an error.
@oliverjwroberts oliverjwroberts force-pushed the dependabot/pip/mail-parser-4.1.2 branch 2 times, most recently from 00fd274 to 970602f Compare December 4, 2024 14:40
Upon removing the `simplejson` package and falling back to the built-in `json` library, it was found there were differences in the serialization of decimal numbers. This was causing the `test_gross_value_added_filters` test to fail when asserting the response of a project with max gross value added (99,999,989,999,999,999,990.000001).

Rather than spending time re-configuring the JSON encoder that Django uses, it was decided to keep the `simplejson` package and explicitly list it in the `requirements.txt` file.
@oliverjwroberts oliverjwroberts force-pushed the dependabot/pip/mail-parser-4.1.2 branch from 970602f to a140ca6 Compare December 4, 2024 14:45
@oliverjwroberts oliverjwroberts self-assigned this Dec 4, 2024
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.50%. Comparing base (2e7f888) to head (a140ca6).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5801      +/-   ##
==========================================
- Coverage   96.50%   96.50%   -0.01%     
==========================================
  Files        1042     1042              
  Lines       24754    24755       +1     
  Branches     1645     1645              
==========================================
  Hits        23889    23889              
- Misses        709      710       +1     
  Partials      156      156              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oliverjwroberts oliverjwroberts merged commit dfc6a54 into main Dec 4, 2024
7 checks passed
@oliverjwroberts oliverjwroberts deleted the dependabot/pip/mail-parser-4.1.2 branch December 4, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants