Skip to content

Update Django dependency to support Django 4 and 5 #28

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

Merged

Conversation

robertvy
Copy link
Contributor

@robertvy robertvy commented Jul 4, 2024

This pull request updates the Django dependency to support both Django 4 and 5.
The pyproject.toml file has been modified to allow Django versions >=4.0 and <6.0.
This ensures compatibility with both Django 4 and the upcoming Django 5.1 release.

Additionally, the poetry.lock file has been updated to reflect these changes.

Closes #27.

@danihodovic
Copy link
Owner

danihodovic commented Jul 4, 2024

Can you suppress the mypy warning that's failing CI?

https://github.com/danihodovic/django-webhook/actions/runs/9798770008/job/27058165778?pr=28#step:8:12

Add the below at the end of the line: # type: ignore. https://github.com/danihodovic/django-webhook/blob/master/django_webhook/tasks.py#L47

        status_code = ex.response.status_code # type: ignore

@robertvy
Copy link
Contributor Author

robertvy commented Jul 4, 2024

I have added the # type: ignore comment.

@danihodovic danihodovic merged commit 7244501 into danihodovic:master Jul 4, 2024
3 checks passed
@danihodovic
Copy link
Owner

I've pushed this to pypi as 0.0.12 https://pypi.org/project/django-webhook/#history.

Thank you Robert

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.

Django 5.* compatability
2 participants