diff --git a/readthedocs/api/v3/serializers.py b/readthedocs/api/v3/serializers.py index b854839f2c9..12004ef2bf4 100644 --- a/readthedocs/api/v3/serializers.py +++ b/readthedocs/api/v3/serializers.py @@ -173,7 +173,7 @@ class Meta: ] expandable_fields = { - 'config': (BuildConfigSerializer, {'source': 'config'}) + 'config': (BuildConfigSerializer,) } def get_finished(self, obj): @@ -275,7 +275,7 @@ class Meta: expandable_fields = { 'last_build': ( - BuildSerializer, {'source': 'last_build'} + BuildSerializer, ) } @@ -569,12 +569,11 @@ class Meta: ] expandable_fields = { + # NOTE: this has to be a Model method, can't be a + # ``SerializerMethodField`` as far as I know 'active_versions': ( VersionSerializer, { - # NOTE: this has to be a Model method, can't be a - # ``SerializerMethodField`` as far as I know - 'source': 'active_versions', 'many': True, } ) @@ -954,7 +953,7 @@ class Meta: RemoteOrganizationSerializer, {'source': 'organization'} ), 'projects': ( - ProjectSerializer, {'source': 'projects', 'many': True} + ProjectSerializer, {'many': True} ) } diff --git a/requirements/deploy.txt b/requirements/deploy.txt index 7f2cbda6458..dcf880900f6 100644 --- a/requirements/deploy.txt +++ b/requirements/deploy.txt @@ -1,7 +1,7 @@ # Requirements for our production systems -r pip.txt -psycopg2==2.8.6 +psycopg2==2.9.1 gunicorn==20.1.0 # Version 3.0.0 drops support for Django < 3.0 diff --git a/requirements/docker.txt b/requirements/docker.txt index 67306a08651..b342a0b8040 100644 --- a/requirements/docker.txt +++ b/requirements/docker.txt @@ -2,7 +2,7 @@ -r pip.txt # https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary -psycopg2-binary==2.8.6 +psycopg2-binary==2.9.1 # Version 3.0.0 drops support for Django < 3.0 # https://github.com/sebleier/django-redis-cache/#300 @@ -12,7 +12,7 @@ django-redis-cache==2.1.3 # pyup: ignore pillow==8.2.0 # local debugging tools -watchdog==2.1.2 +watchdog==2.1.3 datadiff==2.0.0 ipdb==0.13.9 pdbpp==0.10.2 diff --git a/requirements/pip.txt b/requirements/pip.txt index e8203c590b4..1eae81827db 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -1,6 +1,6 @@ # Base packages -pip==21.1.2 +pip==21.1.3 virtualenv==20.4.7 django==2.2.24 # pyup: <2.3 @@ -16,7 +16,7 @@ Sphinx==4.0.2 # Filtering for the REST API django-filter==2.4.0 -drf-flex-fields==0.9.0 +drf-flex-fields==0.9.1 drf-extensions==0.7.0 django-vanilla-views==3.0.0 @@ -31,7 +31,7 @@ Pygments==2.9.0 # Basic tools redis==3.5.3 kombu==5.1.0 -celery==5.1.0 +celery==5.1.2 # When upgrading to 0.43.0 we should double check the ``base.html`` change # described in the changelog. In previous versions, the allauth app included a @@ -41,13 +41,13 @@ celery==5.1.0 # override ``account/base.html`` within your project. django-allauth==0.42.0 # pyup: ignore -GitPython==3.1.17 +GitPython==3.1.18 # Search -elasticsearch==7.13.1 # pyup: <8.0.0 +elasticsearch==7.13.2 # pyup: <8.0.0 elasticsearch-dsl==7.3.0 # pyup: <8.0 django-elasticsearch-dsl==7.2.0 # pyup: <8.0 -selectolax==0.2.11 +selectolax==0.2.12 # embed pyquery==1.4.3 diff --git a/requirements/testing.txt b/requirements/testing.txt index 88dffff63cb..01e301c7b0c 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -6,7 +6,7 @@ django-dynamic-fixture==3.1.1 pytest==6.2.4 pytest-custom-exit-code==0.3.0 pytest-django==4.4.0 -pytest-xdist==2.2.1 +pytest-xdist==2.3.0 pytest-cov==2.12.1 apipkg==1.5 execnet==1.9.0