Metadata-Version: 2.1
Name: c2cgeoportal-commons
Version: 2.9.0.386
Summary: c2cgeoportal commons
Home-page: https://github.com/camptocamp/c2cgeoportal/
Author: Camptocamp
Author-email: info@camptocamp.com
Keywords: web gis geoportail c2cgeoportal geocommune pyramid
Classifier: Development Status :: 6 - Mature
Classifier: Environment :: Web Environment
Classifier: Framework :: Pyramid
Classifier: Intended Audience :: Other Audience
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: GeoAlchemy2
Requires-Dist: papyrus
Requires-Dist: pyramid
Requires-Dist: setuptools >=78.1.1
Requires-Dist: sqlalchemy
Requires-Dist: transaction
Requires-Dist: zope.event
Provides-Extra: broadcast
Requires-Dist: c2cwsgiutils ; extra == 'broadcast'
Provides-Extra: testing
Requires-Dist: transaction ; extra == 'testing'
Provides-Extra: upgrade
Requires-Dist: alembic ; extra == 'upgrade'
Requires-Dist: psycopg2 ; 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
```
