From 34a67c4aaddb8845fcae522fc073c749db27ff44 Mon Sep 17 00:00:00 2001 From: Modrzew Date: Sun, 7 Aug 2016 10:03:44 +0200 Subject: [PATCH] Bumped pgoapi version Note that libencrypt is not provided, and won't be provided. --- .gitignore | 3 ++- config.py.example | 2 ++ requirements.txt | 2 +- worker.py | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d3f8e15129..9b008cb2c8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .idea config.py db.sqlite -*.log \ No newline at end of file +*.log +*.so \ No newline at end of file diff --git a/config.py.example b/config.py.example index 70e09f2fc4..9f0e6a68ef 100644 --- a/config.py.example +++ b/config.py.example @@ -2,6 +2,8 @@ from datetime import datetime DB_ENGINE = 'sqlite:///db.sqlite' +ENCRYPT_PATH = './libencrypt.so' + AREA_NAME = u'Wrocław' MAP_START = (12.3456, 34.5678) MAP_END = (13.4567, 35.6789) diff --git a/requirements.txt b/requirements.txt index 9adbc95d65..7cf0e5b797 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ gpsoauth==0.3.0 coveralls==1.1 werkzeug==0.11.10 sqlalchemy==1.0.14 --e git+https://github.com/tejado/pgoapi.git@0811db23d639039f968a82e06c7aa15a0a5016b6#egg=pgoapi +-e git+https://github.com/keyphact/pgoapi.git@06eaef1e0353d17f775f2d1765d6281a05be7654#egg=pgoapi diff --git a/worker.py b/worker.py index 3e5dbdd75a..c7eeb13fac 100644 --- a/worker.py +++ b/worker.py @@ -22,6 +22,7 @@ # Check whether config has all necessary attributes REQUIRED_SETTINGS = ( 'DB_ENGINE', + 'ENCRYPT_PATH', 'CYCLES_PER_WORKER', 'MAP_START', 'MAP_END', @@ -80,6 +81,7 @@ def __init__( self.running = True center = self.points[0] self.api = PGoApi() + self.api.activate_signature(config.ENCRYPT_PATH) self.api.set_position(center[0], center[1], 100) # lat, lon, alt def run(self):