Conversation
f7e7c6a to
0d06619
Compare
|
Dependency resolution is failing on CI, while it works locally. I’ve tried various lower bounds combinations without success, e.g.: install_requires =
invenio-oaiserver>=2.4.0,<3.0.0
invenio-requests>=4.1.0,<5.0.0
invenio-search-ui>=2.9.0,<3.0.0
invenio-vocabularies>=3.5.0,<4.0.0
invenio-administration>=2.2.4,<3.0.0
[options.extras_require]
tests =
pytest-black-ng>=0.4.0
Faker>=2.0.3
invenio-app>=1.5.1,<2.0.0
invenio-db[postgresql,mysql]>=1.3.1,<2.0.0
pytest-invenio>=2.2.1,<3.0.0
sphinx>=4.5.0
opensearch1 =
invenio-search[opensearch1]>=2.4.1,<3.0.0
opensearch2 =
invenio-search[opensearch2]>=2.4.1,<3.0.0 |
3f87ed6 to
cf3a033
Compare
setup.cfg
Outdated
| invenio-administration>=2.0.0,<3.0.0 | ||
| invenio-oaiserver>=2.4.0,<3.0.0 | ||
| invenio-requests>=4.1.3,<5.0.0 | ||
| invenio-search-ui>=2.9.1,<3.0.0 |
There was a problem hiding this comment.
invenio-search-ui needs to be >=2.4.0, otherwise it conflicts with app-rdm
There was a problem hiding this comment.
I tried all the ways here: https://pip.pypa.io/en/latest/topics/dependency-resolution/#reduce-the-number-of-versions-pip-is-trying-to-use but it looks like Any compatible version. syntax works!
tmorrell
left a comment
There was a problem hiding this comment.
Since this is needed to fix broken v12 installs.
c91a834 to
1f7232c
Compare
setup.cfg
Outdated
| invenio-search-ui>=2.4.0,<3.0.0 | ||
| invenio-vocabularies>=3.0.0,<4.0.0 | ||
| invenio-administration>=2.0.0,<3.0.0 | ||
| invenio-administration~=2.2.4 |
There was a problem hiding this comment.
Have you tried adding invenio-records-resources>=5.10.0,<6.0.0 to that list? (something I am adding here #1294 ) It's directly used and makes sense to surface up one level.
There was a problem hiding this comment.
Are we using this maint-v2.2.x branch?
https://github.com/inveniosoftware/invenio-administration/tree/maint-v2.2.x
it's confusing to have it there along with maint-v2.x, can we safely remove it?
There was a problem hiding this comment.
reason why I am asking is when I check locally what version is been resolved its invenio-administration==2.2.4 while what we have latest on 2 is 2.11.0
could be the the resolver getting confused here? even though it should be looking for tag number when resolving.
I checked where administration is pinned in other packages but didn't find any. this is the last place to look for.
vocabularies
administration is not required here at this version, the newer tags is:
https://github.com/inveniosoftware/invenio-vocabularies/blob/v3.5.0/setup.cfg
pages:
https://github.com/inveniosoftware/invenio-pages/blob/v4.1.2/setup.cfg#L42
Users-resources
https://github.com/inveniosoftware/invenio-users-resources/blob/maint-v6.x/setup.cfg#L30
banners
https://github.com/inveniosoftware/invenio-banners/blob/v3.3.1/setup.cfg#L30
communities:
https://github.com/inveniosoftware/invenio-communities/blob/v13.1.0/setup.cfg#L34
rdm-records:
https://github.com/inveniosoftware/invenio-rdm-records/blob/v10.9.2/setup.cfg#L42
There was a problem hiding this comment.
Have you tried adding
invenio-records-resources>=5.10.0,<6.0.0to that list? (something I am adding here #1294 ) It's directly used and makes sense to surface up one level.
and it did not resolve:
The conflict is caused by:
invenio-administration 2.0.0 depends on invenio-accounts<5.0.0 and >=4.0.0
invenio-records-resources 5.11.1 depends on invenio-accounts<6.0.0 and >=5.0.0
invenio-records-resources 5.10.1 depends on invenio-accounts<6.0.0 and >=5.0.0
invenio-records-resources 5.10.0 depends on invenio-accounts<6.0.0 and >=5.0.0
There was a problem hiding this comment.
Changing to administration to ~=2.2.4 resolves.
and now it works without ~=🪄
invenio-oaiserver>=2.2.0,<3.0.0
invenio-requests>=4.0.0,<5.0.0
invenio-search-ui>=2.4.0,<3.0.0
invenio-vocabularies>=3.0.0,<4.0.0
invenio-administration>=2.0.0,<3.0.0
invenio-records-resources>=5.10.0,<6.0.0 # <-- the magic line4b62295 to
b3c6861
Compare
497e197 to
0eac447
Compare
* to fix issue: "Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently."
* suppress known deprecation warnings in logs, e.g., '_app_ctx_stack' warning in Flask—migrated to 'g' or 'app_ctx' accordingly
fenekku
left a comment
There was a problem hiding this comment.
If tests pass again LGTM
After merging this one, if any new issues arise, we’ll know exactly which PR to blame 😅 |
❤️ Thank you for your contribution!
Description
related to inveniosoftware/invenio-search-ui#215
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: