From 9c0fab0030de8b28db41aefad1a9e53d2cfc8959 Mon Sep 17 00:00:00 2001 From: Sanket Dasgupta Date: Tue, 21 Jul 2020 16:49:19 +0530 Subject: [PATCH] try and fix CI --- .travis.yml | 3 +++ requirements/dev.txt | 22 +++++++++++----------- requirements/prod.txt | 7 +++---- systers_portal/meetup/views.py | 2 +- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5adb1906..bb2fc067 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ sudo: true language: python +dist: bionic env: - MOZ_HEADLESS=1 @@ -11,6 +12,8 @@ services: python: - "3.6" + - "3.7" + - "3.8" before_install: - wget https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-linux64.tar.gz - tar -xzvf geckodriver-v0.20.1-linux64.tar.gz diff --git a/requirements/dev.txt b/requirements/dev.txt index 2ddf2612..f7982410 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,15 +1,15 @@ -r prod.txt -Sphinx==1.6.5 -coverage==4.4.1 -django-nose==1.4.5 +Sphinx==3.1.2 +coverage==5.2 +django-nose==1.4.6 flake8==3.8.3 -sphinx-rtd-theme==0.2.4 -pylint==1.9.0 -pytest==3.5.1 -pytest-cov==2.5.1 -pytest-django==3.2.1 -pytest-pylint==0.9.0 -selenium==3.12.0 +sphinx-rtd-theme==0.5.0 +pylint==2.5.3 +pytest==5.4.3 +pytest-cov==2.10.0 +pytest-django==3.9.0 +pytest-pylint==0.17.0 +selenium==3.141.0 djangorestframework==3.11.0 -geopy==1.15.0 +geopy==2.0.0 pinax-notifications==6.0.0 diff --git a/requirements/prod.txt b/requirements/prod.txt index 7ff91174..656364cb 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -6,9 +6,8 @@ django-cities-light==3.6.0 django-ckeditor==5.9.0 django-crispy-forms==1.9.2 django-guardian==2.3.0 -django-imagekit==4.0.1 -psycopg2==2.7.3.2 -python3-openid==3.1.0 +django-imagekit==4.0.2 +psycopg2==2.8.5 +python3-openid==3.2.0 geoip2==3.0.0 django-ipware==3.0.0 - diff --git a/systers_portal/meetup/views.py b/systers_portal/meetup/views.py index b6f97033..eae68d9d 100644 --- a/systers_portal/meetup/views.py +++ b/systers_portal/meetup/views.py @@ -791,7 +791,7 @@ def post(self, request): unit = '' for meetup in searched_meetups: distance = '' - geolocator = Nominatim(timeout=6) + geolocator = Nominatim(user_agent="Anita-B Portal", timeout=6) g = GeoIP2() if location == "Current Location": client_ip, is_routable = get_client_ip(request)