mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-07-15 18:48:17 +02:00
Compare commits
3 Commits
v1.4.3
...
eb660f8085
Author | SHA1 | Date | |
---|---|---|---|
eb660f8085
|
|||
e7d780f511
|
|||
c3b9a541b7
|
39
.drone.yml
39
.drone.yml
@ -153,43 +153,4 @@ steps:
|
|||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-dev.txt
|
||||||
- pytest
|
- 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
|
# vim: ts=2 sw=2 et
|
||||||
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
### Changed
|
||||||
|
- Update recommended Python version to 3.7+
|
||||||
|
|
||||||
## 1.4.3 - 2022-03-26
|
## 1.4.3 - 2022-03-26
|
||||||
### Updated
|
### Updated
|
||||||
- Update dependencies with `poetry update`
|
- Update dependencies with `poetry update`
|
||||||
|
@ -20,7 +20,7 @@ If you use the DSpace Statistics API please cite:
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Python 3.6+
|
- Python 3.7+
|
||||||
- PostgreSQL version 9.5+ (due to [`UPSERT` support](https://wiki.postgresql.org/wiki/UPSERT))
|
- 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)
|
- DSpace with [Solr usage statistics enabled](https://wiki.lyrasis.org/display/DSDOC5x/SOLR+Statistics) (tested with 5.8+ and 6.3)
|
||||||
|
|
||||||
|
@ -18,6 +18,6 @@ DATABASE_PORT = os.environ.get("DATABASE_PORT", "5432")
|
|||||||
# the vanilla DSpace REST API.
|
# the vanilla DSpace REST API.
|
||||||
DSPACE_STATISTICS_API_URL = os.environ.get("DSPACE_STATISTICS_API_URL", "")
|
DSPACE_STATISTICS_API_URL = os.environ.get("DSPACE_STATISTICS_API_URL", "")
|
||||||
|
|
||||||
VERSION = "1.4.3"
|
VERSION = "1.4.4-dev"
|
||||||
|
|
||||||
# vim: set sw=4 ts=4 expandtab:
|
# vim: set sw=4 ts=4 expandtab:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"openapi": "3.0.3",
|
"openapi": "3.0.3",
|
||||||
"info": {
|
"info": {
|
||||||
"version": "1.4.3",
|
"version": "1.4.4-dev",
|
||||||
"title": "DSpace Statistics API",
|
"title": "DSpace Statistics API",
|
||||||
"description": "A [Falcon-based](https://falcon.readthedocs.io/) web application to make DSpace's item, community, and collection statistics available via a simple REST API. This Swagger interface is powered by [falcon-swagger-ui](https://github.com/rdidyk/falcon-swagger-ui).",
|
"description": "A [Falcon-based](https://falcon.readthedocs.io/) web application to make DSpace's item, community, and collection statistics available via a simple REST API. This Swagger interface is powered by [falcon-swagger-ui](https://github.com/rdidyk/falcon-swagger-ui).",
|
||||||
"license": {
|
"license": {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "dspace-statistics-api"
|
name = "dspace-statistics-api"
|
||||||
version = "1.4.3"
|
version = "1.4.4-dev"
|
||||||
description = "A simple REST API to expose Solr view and download statistics for items, communities, and collections in a DSpace repository."
|
description = "A simple REST API to expose Solr view and download statistics for items, communities, and collections in a DSpace repository."
|
||||||
authors = ["Alan Orth <aorth@mjanja.ch>"]
|
authors = ["Alan Orth <aorth@mjanja.ch>"]
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.6"
|
python = "^3.7"
|
||||||
gunicorn = "^20.0.4"
|
gunicorn = "^20.0.4"
|
||||||
falcon = "3.1.0"
|
falcon = "3.1.0"
|
||||||
psycopg2 = "^2.9.1"
|
psycopg2 = "^2.9.1"
|
||||||
|
Reference in New Issue
Block a user