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

Bump edx-organizations version to 0.4.0 #11559

Merged
merged 1 commit into from
Feb 22, 2016
Merged

Conversation

rlucioni
Copy link
Contributor

Also install djangorestframework-oauth from PyPI. Requires openedx/edx-organizations#25.

@jimabramson or @clintonb please review.

@@ -35,9 +35,10 @@ git+https://github.com/edx/django-rest-framework.git@3c72cb5ee5baebc432894737119
django==1.8.9
djangorestframework-jwt==1.7.2
edx-django-oauth2-provider==0.5.0
edx-djangorestframework-oauth==1.0.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we find a way to get rid of this fork? We specify edx-django-oauth2-provider immediately above. If we were to use djangorestframework-oauth and move edx-django-oauth2-provider afterward, would this resolve the issue? Is there a way to have pip override the dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would also like to get rid of this fork. Shadowing django-oauth2-provider by installing edx-django-oauth2-provider after djangorestframework-oauth would resolve the issue, but it seems brittle to me. Would a comment about the install order suffice? I haven't found a clean, explicit way to have pip override the dependency.

Changes to the edx-djangorestframework-oauth fork were introduced in edx/django-rest-framework-oauth#1 during the DRF upgrade. @macdiesel any chance you have something to add here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Adding a comment, and adjusting the order seems a better approach than having our own fork.

Copy link
Contributor

Choose a reason for hiding this comment

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

The only thing the edx fork of djangorestframework-oauth is doing is modifying the requirements and setup.py. The project has an open PR to remove the django-oauth2-provider requirements from the runtime environment: https://github.com/jpadilla/django-rest-framework-oauth/pull/8/files.

I would be cool with dumping this fork if we could get that PR pushed upstream to remove that dependency. I agree with you @rlucioni having to order these dependencies and shadow install the correct versions is brittle and I would prefer we do not adopt this habit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @macdiesel. I'll see what I can do to get the dependencies removed from the upstream project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

jpadilla/django-rest-framework-oauth#12 was merged! I'll update this PR so that we use the upstream version of the package.

@clintonb
Copy link
Contributor

👍

@rlucioni rlucioni force-pushed the renzo/update-organizations branch from 9fa7fb5 to 2423ad4 Compare February 19, 2016 15:24
@macdiesel
Copy link
Contributor

👍

@rlucioni
Copy link
Contributor Author

@nedbat and @maxrothman, this PR uninstalls a package formerly installed as editable. Based on what we learned in https://github.com/edx/edx-platform/pull/11432, it sounds like this will require building an AMI from scratch. I'm tagging the two of you now to make you aware of this before the 2/29 release you'll be managing together. Please let me know if you have any questions.

@maxrothman
Copy link
Contributor

@rlucioni why'd you ping me specifically? I think anyone in @edx/devops should be able to review.

@rlucioni
Copy link
Contributor Author

@maxrothman because you're listed as being on-call for the 2/29 release and I didn't want to blast everyone with an email.

@maxrothman
Copy link
Contributor

So you plan on deploying this the week after next?

@rlucioni
Copy link
Contributor Author

@maxrothman yes; next week's release has already been cut.

@maxrothman
Copy link
Contributor

Great, thanks for the heads up. Let's communicate more about this towards the end of next week.

@rlucioni rlucioni force-pushed the renzo/update-organizations branch from 2423ad4 to b4e882b Compare February 22, 2016 15:51
Also install djangorestframework-oauth 1.1.0 from PyPI
@rlucioni rlucioni force-pushed the renzo/update-organizations branch from b4e882b to 79a4d6c Compare February 22, 2016 20:19
rlucioni pushed a commit that referenced this pull request Feb 22, 2016
Bump edx-organizations version to 0.4.0
@rlucioni rlucioni merged commit 5094fec into master Feb 22, 2016
@rlucioni rlucioni deleted the renzo/update-organizations branch February 22, 2016 23:08
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.

5 participants