Skip to content

Commit 074c092

Browse files
author
Timothy McPhillips
committed
Moved alternative Python code for timeseries-service here
1 parent 7038599 commit 074c092

27 files changed

+1814
-38
lines changed

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: python
2+
3+
python:
4+
# Python 3.4 is the latest version compatible with Travis CI when
5+
# system_site_packages is true. If Python 3.5 or higher is selected,
6+
# the tests will not be able to access Python packages installed system-wide.
7+
- "3.4"
8+
9+
virtualenv:
10+
# Allow tests running in the Python virtual environment that is mandatory on
11+
# Travis CI to access packages installed in the system-wide Python environment.
12+
# This is needed because the Python packages for working with GDAL depend on
13+
# shared GDAL libraries installed outside the virtual environment.
14+
system_site_packages: true
15+
16+
before_install:
17+
# Install gdal libraries and python3 bindings using the latest python3-gdal
18+
# package provided by the ubuntugis personal package archive
19+
- sudo add-apt-repository -y ppa:ubuntugis/ppa
20+
- sudo apt-get update
21+
- sudo apt install -y python3-gdal
22+
23+
install:
24+
- pip install pylint
25+
- pip install ./python/skope
26+
- pip install ./python/skope_service
27+
28+
script:
29+
- pylint -v python
30+
- pytest -v python
31+
32+

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +0,0 @@
1-
# Reproducible-Every-Place Research Objects (REPROs)
2-
3-
This repository provides a description and template for REPROs: *Reproducible-Every-Place Research Objects*.
4-
5-
## What is a REPRO?
6-
7-
A REPRO is a version-controlled code/data repository that (a) demonstrates the validity of one or more computational processes and associated results; (b) provides within it the means to execute the processes to yield those results on one's own computer; (c) makes it easy to check that these processes and results match well-defined expectations; (d) does all of this in a transparent manner such that the computations performed can be confirmed to match the provided description.
8-
9-
## General requirements for REPROs
10-
11-
To qualify as a REPRO a repository must meet these requirements:
12-
13-
1. The code in the REPRO must be runnable on any computer meeting some minimal hardware and software requirements for running REPROs generally. A REPRO must not require that a particular operating system be used, nor may it require installing additional software specific to the REPRO. Simple REPROs that use this repo as a template require only that `Git`, `Docker`, and `GNU Make` be installed on the user's computer and will run on Linux, macOS, and Windows-based systems, among others.
14-
15-
2. Running the REPRO should require nothing more than cloning the repository onto the local machine, and issuing a single command from a terminal session in the top-level directory of the cloned repository.
16-
17-
3. The contents and operation of a REPRO should be transparent with respect to the computer on which it is running. The user of a REPRO should be able to use the terminal, editors, web browsers, and other software tools already installed on the computer to interact with the running REPRO, to modify the data or code in the REPRO, and to inspect the code and data employed in the REPRO.
18-
19-
## *Git-Docker-Make* REPROs
20-
21-
This repository provides a template for simple REPROs that require only that `Git`, `Docker`, and `GNU Make` be installed on a user's machine. The essential components of a *Make-Docker REPRO* are:
22-
23-
* A `Git` repository that provides any essential components of the REPRO including code and data.
24-
25-
* A `Dockerfile` in the `.repro` subdirectory of the REPRO that defines the computing environment required to execute the analysis represented by the REPRO.
26-
27-
* A `Makefile` in the top-level directory of the REPRO that provides targets for building and starting the REPRO, for running the computations represented by the REPRO, and for comparing the results of those computations against the expected results.
28-
29-
## What makes a REPRO more than a Git repo and Docker image?
30-
31-
A key property of a *Git-Docker-Make* REPRO is that any `Make` target that starts the REPRO docker container must mount the repository cloned on the user's computer at a predefined location within the running container, and must perform all of its work within the directory tree under this mount point.
32-
33-
The REPRO convention is that the clone of the Git repository `<repro_name>` on the user's computer is mounted under the `/mnt/<repro_name>` directory within the running container. All products of computations performed in the container are stored under this mount point and so can be accessed from outside the container both while the container is running, and when the container is stopped. Whenever a terminal session is started in the running REPRO the working directory is set automatically to `/mnt/<repro_name>` so that the user's working directory appears unchanged.
34-
35-
36-
37-
38-

0 commit comments

Comments
 (0)