Skip to content

Pin requirements versions to fix build and add 2.1.0 changelog #373

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
merged 3 commits into from
Nov 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: python
sudo: false
dist: xenial
cache: false
before_install:
Expand Down
13 changes: 13 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
Change history
================

2.1.0
=====
:release-date:
:release-by:
- Fix string representation of CrontabSchedule, so it matches UNIX CRON expression format (#318)
- If no schedule is selected in PeriodicTask form, raise a non-field error instead of an error bounded to the `interval` field (#327)
- Fix some Spanish translations (#339)
- Log "Writing entries..." message as DEBUG instead of INFO (#342)
- Use CELERY_TIMEZONE setting as `CrontabSchedule.timezone` default instead of UTC (#346)
- Fix bug in ClockedSchedule that made the schedule stuck after a clocked task was executed. The `enabled` field of ClockedSchedule has been dropped (#341)
- Drop support for Python < 3.6 (#368)
- Add support for Celery 5 and Django 3.1 (#368)

2.0.0
=====
:release-date:
Expand Down
1 change: 1 addition & 0 deletions requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
celery>=4.4,<6.0
django-timezone-field>=4.0,<5.0
python-crontab>=2.3.4
3 changes: 0 additions & 3 deletions requirements/python3.txt

This file was deleted.

3 changes: 1 addition & 2 deletions requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
celery>=4.4,<6.0
Django>=2.2
Django>=2.2,<4.0
2 changes: 1 addition & 1 deletion requirements/test-django.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
django
Django>=2.2,<4.0
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
case>=1.3.1
pytest-django
pytest-django>=2.2,<4.0
pytz>dev
pytest<4.0.0
pytest-timeout
Expand Down
6 changes: 3 additions & 3 deletions t/unit/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ValidateUniqueTests(TestCase):
def test_validate_unique_raises_if_schedule_not_set(self):
with self.assertRaises(ValidationError) as cm:
PeriodicTask(name='task0').validate_unique()
self.assertEquals(
self.assertEqual(
cm.exception.args[0],
'One of clocked, interval, crontab, or solar must be set.',
)
Expand All @@ -106,9 +106,9 @@ def test_validate_unique_raises_for_multiple_schedules(self):
with self.assertRaises(ValidationError) as cm:
PeriodicTask(name=name, **options_dict).validate_unique()
errors = cm.exception.args[0]
self.assertEquals(errors.keys(), options_dict.keys())
self.assertEqual(errors.keys(), options_dict.keys())
for error_msg in errors.values():
self.assertEquals(error_msg, [expected_error_msg])
self.assertEqual(error_msg, [expected_error_msg])

def test_validate_unique_not_raises(self):
PeriodicTask(crontab=CrontabSchedule()).validate_unique()
Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ deps=
django30: -r{toxinidir}/requirements/test-django30.txt
django31: -r{toxinidir}/requirements/test-django31.txt

py{36,37,38,py3}: -r{toxinidir}/requirements/python3.txt

linkcheck,apicheck: -r{toxinidir}/requirements/docs.txt
flake8,flakeplus,pydocstyle: -r{toxinidir}/requirements/pkgutils.txt
sitepackages = False
Expand Down