social-core icon indicating copy to clipboard operation
social-core copied to clipboard

Why is lxml restricted to specific versions?

Open tkdchen opened this issue 4 years ago • 3 comments

lxml is restricted to <4.7 in commit 5378daae957ed1d4912d1d520f3ec0d6c1c33c9e, which tells "Pin lxml dependency to fix unstable CI test runs". I don't find out any usage of lxml in the source code. Looks like this change is for the lxml version issue required by python3-saml in the CI. If it's true, can we move the change to the CI inside .github/ rather than requirements-saml.txt? Please correct me if I misunderstand. Thanks.

tkdchen avatar Jan 30 '22 04:01 tkdchen

Because of https://github.com/onelogin/python3-saml/issues/292

nijel avatar Jan 30 '22 06:01 nijel

@nijel IIUC, lxml<4.7 is also required for social-core at runtime if that issue is not fixed in python3-saml, do I?

tkdchen avatar Jan 30 '22 07:01 tkdchen

The issue in python3-saml escalated meanwhile - current versin requires 4.7.0 which is yanked (https://github.com/onelogin/python3-saml/pull/297). Let's wait for them to deal with this mess first.

nijel avatar Jan 31 '22 15:01 nijel

Heads up, it looks like python3-saml has been deprecated: https://github.com/onelogin/python3-saml/issues/320

shanemcd avatar Nov 29 '22 15:11 shanemcd

Switching to https://github.com/IdentityPython/pysaml2 might be an option, help with that is definitely welcome.

nijel avatar Dec 06 '22 09:12 nijel

Hi, python3-saml has released a new version that changed the required lxml version(s): https://github.com/SAML-Toolkits/python3-saml/blob/master/setup.py#L36 - would this allow social-core to declare the same versions in https://github.com/python-social-auth/social-core/blob/master/requirements-saml.txt#L2 (or use > 4.7.0)?

duck-nukem avatar Jan 03 '23 16:01 duck-nukem

I don't think social-core needs any additional restriction. It was added to avoid test breakage in https://github.com/python-social-auth/social-core/commit/5378daae957ed1d4912d1d520f3ec0d6c1c33c9e. Now it's probably time to completely remove that.

nijel avatar Jan 04 '23 10:01 nijel

I created a PR with some changes that I thought are sensible - however when I tried to run tests locally using docker-compose run --rm social-tests it seems to run indefinitely with no real progress being made.

duck-nukem avatar Jan 04 '23 11:01 duck-nukem