Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
ce197438
Commit
ce197438
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
odoorpc with fix
parent
d08679fa
No related branches found
No related tags found
1 merge request
!63
Topic/default/update odoorpc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+38
-12
38 additions, 12 deletions
.gitlab-ci.yml
Dockerfile
+3
-2
3 additions, 2 deletions
Dockerfile
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
requirements
+1
-1
1 addition, 1 deletion
requirements
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
48 additions
and
16 deletions
.gitlab-ci.yml
+
38
−
12
View file @
ce197438
...
...
@@ -8,6 +8,15 @@
variables
:
HTML_DOC_SOURCES
:
doc/_build/html
TEMP_IMAGE_BASENAME
:
registry.xcg.io/ci/$CI_PROJECT_PATH_SLUG
# do not use $TEMP_IMAGE_BASENAME, it will not be correctly replaced by GitLab
TEMP_IMAGE
:
registry.xcg.io/ci/$CI_PROJECT_PATH_SLUG:hg-$CI_COMMIT_HG_SHA
build-docker-image
:
needs
:
[]
stage
:
build
script
:
-
DOCKER_IMAGE=$TEMP_IMAGE_BASENAME docker-build
import_jsonrpc_odoo11_test
:
stage
:
test
...
...
@@ -70,8 +79,9 @@
ODOO_TYPE
:
odoo13
allow_failure
:
true
build-docker-image
:
needs
:
[]
variables
:
TAG_LATEST
:
branch/default
docker_build_copy_test
:
needs
:
-
job
:
build-docker-image
stage
:
test
image
:
$TEMP_IMAGE
script
:
...
...
@@ -77,5 +87,5 @@
script
:
-
DOCKER_IMAGE=registry.xcg.io/xcgd/odoo_scripts
docker
-
build
-
DOCKER_BASE_IMAGE_NAME=registry.xcg.io/xcgd/odoo_scripts DOCKER_IMAGE=xcgd/odoo_scripts docker-tag
-
docker
_
build
_copy
-
docker_build_clean
build-documentation
:
...
...
@@ -80,10 +90,12 @@
build-documentation
:
stage
:
build
needs
:
[]
image
:
python:3.8-alpine
# done in test stage to be able to use the built image
stage
:
test
needs
:
-
job
:
build-docker-image
image
:
$TEMP_IMAGE
artifacts
:
paths
:
-
doc/_build
expire_in
:
10m
script
:
...
...
@@ -85,11 +97,9 @@
artifacts
:
paths
:
-
doc/_build
expire_in
:
10m
script
:
-
apk add make mercurial
# It might not be necessary to install this and the dependency (maybe just reuse the built image? but its done after)
-
pip3 install .
-
apk add make
-
cd doc
-
pip3 install -r requirements hg-evolve
-
for language in en fr ; do LANGUAGE=$language BUILDDIRSUFFIX=/$CI_COMMIT_HG_BRANCH make html ; done
...
...
@@ -100,3 +110,19 @@
artifacts
:
true
only
:
-
/^branch\/.*/
publish
:
extends
:
build-docker-image
stage
:
deploy
needs
:
-
job
:
docker_build_copy_test
-
job
:
import_jsonrpc_odoo11_test
-
job
:
import_jsonrpc_odoo13_test
-
job
:
import_base_import_odoo13_test
-
job
:
import_base_import_odoo11_test
variables
:
TAG_LATEST
:
branch/default
script
:
-
DOCKER_BASE_IMAGE_NAME="$TEMP_IMAGE" DOCKER_IMAGE="registry.xcg.io/xcgd/odoo_scripts" tag-img
-
DOCKER_BASE_IMAGE_NAME="$TEMP_IMAGE" DOCKER_IMAGE="xcgd/odoo_scripts" tag-img
This diff is collapsed.
Click to expand it.
Dockerfile
+
3
−
2
View file @
ce197438
FROM
python:3
.9
-alpine
FROM
python:3-alpine
ARG
BUILD_DATE=""
ARG
VCS_URL=""
ARG
VCS_REF=""
...
...
@@ -12,7 +12,8 @@
RUN
set
-x
;
\
apk add
--no-cache
--update
zsh rsync postgresql-libs
&&
\
# mercurial &&
\
apk add
--no-cache
--virtual
.build-deps gcc musl-dev postgresql-dev
&&
\
apk add
--no-cache
--virtual
.build-deps gcc musl-dev postgresql-dev git
&&
\
python3
-m
pip
install
-r
/usr/src/odoo_scripts/requirements
&&
\
python3
-m
pip
install
/usr/src/odoo_scripts[import_sql,conf2reST,source_control]
&&
\
apk
--purge
del .build-deps
&&
\
rm
-rf
/usr/src/odoo_scripts
This diff is collapsed.
Click to expand it.
NEWS.rst
+
5
−
0
View file @
ce197438
...
...
@@ -2,6 +2,11 @@
History
=======
13.0.0
------
Update odoorpc required version to one including the fix for python 3.10.
12.0.1
------
...
...
This diff is collapsed.
Click to expand it.
requirements
+
1
−
1
View file @
ce197438
# This includes the requirements for all extras
odoorpc
==0.7.0
git+https://github.com/xcgd/odoorpc@fix-oca-issue-66#egg=
odoorpc
requests_toolbelt==0.8.0
python-dateutil>=2.7.0
PyYAML
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
ce197438
...
...
@@ -13,7 +13,7 @@
license
=
"
MIT
"
,
packages
=
find_packages
(),
install_requires
=
[
"
odoorpc
==
0.
7
.0
"
,
"
odoorpc
>
0.
8
.0
"
,
"
requests_toolbelt==0.8.0
"
,
"
python-dateutil>=2.7.0
"
,
"
coloredlogs
"
,
...
...
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