# appel-crises-web
## for developers
On first time,
Install python3.7 if needed
Install pre-commit if needed (pip install –user pre-commit)
Install a python virtualenv manager if needed (pip install –user vex, pip install –user pew, …)
Create a virtualenv (vex –make appel-crises, pew new appel-crises)
Install project dependencies: make bootsrap (or pip install -e .[dev] if make isn’t available)
cp local_settings.ini.template local_settings.ini and edit local_settings.ini if you need
if you chose postgresql DB, create user and database if needed
run make build to build static files
run ./manage.py migrate to create DB tables
run ./manage.py createsuperuser to create a local user
## Dependencies management
Dependencies are stored in setup.cfg:
Runtime dependencies are listed under install_requires in the [options] section;
Additional development dependencies are listed under dev= in the [options.extras_require], and installed alongside required dependencies by specifying the [dev] extra marker - as seen in pip install -e .[dev].
## Building
The project is not composed only of pure Python code (it contains templates, images, …). Some of those files must go through some processing before running in production: - Static files should be consolidated into a single tree, with hashed names and a manifest; - Message catalogs might need to be compiled to their final .mo form; - Some static data might be converted to some other formats for faster / easier loading.
Those steps are controlled through the project wide Makefile, and should be called through the make build (or simply make) command.
That step is also executed when building a release.
## Releasing
A release consists of a built project archive, under the wheel format; that package MUST include the result of a full compilation.
Metadata
Release files for appel-crises 0.0.37
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| appel-crises-0.0.37.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| appel_crises-0.0.37-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.7 MB
Release files / appel-crises-0.0.37.tar.gz
| Download URL | appel-crises-0.0.37.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b6811c5bdc88b70a72132882858862ef700b8631b37d31ca36f205d0df20f67
|
|
BLAKE2b-256 checksum How to use checksums |
24496c5b7a3f1b6c6f98b3e28e773683b204766d7e85e0db80c4b3ba79a14a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.10
|
Release files / appel_crises-0.0.37-py2.py3-none-any.whl
| Download URL | appel_crises-0.0.37-py2.py3-none-any.whl |
|---|---|
| Size | 7.2 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
13e1a021d5cac4a66e99bd7734db1e81ea131df4cfad28d170f64a9d83bc2dfe
|
|
BLAKE2b-256 checksum How to use checksums |
6414326773e2384bad81b63321166201851c731a398e204c0c48b06272ec297f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.10
|