1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-10 15:16:02 +02:00

Compare commits

..

7 Commits

Author SHA1 Message Date
d0552f5047 CHANGELOG.md: Move unreleased changes to version 0.3.1 2018-09-25 12:18:26 +03:00
c3a0bf7f44 CHANGELOG.md: Add Python 3.7 to Travis CI config 2018-09-25 12:17:49 +03:00
6e47e9c9ee .travis.yml: Add Python 3.7 2018-09-25 12:17:20 +03:00
cd90d618d6 CHANGELOG.md: Fix error in old release 2018-09-25 12:17:01 +03:00
280d211d56 CHANGELOG.md: Add note about kazoo 2.5.0 2018-09-25 12:12:10 +03:00
806d63137f requirements.txt: Use kazoo 2.5.0
SolrClient 0.2.1 currently depends on kazoo 2.2.1, but there is an
issue with Python 3.7 in kazoo <= 2.5.0. Kazoo 2.5.0 fixes the is-
sue with Python 3.7, and for my limited usage of SolrClient it se-
ems to work fine.

See: https://github.com/moonlitesolutions/SolrClient/issues/79
2018-09-25 12:08:28 +03:00
f7c7390e4f README.md: Add note about Python 3.7 2018-09-25 12:07:58 +03:00
4 changed files with 10 additions and 4 deletions

View File

@ -2,6 +2,7 @@ language: python
python: python:
- "3.5" - "3.5"
- "3.6" - "3.6"
- "3.7"
install: install:
- pip install -r requirements.txt - pip install -r requirements.txt

View File

@ -4,10 +4,15 @@ 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).
## [0.3.1] - 2018-09-25
### Changed
- Force SolrClient's kazoo dependency to version 2.5.0 to work with Python 3.7
- Add Python 3.7 to Travis CI configuration
## [0.3.0] - 2018-09-25 ## [0.3.0] - 2018-09-25
### Added ### Added
- requirements.txt for pip - requirements.txt for pip
- Travis CI build configuration for Python 3.6 and 3.7 - Travis CI build configuration for Python 3.5 and 3.6
- Documentation on using the API - Documentation on using the API
### Changed ### Changed

View File

@ -1,12 +1,12 @@
# DSpace Statistics API # DSpace Statistics API
A quick and dirty REST API to expose Solr view and download statistics for items in a DSpace repository. A quick and dirty REST API to expose Solr view and download statistics for items in a DSpace repository.
Written and tested in Python 3.5 and 3.6. SolrClient (0.2.1) does [not currently run in Python 3.7.0](https://github.com/moonlitesolutions/SolrClient/issues/79). Requires PostgreSQL version 9.5 or greater for [`UPSERT` support](https://wiki.postgresql.org/wiki/UPSERT). Written and tested in Python 3.5, 3.6, and 3.7. Requires PostgreSQL version 9.5 or greater for [`UPSERT` support](https://wiki.postgresql.org/wiki/UPSERT).
## Installation ## Installation
Create a virtual environment and run it: Create a virtual environment and run it:
$ virtualenv -p /usr/bin/python3.6 venv $ python -m venv venv
$ . venv/bin/activate $ . venv/bin/activate
$ pip install -r requirements.txt $ pip install -r requirements.txt
$ gunicorn app:api $ gunicorn app:api

View File

@ -3,7 +3,7 @@ chardet==3.0.4
falcon==1.4.1 falcon==1.4.1
gunicorn==19.9.0 gunicorn==19.9.0
idna==2.7 idna==2.7
kazoo==2.2.1 kazoo==2.5.0
psycopg2-binary==2.7.5 psycopg2-binary==2.7.5
python-mimeparse==1.6.0 python-mimeparse==1.6.0
requests==2.19.1 requests==2.19.1