diff --git a/.python-version b/.python-version new file mode 100644 index 0000000000000000000000000000000000000000..2e62655563de9a0bbbe314d0890891ad9b182f7d --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +odoo-somconnexio-python-client diff --git a/README.md b/README.md index 41e06bb89fd8ffd4ab10abb2f4433949397588f2..00885a0cfa7edb632c886b2f22a908639e87f5f3 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,25 @@ Create a class that expose a dict objecti with the next structure: ## Development +### Setup environment + +1. Install `pyenv` +```sh +curl https://pyenv.run | bash +``` +2. Build the Python version +```sh +pyenv install 3.8.13 +``` +3. Create a virtualenv +```sh +pyenv virtualenv 3.8.13 odoo-somconnexio-python-client +``` +4. Install dependencies +```sh +pyenv exec pip install -r requirements-dev.txt +``` + ### Test the HTTP request We are using the HTTP recording plugin of Pytest: [pytest-recording](https://pytest-vcr.readthedocs.io/). diff --git a/requirements-dev.txt b/requirements-dev.txt index db56f4d619fd05476f7064c6be34836197d0505c..26e7c0c678b23c3eadc037a3096df9c56af2fd5f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,5 @@ +tox==3.25.0 +requests==2.27.1 mock==4.0.3 unittest2==1.1.0 pytest==6.2.5