Metadata-Version: 2.0
Name: c2cgeoportal-commons
Version: 2.3.1.dev3
Summary: c2cgeoportal commons
Home-page: http://www.camptocamp.com/solutions/geospatial/
Author: Camptocamp
Author-email: info@camptocamp.com
License: UNKNOWN
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Framework :: Pyramid
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Requires-Dist: c2c.template
Requires-Dist: c2cgeoform
Requires-Dist: ColanderAlchemy (>=0.3.2)
Requires-Dist: colander
Requires-Dist: deform
Requires-Dist: GeoAlchemy2
Requires-Dist: papyrus
Requires-Dist: pyramid
Requires-Dist: sqlalchemy
Requires-Dist: transaction
Requires-Dist: zope.event
Provides-Extra: testing
Requires-Dist: transaction; extra == 'testing'
Provides-Extra: tests
Requires-Dist: c2c.template; extra == 'tests'
Requires-Dist: psycopg2-binary; extra == 'tests'
Requires-Dist: pytest; extra == 'tests'
Requires-Dist: pytest-cov; extra == 'tests'
Requires-Dist: flake8; extra == 'tests'
Requires-Dist: PyYAML; extra == 'tests'
Provides-Extra: upgrade
Requires-Dist: alembic; extra == 'upgrade'
Requires-Dist: psycopg2-binary; extra == 'upgrade'

# c2cgeoportal_common

## Checkout

git clone git@github.com:camptocamp/c2cgeoportal.git
cd common

## Create virtual environment

make install

## Set up the tests database

```
sudo -u postgres psql -c "CREATE USER \"www-data\" WITH PASSWORD 'www-data';"

DATABASE=geomapfish_tests
sudo -u postgres psql -c "CREATE DATABASE $DATABASE WITH OWNER \"www-data\";"
sudo -u postgres psql -d $DATABASE -c "CREATE EXTENSION postgis;"

```
use common/testing/initialized.py to create the database (development.ini at admin side)

```

## Run the tests

```
make test
```


