|
1 |
| -# Template DataForGood |
| 1 | +# Taxplorer website for CbCR data visualization |
2 | 2 |
|
3 |
| -This file will become your README and also the index of your |
4 |
| -documentation. |
| 3 | +The repository contains the source code for the |
| 4 | +[https://www.taxplorer.eu](https://www.taxplorer.eu) Taxplorer website for |
| 5 | +Country-By-Country Report data visualization. |
5 | 6 |
|
6 |
| -# Contributing |
7 |
| - |
8 |
| -## Installer Poetry |
9 |
| - |
10 |
| -Plusieurs [méthodes d'installation](https://python-poetry.org/docs/#installation) sont décrites dans la documentation de poetry dont: |
11 |
| - |
12 |
| -- avec pipx |
13 |
| -- avec l'installateur officiel |
14 |
| - |
15 |
| -Chaque méthode a ses avantages et inconvénients. Par exemple, la méthode pipx nécessite d'installer pipx au préable, l'installateur officiel utilise curl pour télécharger un script qui doit ensuite être exécuté et comporte des instructions spécifiques pour la completion des commandes poetry selon le shell utilisé (bash, zsh, etc...). |
16 |
| - |
17 |
| -L'avantage de pipx est que l'installation de pipx est documentée pour linux, windows et macos. D'autre part, les outils installées avec pipx bénéficient d'un environment d'exécution isolé, ce qui est permet de fiabiliser leur fonctionnement. Finalement, l'installation de poetry, voire d'autres outils est relativement simple avec pipx. |
18 |
| - |
19 |
| -Cependant, libre à toi d'utiliser la méthode qui te convient le mieux ! Quelque soit la méthode choisie, il est important de ne pas installer poetry dans l'environnement virtuel qui sera créé un peu plus tard dans ce README pour les dépendances de la base de code de ce repo git. |
20 |
| - |
21 |
| -### Installation de Poetry avec pipx |
22 |
| - |
23 |
| -Suivre les instructions pour [installer pipx](https://pipx.pypa.io/stable/#install-pipx) selon ta plateforme (linux, windows, etc...) |
24 |
| - |
25 |
| -Par exemple pour Ubuntu 23.04+: |
| 7 | +It has been developed during the 12th season of [dataforgood](https://dataforgood.fr/). |
26 | 8 |
|
27 |
| - sudo apt update |
28 |
| - sudo apt install pipx |
29 |
| - pipx ensurepath |
| 9 | +The website is deployed on |
| 10 | +[https://www.taxplorer.eu](https://www.taxplorer.eu/). The `main` branch is the |
| 11 | +one deployed on the production website . |
30 | 12 |
|
31 |
| -[Installer Poetry avec pipx](https://python-poetry.org/docs/#installing-with-pipx): |
| 13 | +The `dev` branch is deployed on the developpement website [https://dev.taxplorer.eu](https://dev.taxplorer.eu) |
32 | 14 |
|
33 |
| - pipx install poetry |
34 |
| - |
35 |
| -### Installation de Poetry avec l'installateur officiel |
36 |
| - |
37 |
| -L'installation avec l'installateur officiel nécessitant quelques étapes supplémentaires, |
38 |
| -se référer à la [documentation officielle](https://python-poetry.org/docs/#installing-with-the-official-installer). |
39 |
| - |
40 |
| -## Utiliser un venv python |
41 |
| - |
42 |
| - python3 -m venv .venv |
43 |
| - |
44 |
| - source .venv/bin/activate |
45 |
| - |
46 |
| -## Utiliser Poetry |
47 |
| - |
48 |
| -Installer les dépendances: |
49 |
| - |
50 |
| - poetry install |
| 15 | +# Contributing |
51 | 16 |
|
52 |
| -Ajouter une dépendance: |
| 17 | +If you want to contribute a new feature, please fork the `ðev` branch and |
| 18 | +propose a pull request. Once accepted, it will integrate the `dev` branch and |
| 19 | +eventually be deployed on the production website once a release is created by |
| 20 | +syncing the `main` branch with the `dev` branch. |
53 | 21 |
|
54 |
| - poetry add pandas |
| 22 | +# Local development environment |
55 | 23 |
|
56 |
| -Mettre à jour les dépendances: |
| 24 | +## Environment installation |
57 | 25 |
|
58 |
| - poetry update |
| 26 | +TBD |
59 | 27 |
|
60 |
| -## Lancer les precommit-hook localement |
| 28 | +## Pre-commit |
61 | 29 |
|
62 |
| -[Installer les precommit](https://pre-commit.com/) |
| 30 | +To run the pre-commit, follow the instructions on how to [install pre-commit](https://pre-commit.com/) and then run them with : |
63 | 31 |
|
64 | 32 | pre-commit run --all-files
|
65 | 33 |
|
66 |
| -## Utiliser Tox pour tester votre code |
| 34 | +The pre-commit must be run before proposing a pull request, otherwise the CI/CD |
| 35 | +will complain about your proposed feature. |
| 36 | + |
| 37 | +## Deployment |
67 | 38 |
|
68 |
| - tox -vv |
| 39 | +TBD |
0 commit comments