travis2docker 6.4.24__tar.gz → 6.4.26__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. {travis2docker-6.4.24 → travis2docker-6.4.26}/.bumpversion.cfg +1 -1
  2. {travis2docker-6.4.24 → travis2docker-6.4.26}/PKG-INFO +81 -1
  3. {travis2docker-6.4.24 → travis2docker-6.4.26}/README.rst +80 -0
  4. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/conf.py +1 -1
  5. {travis2docker-6.4.24 → travis2docker-6.4.26}/setup.py +1 -1
  6. travis2docker-6.4.26/src/travis2docker/__init__.py +1 -0
  7. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/build.sh +16 -8
  8. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/entrypoint_deployv.sh +0 -8
  9. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/PKG-INFO +81 -1
  10. travis2docker-6.4.24/src/travis2docker/__init__.py +0 -1
  11. {travis2docker-6.4.24 → travis2docker-6.4.26}/.coveragerc +0 -0
  12. {travis2docker-6.4.24 → travis2docker-6.4.26}/AUTHORS.rst +0 -0
  13. {travis2docker-6.4.24 → travis2docker-6.4.26}/CHANGELOG.rst +0 -0
  14. {travis2docker-6.4.24 → travis2docker-6.4.26}/CONTRIBUTING.rst +0 -0
  15. {travis2docker-6.4.24 → travis2docker-6.4.26}/LICENSE +0 -0
  16. {travis2docker-6.4.24 → travis2docker-6.4.26}/MANIFEST.in +0 -0
  17. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/authors.rst +0 -0
  18. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/changelog.rst +0 -0
  19. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/contributing.rst +0 -0
  20. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/index.rst +0 -0
  21. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/installation.rst +0 -0
  22. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/readme.rst +0 -0
  23. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/reference/index.rst +0 -0
  24. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/reference/travis2docker.rst +0 -0
  25. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/requirements.txt +0 -0
  26. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/spelling_wordlist.txt +0 -0
  27. {travis2docker-6.4.24 → travis2docker-6.4.26}/docs/usage.rst +0 -0
  28. {travis2docker-6.4.24 → travis2docker-6.4.26}/examples/example_1.yml +0 -0
  29. {travis2docker-6.4.24 → travis2docker-6.4.26}/examples/example_2.yml +0 -0
  30. {travis2docker-6.4.24 → travis2docker-6.4.26}/examples/example_3.yml +0 -0
  31. {travis2docker-6.4.24 → travis2docker-6.4.26}/examples/example_4.yml +0 -0
  32. {travis2docker-6.4.24 → travis2docker-6.4.26}/examples/example_5.yml +0 -0
  33. {travis2docker-6.4.24 → travis2docker-6.4.26}/requirements.txt +0 -0
  34. {travis2docker-6.4.24 → travis2docker-6.4.26}/setup.cfg +0 -0
  35. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/__main__.py +0 -0
  36. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/cli.py +0 -0
  37. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/docker_helper/build.py +0 -0
  38. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/exceptions.py +0 -0
  39. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/git_run.py +0 -0
  40. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/.coveragerc +0 -0
  41. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/.vscode/extensions.json +0 -0
  42. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/.vscode/launch.json +0 -0
  43. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/.vscode/settings.json +0 -0
  44. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/10-build.sh +0 -0
  45. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/20-run.sh +0 -0
  46. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/Dockerfile +0 -0
  47. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/Dockerfile_deployv +0 -0
  48. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/entrypoint.sh +0 -0
  49. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/templates/rvm_env.sh +0 -0
  50. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/.git +0 -0
  51. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/.gitignore +0 -0
  52. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/.travis.yml +0 -0
  53. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/LICENSE +0 -0
  54. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/README.md +0 -0
  55. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/add_all.rb +0 -0
  56. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/bin/travis-add-source +0 -0
  57. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis-ci-apt-source-whitelist/ubuntu.json +0 -0
  58. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker/travis2docker.py +0 -0
  59. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/SOURCES.txt +0 -0
  60. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/dependency_links.txt +0 -0
  61. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/entry_points.txt +0 -0
  62. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/not-zip-safe +0 -0
  63. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/requires.txt +0 -0
  64. {travis2docker-6.4.24 → travis2docker-6.4.26}/src/travis2docker.egg-info/top_level.txt +0 -0
  65. {travis2docker-6.4.24 → travis2docker-6.4.26}/tests/test_travis2docker.py +0 -0
  66. {travis2docker-6.4.24 → travis2docker-6.4.26}/tox.ini +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 6.4.24
2
+ current_version = 6.4.26
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: travis2docker
3
- Version: 6.4.24
3
+ Version: 6.4.26
4
4
  Summary: Script to generate Dockerfile from .travis.yml file
