diff --git a/.drone.yml b/.drone.yml index ba7a6e4..5afc5f4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -153,43 +153,4 @@ steps: - pip install -r requirements-dev.txt - pytest ---- -kind: pipeline -type: docker -name: python36 - -steps: -- name: database - image: postgres:10-alpine - detach: true - environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: dspacestatistics - -- name: setup - image: postgres:10-alpine - environment: - PGPASSWORD: postgres - commands: - - id - - psql --version - - sleep 5 - - pg_isready -h database -U postgres -d dspacestatistics - - createuser -h database -U postgres dspacestatistics - - psql -h database -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'" - - psql -h database -U postgres -d dspacestatistics < tests/dspacestatistics.sql - -- name: test - image: python:3.6-slim - environment: - PGPASSWORD: dspacestatistics - DATABASE_HOST: database - commands: - - id - - python -V - - apt update && apt install -y gcc git libpq-dev - - pip install -r requirements-dev.txt - - pytest - # vim: ts=2 sw=2 et diff --git a/README.md b/README.md index 801e8b8..673b763 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ If you use the DSpace Statistics API please cite: ## Requirements -- Python 3.6+ +- Python 3.7+ - PostgreSQL version 9.5+ (due to [`UPSERT` support](https://wiki.postgresql.org/wiki/UPSERT)) - DSpace with [Solr usage statistics enabled](https://wiki.lyrasis.org/display/DSDOC5x/SOLR+Statistics) (tested with 5.8+ and 6.3) diff --git a/pyproject.toml b/pyproject.toml index e58a03b..8a3da06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Alan Orth "] license = "GPL-3.0-only" [tool.poetry.dependencies] -python = "^3.6" +python = "^3.7" gunicorn = "^20.0.4" falcon = "3.1.0" psycopg2 = "^2.9.1"