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

Update django-friends to be compatible with django 2.0 #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

flowerncsu
Copy link

Updates to make django-friends compatible with Django 2.0.

I'm not sure why the changes to the readme are indicated as being part of this; I don't believe I made those changes. I'm happy to re-submit with the readme changes pulled out if that's preferred.

@KatherineMichel
Copy link
Member

It looks like you began working on this branch before you submitted some updates via your documentation branch. It looks like this branch is not up to date with those changes.

@flowerncsu
Copy link
Author

The docs conflict is resolved. Travis failed initially because of a few things that were legitimate issues (which I fixed) but also because I created a migration file, which doesn't adhere to PEP 8. I updated the travis spec to exclude migrations from the style check, because my preference is always to have the migrations in libraries, so that the user doesn't have to use makemigrations before using the library (ie, I try to be consistent with the django libraries themselves. auth, for example, has its migrations pre-created). If you prefer to not have migrations pre-created, that can be changed, of course.

@KatherineMichel
Copy link
Member

@flowerncsu Thank you for working on this! We've actually begun to convert apps from Travis CI to Circle CI. We also use tox/detox to make sure 2.0 changes are compatible. There is some info here if you are interested in making the conversion. https://github.com/pinax/pinax/wiki/Converting-to-CircleCi-and-Codecov

@KatherineMichel
Copy link
Member

KatherineMichel commented Jan 5, 2019

@flowerncsu Thank you for doing more work on this! Were you able to get tox/detox to pass?

@flowerncsu
Copy link
Author

No, but I'm not at all sure I have tox installed/running correctly locally. I haven't worked much with tox, and none at all for at least a year, so I'm pretty rusty with it. Is there an instruction doc for running tox for pinax like the one you pointed me to for doing the conversion?

@KatherineMichel
Copy link
Member

KatherineMichel commented Feb 8, 2019

@flowerncsu Here is the one that I used to learn how: How to Test Against Multiple Python Versions in Parallel. It's from 2015 and a bit out of date (Travis CI is no longer used, for instance and the tox.ini will not be the same as the one in the more recent conversion docs). Btw, if you are using pipenv, you can run tox using pipenv run detox. We also sometimes use isort --recursive pinax -sp tox.ini to sort imports.

@flowerncsu
Copy link
Author

Hm. It seems like tox is set up correctly, but isn't initializing the django settings module? I'm not sure where the problem is here. This is what I get when I run tox locally on this branch: https://pastebin.com/0fxJs9Eu

@KatherineMichel
Copy link
Member

Chatted about this in Slack. More progress will be attempted at a later time, unless anyone else has input.

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.

2 participants