From 89dc8f37f57dee3bc01ea4a4b691b5c9eec808dc Mon Sep 17 00:00:00 2001 From: han16nah Date: Mon, 6 May 2024 16:50:13 +0200 Subject: [PATCH] update README --- README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ae6167b..cd4c6f9 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,33 @@ This package is part of [Pledge4Future](https://pledge4future.org/), a project t ## :computer: Installation -`co2calculator` is currently only available on GitHub. To use the code, clone the repository as usual, for example with: +### With pip (recommended) + +PyPi release coming soon! + + + +### From source + +To install this package from source, clone the repository as usual, for example with: ``` git clone https://github.com/pledge4future/co2calculator.git +cd co2calculator ``` -This package requires Python 3.9 and the packages listed in `requirements.txt` +This package requires Python 3.10, 3.11 or 3.12 and can be installed using [poetry](https://python-poetry.org/). You can install it in your (virtual) environment with: ``` -$ pip install -r requirements.txt +$ pip install -U poetry +$ poetry install --no-root ``` - ## ⌨ How to Use Learn how to use `co2calculator` in our detailed [documentation](https://github.com/pledge4future/co2calculator/blob/dev/docs/documentation.md). [...] @@ -41,11 +54,6 @@ The CO2 Calculator uses the [OpenRouteService (ORS) API](https://open If you want to contribute to this project, please fork this repository and create a pull request with your suggested changes. -Running the unit tests and applying the pre-commit hooks requires installing the packages listed in `requirements-dev.txt`. - -``` -$ pip install -r requirements-dev.txt -``` ### Install pre-commit hooks