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

Requirements April 2024 #8146

Merged
merged 9 commits into from
Apr 25, 2024
Merged

Requirements April 2024 #8146

merged 9 commits into from
Apr 25, 2024

Conversation

amercader
Copy link
Member

@amercader amercader commented Apr 3, 2024

Some failures, which is to be expected. A quick glance seems to suggest three areas to fix:

  • Queue related tests (rq or redis? pytest) -> Setup methods in tests
  • Test classes properties (eg AttributeError: 'TestPackageMemberCreateAuth' object has no attribute 'dataset') - Probably a pytest change -> Setup methods in tests
  • Building the docs -> Changes in version parsing (1352674)

@amercader amercader changed the title Requirements april 2024 Requirements April 2024 Apr 3, 2024
Moved the cleanup code to a fixture
Remove completely our own version parsing and rely on the one from
packaging. Older versions of packaging used to be more lenient with our
release tags ("ckan-x.y.z") but now they will fail. We need to remove
the `ckan-` bit before parsing.
@amercader amercader marked this pull request as ready for review April 5, 2024 12:08
@amercader amercader mentioned this pull request Apr 8, 2024
4 tasks
# via mypy
nose==1.3.7
# via pyutilib
packaging==21.3
# via redis
Copy link
Member

Choose a reason for hiding this comment

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

This package is still required by sphinx in form packaging>=21.0
Any new CKAN setup(inside test containers) will get the latest packaging version - v24. But all existing instances will continue to use previously pinned v21.3(unless you install dev-requirements with eager update strategy)

v21 of packaging had LegacyVersion class(it was removed in v22) and it will cause a type error because you removed if not isinstance(version, Version): check from app_globals.

Let's add packaging>=22 or ==24 to dev-requirements to be sure that no LegacyVersion appears in code

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, we are using packaging in app_globals, cli and the toolkit so it should be a first level requirement in requirements.in, right? Otherwise we'll rely on people installing dev-requirements.txt, which should not be necessary. I'll add it.

@amercader amercader added this to the CKAN 2.11 milestone Apr 23, 2024
@amercader
Copy link
Member Author

Typing error unrelated, see #8196 (comment)

@smotornyuk smotornyuk merged commit c2b4d70 into master Apr 25, 2024
6 of 8 checks passed
@smotornyuk smotornyuk deleted the requirements-april-2024 branch April 25, 2024 12:12
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.

None yet

2 participants