5
5
  Home-page: https://github.com/vauxoo/travis2docker
6
6
  Author: Vauxoo
@@ -151,6 +151,86 @@ Note, to combine the coverage data from all the tox environments run:
151
151
  PYTEST_ADDOPTS=--cov-append tox
152
152
 
153
153
 
154
+ Release process
155
+ ===============
156
+
157
+ This project uses `bump2version <https://github.com/c4urself/bump2version>`_ to
158
+ manage version bumps across ``.bumpversion.cfg``, ``docs/conf.py``,
159
+ ``setup.py`` and ``src/travis2docker/__init__.py``.
160
+
161
+ Requirements
162
+ ************
163
+
164
+ * Write access to push to ``main`` and to push tags.
165
+ * A GPG key configured for signing git tags. The CI pipeline that publishes
166
+ the package to PyPI only builds from **signed** tags::
167
+
168
+ git config --global user.signingkey <YOUR_GPG_KEY_ID>
169
+
170
+ * ``bump2version`` installed::
171
+
172
+ pip install bump2version
173
+
174
+ Steps to release a new version
175
+ ******************************
176
+
177
+
178
+ 1. Make sure you are on ``main`` and it is up to date, with no local commits
179
+ ahead of ``origin``::
180
+
181
+ git checkout main
182
+ git pull origin main
183
+ git status # must be clean
184
+
185
+ 2. Bump the version. This creates a commit and a tag automatically
186
+ (choose ``patch``, ``minor`` or ``major`` as needed)::
187
+
188
+ bump2version patch
189
+
190
+ This updates::
191
+
192
+ .bumpversion.cfg
193
+ docs/conf.py
194
+ setup.py
195
+ src/travis2docker/__init__.py
196
+
197
+ 3. Verify the tag was created and that it is **signed**::
198
+
199
+ git tag -v vX.Y.Z
200
+
201
+ If ``sign_tags`` is not enabled in ``.bumpversion.cfg``, the tag created
202
+ in step 2 will **not** be signed and the CI build/publish step will not
203
+ run. In that case, re-create the tag manually before pushing::
204
+
205
+ git tag -d vX.Y.Z
206
+ git tag -s vX.Y.Z -m "vX.Y.Z"
207
+
208
+ To avoid this every time, add the following to ``.bumpversion.cfg``::
209
+
210
+ [bumpversion]
211
+ current_version = X.Y.Z
212
+ commit = True
213
+ tag = True
214
+ sign_tags = True
215
+
216
+ 4. Push the branch and the tag::
217
+
218
+ git push origin main --tags
219
+
220
+ Pushing the signed tag is what triggers the CI job that builds and
221
+ publishes the package to PyPI.
222
+
223
+ Troubleshooting
224
+ ***************
225
+
226
+ * **"tag already exists" / dirty working tree**: make sure ``git status`` is
227
+ clean and ``git pull origin main`` was run before ``bump2version``,
228
+ otherwise the bump commit/tag will be based on stale history.
229
+ * **CI does not trigger a PyPI build**: check that the pushed tag is signed
230
+ (``git tag -v vX.Y.Z`` should show a valid GPG signature) and that
231
+ ``user.signingkey`` is configured correctly.
232
+
233
+
154
234
  Changelog
155
235
  =========
156
236
 
@@ -156,3 +156,83 @@ Note, to combine the coverage data from all the tox environments run:
156
156
  - ::
157
157
 
158
158
  PYTEST_ADDOPTS=--cov-append tox
