Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
odoo-somconnexio-python-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Som Connexió
Odoo
odoo-somconnexio-python-client
Commits
2f41a4aa
Commit
2f41a4aa
authored
2 years ago
by
Daniel Palomar
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation to setup development environment
parent
ed9c908b
No related branches found
No related tags found
1 merge request
!33
Add documentation to setup development environment
Pipeline
#4853
passed
2 years ago
Stage: style
Stage: test
Stage: package
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.python-version
+1
-0
1 addition, 0 deletions
.python-version
README.md
+19
-0
19 additions, 0 deletions
README.md
requirements-dev.txt
+2
-0
2 additions, 0 deletions
requirements-dev.txt
with
22 additions
and
0 deletions
.python-version
0 → 100644
+
1
−
0
View file @
2f41a4aa
odoo-somconnexio-python-client
This diff is collapsed.
Click to expand it.
README.md
+
19
−
0
View file @
2f41a4aa
...
@@ -163,6 +163,25 @@ Create a class that expose a dict objecti with the next structure:
...
@@ -163,6 +163,25 @@ Create a class that expose a dict objecti with the next structure:
## Development
## 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
### Test the HTTP request
We are using the HTTP recording plugin of Pytest:
[
pytest-recording
](
https://pytest-vcr.readthedocs.io/
)
.
We are using the HTTP recording plugin of Pytest:
[
pytest-recording
](
https://pytest-vcr.readthedocs.io/
)
.
...
...
This diff is collapsed.
Click to expand it.
requirements-dev.txt
+
2
−
0
View file @
2f41a4aa
tox==3.25.0
requests==2.27.1
mock==4.0.3
mock==4.0.3
unittest2==1.1.0
unittest2==1.1.0
pytest==6.2.5
pytest==6.2.5
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment