-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Django 4.0 and Python 3.10 support (#528)
* Replaced pytz with zoneinfo * Fixed tests * Added Python 3.10 to test suite * Removed now-redundant testing requirement * Bumped minimum django-timezone-field version * Upgraded pytest * Addressed points made in the PR * Added Python 3.10 environment to GitHub Actions * Removed pytz from new test * Fixed test * Added RabbitMQ to GitHub Actions * Fixed apicheck and linkcheck calling wrong Django version * Fixed flake8 woes * Fixed Sphinx generation warnings Co-authored-by: Bruno Marques <[email protected]>
- Loading branch information
Showing
14 changed files
with
79 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
django_celery_beat/migrations/0016_alter_crontabschedule_timezone.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.0.3 on 2022-03-21 20:20 | ||
# flake8: noqa | ||
from django.db import migrations | ||
import django_celery_beat.models | ||
import timezone_field.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('django_celery_beat', '0015_edit_solarschedule_events_choices'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='crontabschedule', | ||
name='timezone', | ||
field=timezone_field.fields.TimeZoneField( | ||
default= | ||
django_celery_beat.models.crontab_schedule_celery_timezone, | ||
help_text= | ||
'Timezone to Run the Cron Schedule on. Default is UTC.', | ||
use_pytz=False, verbose_name='Cron Timezone'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
celery>=5.2.3,<6.0 | ||
django-timezone-field>=4.2.3 | ||
django-timezone-field>=5.0 | ||
backports.zoneinfo; python_version<"3.9" | ||
tzdata | ||
python-crontab>=2.3.4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
case>=1.3.1 | ||
pytest-django<5.0 | ||
pytz>dev | ||
pytest<8.0 | ||
pytest-django>=2.2,<5.0 | ||
pytest>=6.2.5,<8.0 | ||
pytest-timeout | ||
ephem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
from django.urls import path | ||
|
||
urlpatterns = [ | ||
path('admin/', admin.site.urls), | ||
path('admin/', admin.site.urls), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters