Metadata-Version: 2.4
Name: g3w-admin-ps-timeseries
Version: 0.0.1
Summary: G3W-ADMIN integration of the QGIS Time Series plugin
Author-email: Gis3w snc <info@gis3w.it>
License: Mozilla Public License 2.0 (MPL 2.0)
Project-URL: Homepage, https://github.com/g3w-suite/g3w-admin-ps-timeseries
Project-URL: Bug Tracker, https://github.com/g3w-suite/g3w-admin-ps-timeseries/issues
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Dynamic: license-file

# G3W-ADMIN-QPS-TIMESERIES

[![PyPI version](https://img.shields.io/pypi/v/g3w-admin-ps-timeseries)](https://pypi.org/project/g3w-admin-ps-timeseries/)

Porting on G3W-SUITE of QGIS desktop plugin https://plugins.qgis.org/plugins/pstimeseries/

![QGIS desktop](media/screenshot.png)

On G3W-SUITE:

![G3W-ADMIN](media/screenshot_admin.png)

![G3W-CLIENT](media/screenshot_client.png)

## Installation

Install *qps_timeseries* module into [`g3w-admin`](https://github.com/g3w-suite/g3w-admin/tree/v.3.7.x/g3w-admin) applications folder:

```sh
# Install module from github (v1.0.0)
pip3 install git+https://github.com/g3w-suite/g3w-admin-ps-timeseries.git@v1.0.0

# Install module from github (dev branch)
# pip3 install git+https://github.com/g3w-suite/g3w-admin-ps-timeseries.git@dev

# Install module from local folder (git development)
# pip3 install -e /g3w-admin/plugins/qps_timeseries

# Install module from PyPi (not yet available)
# pip3 install g3w-admin-ps-timeseries
```

Enable `'qps_timeseries'` module adding it to `G3W_LOCAL_MORE_APPS` list:

```py
# local_settings.py

G3WADMIN_LOCAL_MORE_APPS = [
    ...
    'qps_timeseries'
    ...
]
```

### Docker
Refer to [g3w-suite-docker](https://github.com/g3w-suite/g3w-suite-docker) repository for more info about running this on a docker instance.

**NB** On Ubuntu Jammy you could get an `UNKNOWN` package install instead of `g3w-admin-ps-timseries`, you can retry installing it as follows to fix it:

```sh
# Fix: https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377
export DEB_PYTHON_INSTALL_LAYOUT=deb_system

# And then install again the module
pip3 install ...
```
Add the above lines to your `scripts/setup.sh` file.

## Sample data

The [qps_timeseries.qgs](qps_timeseries/tests/data/projects/qps_timeseries.qgs) project is available in the [tests](qps_timeseries/tests/data/) folder (EPSG:4326).

## Development and tests

The integration BDD scenarios are in
[`qps_timeseries/tests/features`](qps_timeseries/tests/features). They run in
the G3W-ADMIN/QGIS environment used by CI. Install test dependencies:

```sh
python3 -m pip install -r requirements_test.txt
```

From the configured G3W-ADMIN directory, run:

```sh
python3 manage.py behave --simple qps_timeseries/tests
python3 manage.py test qps_timeseries
```
