-
Notifications
You must be signed in to change notification settings - Fork 76
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
Remove constraint on packages #1160
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @maukoquiroga for this exciting proposal!
- It relies on the fact that the two templates do not have any dependency that would not be provided by the Core. At this stage (and for the foreseeable future), this is the case: they both only depend on Core. However, this should be documented at least in a comment.
- The current README install procedure for development mode suggests
pip install --editable .[dev] --use-deprecated=legacy-resolver
. If I understand correctly, one would now need to usemake install
(which is consistent with Consolidate build workflow #1040), so this should be updated. A workaround would be to make sure thatmake test
installs these test dependencies. - We lose the versioning of templates in testing, which means that builds are not reproducible: they might pass or fail one day and yield a different result with a different Template version. This is a regression, but I find it an acceptable cost considering that this is an edge case because of the slow change pace of Template.
- Can you please confirm that this solves Simplify testing of new major versions #1158, and link it appropriately if that's the case? 🙂
Correct. This can either be documented in a comment, or by creating a lock file in the packages (I'm doing that now).
Yes, do don't use the legacy resolver anymore 🥳 I'll update the README.
That is fixable with a bit of tooling, but we can leave that for a next pull request. However, for now, I think it is an acceptable cost.
|
Only partially. There are at least two more pull requests required, one in country, and one in extension, to confirm all works as expected. |
UPDATE: yes, it actually fixes the aforesaid issue. |
8b736f9
to
44b2dc2
Compare
44b2dc2
to
5a248d1
Compare
5a248d1
to
a6244ae
Compare
a6244ae
to
8e1507e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why we remove installing and upgrading pip
and twine
from the build
step, and believe this could lead to errors when pip
is too old on the host. However, I will approve this PR to unblock it, on the grounds that CI already tested this to work. I would still appreciate an explanation on the reasoning behind removing these upgrades, which I consider a rider.
Thanks @MattiSG |
They are still being run. Yet, as the installation of dependencies was split, without this change they would have been installed twice instead of just once. |
For reference, installing of |
Fixes #1158
New Features