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

chore: update requirements for maple version #215

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

MaferMazu
Copy link
Contributor

@MaferMazu MaferMazu commented Sep 2, 2022

Description

This PR updates the dependencies basically by adding in the base.in:

  • openedx-events==0.6.0
  • django<3.3
  • click<8.0.0

And organized the constraints in base, test and peer dependency.

To avoid problems with updating packages, some constraints were also added.

Note: to run this I did it with the platform version of pip-tools==6.4.0 and pip < 22 (Issue with pip, pip>22 support is given in another release(6.6.0)).

Testing instructions

When installing the plugin on a platform Maple has openedx-events in the version of the platform.

Other information

The criterion I used to know whether to add the constraint or not was that when doing the make upgrade the requirement changed more than the patch version. If the package updated minor or major, I restricted it to what directly comes out on the platform (this with the justification that some packages do not version well and breaking changes are made in minor); this way we make sure that the requirements are as in the platform.

This time I had to restrict a lot because maple was out a long time ago and the packages have been updated, but I would expect this not to happen often.

django, click an celery
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/constraints.txt

openedx-events==0.6.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L686

asgiref==3.4.1
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L47

certifi==2021.10.8
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L103

charset-normalizer==2.0.7
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L115

cryptography==35.0.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L141

django-simple-history==3.0.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L327

django-webpack-loader==0.7.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L353

drf-yasg==1.20.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L385

xblock==1.5.1
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L1037

lxml==4.5.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L603

stevedore==3.4.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L964

pycryptodomex==3.11.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L735

pytz==2021.3
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L816

semantic-version==2.8.5
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L894

attrs==21.2.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/base.txt#L51

pip-tools==6.4.0
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/pip-tools.txt#L13

virtualenv==20.8.1
https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/testing.txt#L1362

Checklist for Merge

  • Tested in a remote environment (NA)
  • Updated documentation (NA)
  • Rebased master/main
  • Squashed commits

@MaferMazu
Copy link
Contributor Author

@Alec4r the PR is failing because chore is not within what is allowed by the commit lint; what do you recommend to me?

Commit lint allow: [build, ci, docs, feat, fix, perf, refactor, revert, style, test]

danielsgz
danielsgz previously approved these changes Sep 2, 2022
dcoa
dcoa previously approved these changes Sep 2, 2022
Copy link
Contributor

@dcoa dcoa left a comment

Choose a reason for hiding this comment

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

We tested it and install openedx-events :)

* Added:
openedx-events==0.6.0
django<3.3
click<8.0.0
In base.in

* Organize and set constraints as in the platform
@JuanDavidBuitrago JuanDavidBuitrago merged commit 181e392 into master Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants