Metadata-Version: 2.1
Name: les-assets-generator
Version: 0.1.0
Summary: 
Home-page: https://github.com/lyon-esport/assets-generator
License: CeCILL
Keywords: django,esport,assets
Author: Ludovic Ortega
Author-email: ludovic.ortega@lyon-esport.fr
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Utilities
Requires-Dist: Django (>=4.0.6,<5.0.0)
Requires-Dist: Pillow (>=9.2.0,<10.0.0)
Requires-Dist: dj-database-url (>=1.0.0,<2.0.0)
Requires-Dist: django-allauth (>=0.51.0,<0.52.0)
Requires-Dist: django-colorfield (>=0.7.2,<0.8.0)
Requires-Dist: gunicorn (>=20.1.0,<21.0.0)
Requires-Dist: python-dotenv (>=0.20.0,<0.21.0)
Project-URL: Repository, https://github.com/lyon-esport/assets-generator
Description-Content-Type: text/markdown

Lyon e-Sport assets generator

This website help you to generate assets from an image and GET parameters

![Python test](https://github.com/lyon-esport/assets-generator/workflows/Python%20test/badge.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# Requirements
- Python (check version in pyproject.toml)

# Install
```
pip install les-assets-generator
```

# Dev
Install [Poetry](https://python-poetry.org/docs/master/#installing-with-the-official-installer) with version >= 1.2.0a1

Install and setup dependencies
```
poetry install
poetry shell
pre-commit install

```

### Run pre-commit
```
pre-commit run --all-files
```

# Configuration
### Production only

Set the environnement for production (.env file or env vars)

```dotenv
# Django allowed host like .lyon-esport.fr
DJANGO_ALLOWED_HOST = ""

# Django log level
DJANGO_LOG_LEVEL = ""

# Set the secret key for session and other thinks
SECRET_KEY = ""

# Set allowed google email domain like lyon-esport.fr
GOOGLE_DOMAIN = ""
```

# Run
Dev: les_assets_generator.assets_generator.settings.dev
Prod: les_assets_generator.assets_generator.settings.production

    $ export DJANGO_SETTINGS_MODULE="les_assets_generator.assets_generator.settings.production"
    $ cd les_assets_generator
    $ python -m les_assets_generator.manage makemigrations
    $ python -m les_assets_generator.manage migrate
    $ python -m les_assets_generator.manage compilemessages

## Dev

    $ python -m les_assets_generator.manage runserver

## Production

    $ python -m les_assets_generator.manage collectstatic --settings=assets_generator.settings.production --noinput
    $ gunicorn les_assets_generator.assets_generator.wsgi:application --bind 0.0.0.0:8000 --workers 3

# i18n
https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#message-files

# Licence

The code is under CeCILL license.

You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html

# Credits

Copyright © Lyon e-Sport, 2022

Contributor(s):

-Ortega Ludovic - ludovic.ortega@lyon-esport.fr