159
+
160
+
161
+ Release process
162
+ ===============
163
+
164
+ This project uses `bump2version <https://github.com/c4urself/bump2version>`_ to
165
+ manage version bumps across ``.bumpversion.cfg``, ``docs/conf.py``,
166
+ ``setup.py`` and ``src/travis2docker/__init__.py``.
167
+
168
+ Requirements
169
+ ************
170
+
171
+ * Write access to push to ``main`` and to push tags.
172
+ * A GPG key configured for signing git tags. The CI pipeline that publishes
173
+ the package to PyPI only builds from **signed** tags::
174
+
175
+ git config --global user.signingkey <YOUR_GPG_KEY_ID>
176
+
177
+ * ``bump2version`` installed::
178
+
179
+ pip install bump2version
180
+
181
+ Steps to release a new version
182
+ ******************************
183
+
184
+
185
+ 1. Make sure you are on ``main`` and it is up to date, with no local commits
186
+ ahead of ``origin``::
187
+
188
+ git checkout main
189
+ git pull origin main
190
+ git status # must be clean
191
+
192
+ 2. Bump the version. This creates a commit and a tag automatically
193
+ (choose ``patch``, ``minor`` or ``major`` as needed)::
194
+
195
+ bump2version patch
196
+
197
+ This updates::
198
+
199
+ .bumpversion.cfg
200
+ docs/conf.py
201
+ setup.py
202
+ src/travis2docker/__init__.py
203
+
204
+ 3. Verify the tag was created and that it is **signed**::
205
+
206
+ git tag -v vX.Y.Z
207
+
208
+ If ``sign_tags`` is not enabled in ``.bumpversion.cfg``, the tag created
209
+ in step 2 will **not** be signed and the CI build/publish step will not
210
+ run. In that case, re-create the tag manually before pushing::
211
+
212
+ git tag -d vX.Y.Z
213
+ git tag -s vX.Y.Z -m "vX.Y.Z"
214
+
215
+ To avoid this every time, add the following to ``.bumpversion.cfg``::
216
+
217
+ [bumpversion]
218
+ current_version = X.Y.Z
219
+ commit = True
220
+ tag = True
221
+ sign_tags = True
222
+
223
+ 4. Push the branch and the tag::
224
+
225
+ git push origin main --tags
226
+
227
+ Pushing the signed tag is what triggers the CI job that builds and
228
+ publishes the package to PyPI.
229
+
230
+ Troubleshooting
231
+ ***************
232
+
233
+ * **"tag already exists" / dirty working tree**: make sure ``git status`` is
234
+ clean and ``git pull origin main`` was run before ``bump2version``,
235
+ otherwise the bump commit/tag will be based on stale history.
236
+ * **CI does not trigger a PyPI build**: check that the pushed tag is signed
237
+ (``git tag -v vX.Y.Z`` should show a valid GPG signature) and that
238
+ ``user.signingkey`` is configured correctly.
@@ -26,7 +26,7 @@ project = u'travis2docker'
26
26
  year = '2016'
27
27
  author = u'Vauxoo'
28
28
  copyright = '{0}, {1}'.format(year, author)
29
- version = release = u'6.4.24'
29
+ version = release = u'6.4.26'
30
30
 
31
31
  pygments_style = 'trac'
32
32
  templates_path = ['.']
@@ -13,7 +13,7 @@ def read(*names, **kwargs):
13
13
 
