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

👽 Replace deprecated defusedxml.lxml module usage #52

Merged

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens force-pushed the chore/replace-deprecated-defusedxml-lxml-module-usage branch from 3ed4a9b to 5de1385 Compare February 12, 2024 16:29
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (24758de) 96.01% compared to head (1e68b0f) 96.01%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files          71       72    +1     
  Lines        3212     3215    +3     
=======================================
+ Hits         3084     3087    +3     
  Misses        128      128           

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

@sergei-maertens
Copy link
Member Author

@CharString I've picked you for review since I'm not 100% certain yet that this doesn't open up any security holes 🤔

@sergei-maertens sergei-maertens force-pushed the chore/replace-deprecated-defusedxml-lxml-module-usage branch from 5de1385 to d61c56a Compare February 12, 2024 17:37
In 2024 this is no longer essential, using lxml by itself should be
sufficient.

See also the discussion on python.org:
https://discuss.python.org/t/status-of-defusedxml-and-recommendation-in-docs/34762/3
@sergei-maertens sergei-maertens force-pushed the chore/replace-deprecated-defusedxml-lxml-module-usage branch from cd01bb3 to dbc8fba Compare February 13, 2024 15:38
Copy link
Contributor

@CharString CharString left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to set the lower bound on the lxml dependency, looks fine otherwise.

setup.cfg Outdated Show resolved Hide resolved
This repeats the lower bound from maykin-python3-saml but makes it
explicit.
This should mostly be a no-op except that it effectively
purges defusedxml.lxml usage.
@sergei-maertens sergei-maertens merged commit d45b517 into master Feb 15, 2024
14 checks passed
@sergei-maertens sergei-maertens deleted the chore/replace-deprecated-defusedxml-lxml-module-usage branch February 15, 2024 15:29
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