Metadata-Version: 2.4
Name: c2cgeoportal_commons
Version: 2.9.0.627
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: sqlalchemy
Requires-Dist: transaction
Requires-Dist: zope.event
Requires-Dist: setuptools>=78.1.1
Provides-Extra: testing
Requires-Dist: transaction; extra == "testing"
Provides-Extra: upgrade
Requires-Dist: alembic; extra == "upgrade"
Requires-Dist: psycopg2; extra == "upgrade"
Provides-Extra: broadcast
Requires-Dist: c2cwsgiutils; extra == "broadcast"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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
```