14
14
  setup(
15
15
  name="travis2docker",
16
- version="6.4.24",
16
+ version="6.4.26",
17
17
  license="BSD-3-Clause",
18
18
  description="Script to generate Dockerfile from .travis.yml file",
19
19
  long_description="%s\n%s"
@@ -0,0 +1 @@
1
+ __version__ = "6.4.26"
@@ -46,6 +46,7 @@ odoo_conf(){
46
46
  fi
47
47
  $ENTRYPOINT run true
48
48
  sed -i '/db_host\|db_password\|db_user\|workers\|list_db/d' $ODOO_CONF
49
+ sed -i 's/\(with_demo\s*=\s*\)False/\1True/' $ODOO_CONF
49
50
  su odoo -c "mkdir -p $ODOORC_DATA_DIR"
50
51
  }
51
52
 
@@ -99,7 +100,6 @@ install_dev_tools(){
99
100
  virtualenv \
100
101
  ipdb \
101
102
  pre-commit-vauxoo \
102
- diff-highlight \
103
103
  pg-activity \
104
104
  nodeenv \
105
105
  pdbpp
@@ -116,6 +116,11 @@ install_dev_tools(){
116
116
  touch /home/odoo/full_test-requirements.txt
117
117
  sudo -E pip install -r /home/odoo/full_test-requirements.txt
118
118
 
119
+ # Install git-delta from .deb since not all Ubuntu versions ship the package
120
+ GIT_DELTA_VERSION=0.18.2
121
+ wget -q https://github.com/dandavison/delta/releases/download/${GIT_DELTA_VERSION}/git-delta_${GIT_DELTA_VERSION}_$(dpkg --print-architecture).deb -O /tmp/git-delta.deb && \
122
+ apt install -qqq -y /tmp/git-delta.deb || true
123
+
119
124
  # Keep alive the ssh server
120
125
  # 60 seconds * 360 = 21600 seconds = 6 hours
121
126
  # https://www.bjornjohansen.no/ssh-timeout
@@ -126,13 +131,16 @@ install_dev_tools(){
126
131
  wget -O /tmp/ngrok.tgz https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz && \
127
132
  tar xvzf /tmp/ngrok.tgz -C /usr/local/bin || true
128
133
 
129
- # Configure diff-highlight on git after install
130
- cat >> /etc/gitconfig << EOF
131
- [pager]
132
- log = diff-highlight | less
133
- show = diff-highlight | less
134
- diff = diff-highlight | less
135
- EOF
134
+ # Configure color for git diff if git-delta is already installed
135
+ if command -v delta >/dev/null 2>&1; then
136
+ git config --system core.pager delta
137
+ git config --system interactive.diffFilter "delta --color-only"
138
+
139
+ git config --system delta.navigate true
140
+ git config --system delta.line-numbers true
141
+ git config --system delta.syntax-theme DarkNeon
142
+ git config --system delta.keep-plus-minus-markers true
143
+ fi
136
144
  cat >> /etc/multitail.conf << EOF
137
145
  # Odoo log
138
146
  colorscheme:odoo
@@ -104,14 +104,6 @@ def start_odoo():
104
104
  except subprocess.CalledProcessError:
105
105
  database_created = False
106
106
 
107
- configpy = "/home/odoo/instance/odoo/odoo/tools/config.py"
108
- if os.path.isfile(configpy):
109
- with open(configpy) as f_configpy:
110
- for line in f_configpy:
111
- if "--with-demo" in line:
112
- cmd.extend(["--with-demo"])
113
- break
114
-
115
107
  if not database_created:
116
108
  cmd.extend(["-i", ",".join(modules), "--workers=0", "--stop-after-init"])
117
109
  if test_enable:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: travis2docker
3
- Version: 6.4.24
3
+ Version: 6.4.26
4
4
  Summary: Script to generate Dockerfile from .travis.yml file
5
5
  Home-page: https://github.com/vauxoo/travis2docker
6
6
  Author: Vauxoo
@@ -151,6 +151,86 @@ Note, to combine the coverage data from all the tox environments run:
151
151
  PYTEST_ADDOPTS=--cov-append tox
152
152
 
153
153
 
154
+ Release process
155
+ ===============
156
+
157
+ This project uses `bump2version <https://github.com/c4urself/bump2version>`_ to
158
+ manage version bumps across ``.bumpversion.cfg``, ``docs/conf.py``,
159
+ ``setup.py`` and ``src/travis2docker/__init__.py``.
160
+
161
+ Requirements
162
+ ************
163
+
164
+ * Write access to push to ``main`` and to push tags.
165
+ * A GPG key configured for signing git tags. The CI pipeline that publishes
166
+ the package to PyPI only builds from **signed** tags::
167
+
168
+ git config --global user.signingkey <YOUR_GPG_KEY_ID>
169
+
170
+ * ``bump2version`` installed::
171
+
172
+ pip install bump2version
173
+
174
+ Steps to release a new version
175
+ ******************************
176
+
177
+
178
+ 1. Make sure you are on ``main`` and it is up to date, with no local commits
179
+ ahead of ``origin``::
180
+
181
+ git checkout main
182
+ git pull origin main
183
+ git status # must be clean
184
+
185
+ 2. Bump the version. This creates a commit and a tag automatically
186
+ (choose ``patch``, ``minor`` or ``major`` as needed)::
187
+
188
+ bump2version patch
189
+
190
+ This updates::
191
+
192
+ .bumpversion.cfg
193
+ docs/conf.py
194
+ setup.py
195
+ src/travis2docker/__init__.py
196
+
197
+ 3. Verify the tag was created and that it is **signed**::
198
+
199
+ git tag -v vX.Y.Z
200
+
201
+ If ``sign_tags`` is not enabled in ``.bumpversion.cfg``, the tag created
202
+ in step 2 will **not** be signed and the CI build/publish step will not
203
+ run. In that case, re-create the tag manually before pushing::
204
+
205
+ git tag -d vX.Y.Z
206
+ git tag -s vX.Y.Z -m "vX.Y.Z"
207
+
208
+ To avoid this every time, add the following to ``.bumpversion.cfg``::
209
+
210
+ [bumpversion]
211
+ current_version = X.Y.Z
212
+ commit = True
213
+ tag = True
214
+ sign_tags = True
215
+
216
+ 4. Push the branch and the tag::
217
+
218
+ git push origin main --tags
219
+
220
+ Pushing the signed tag is what triggers the CI job that builds and
221
+ publishes the package to PyPI.
222
+
223
+ Troubleshooting
224
+ ***************
225
+
226
+ * **"tag already exists" / dirty working tree**: make sure ``git status`` is
227
+ clean and ``git pull origin main`` was run before ``bump2version``,
228
+ otherwise the bump commit/tag will be based on stale history.
229
+ * **CI does not trigger a PyPI build**: check that the pushed tag is signed
230
+ (``git tag -v vX.Y.Z`` should show a valid GPG signature) and that
231
+ ``user.signingkey`` is configured correctly.
232
+
233
+
154
234
  Changelog
155
235
  =========
156
236
 
@@ -1 +0,0 @@
1
- __version__ = "6.4.24"
File without changes
File without changes
File without changes