travis2docker 7.0.3__tar.gz → 7.0.4__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.
- {travis2docker-7.0.3 → travis2docker-7.0.4}/.bumpversion.cfg +1 -1
- {travis2docker-7.0.3 → travis2docker-7.0.4}/PKG-INFO +1 -1
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/conf.py +1 -1
- {travis2docker-7.0.3 → travis2docker-7.0.4}/setup.py +1 -1
- travis2docker-7.0.4/src/travis2docker/__init__.py +1 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/build.sh +2 -2
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/PKG-INFO +1 -1
- {travis2docker-7.0.3 → travis2docker-7.0.4}/tests/test_travis2docker.py +15 -0
- travis2docker-7.0.3/src/travis2docker/__init__.py +0 -1
- {travis2docker-7.0.3 → travis2docker-7.0.4}/.coveragerc +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/AUTHORS.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/CHANGELOG.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/CONTRIBUTING.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/LICENSE +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/MANIFEST.in +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/README.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/authors.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/changelog.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/contributing.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/index.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/installation.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/readme.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/reference/index.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/reference/travis2docker.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/requirements.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/spelling_wordlist.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/usage.rst +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/requirements.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/setup.cfg +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/__main__.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/cli.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/docker_helper/build.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/exceptions.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/git_run.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/logging_colored.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.coveragerc +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/extensions.json +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/launch.json +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/settings.json +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/10-build.sh +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/20-run.sh +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/Dockerfile_deployv +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/devcontainer.json +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/entrypoint_deployv.sh +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/travis2docker.py +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/SOURCES.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/dependency_links.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/entry_points.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/not-zip-safe +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/requires.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/top_level.txt +0 -0
- {travis2docker-7.0.3 → travis2docker-7.0.4}/tox.ini +0 -0
|
@@ -13,7 +13,7 @@ def read(*names, **kwargs):
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="travis2docker",
|
|
16
|
-
version="7.0.
|
|
16
|
+
version="7.0.4",
|
|
17
17
|
license="BSD-3-Clause",
|
|
18
18
|
description="Script to generate a development Dockerfile from the deployv image of a repository",
|
|
19
19
|
long_description="%s\n%s"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "7.0.4"
|
|
@@ -94,7 +94,7 @@ install_dev_tools(){
|
|
|
94
94
|
# emacs \
|
|
95
95
|
# byobu \
|
|
96
96
|
# multitail # Set the terminal with red letters build the docker
|
|
97
|
-
|
|
97
|
+
pip install -q \
|
|
98
98
|
ipython \
|
|
99
99
|
py-spy \
|
|
100
100
|
virtualenv \
|
|
@@ -115,7 +115,7 @@ install_dev_tools(){
|
|
|
115
115
|
# pre install pre-commit-vauxoo?
|
|
116
116
|
# sudo su odoo -c "git init /tmp/test && cd /tmp/test && pre-commit-vauxoo -f"
|
|
117
117
|
touch /home/odoo/full_test-requirements.txt
|
|
118
|
-
|
|
118
|
+
pip install -r /home/odoo/full_test-requirements.txt
|
|
119
119
|
|
|
120
120
|
# Install git-delta from .deb since not all Ubuntu versions ship the package
|
|
121
121
|
GIT_DELTA_VERSION=0.18.2
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import json
|
|
4
4
|
import os
|
|
5
5
|
import pathlib
|
|
6
|
+
import re
|
|
6
7
|
import subprocess
|
|
7
8
|
import sys
|
|
8
9
|
from shutil import which
|
|
@@ -215,3 +216,17 @@ def test_main_without_variables_sh(tmp_path, monkeypatch):
|
|
|
215
216
|
]
|
|
216
217
|
with pytest.raises(InvalidRepoBranchError):
|
|
217
218
|
cli_main(return_result=True)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def test_build_sh_pip_without_sudo():
|
|
222
|
+
"""build.sh runs as root in the Dockerfile, so pip must not go through sudo:
|
|
223
|
+
sudo resets PATH to its secure_path and images whose python lives outside of
|
|
224
|
+
it (e.g. uv managed /opt/python/current/bin) fail with "sudo: pip: command not found"
|
|
225
|
+
"""
|
|
226
|
+
build_sh = pathlib.Path(__file__).resolve().parent.parent / "src" / "travis2docker" / "templates" / "build.sh"
|
|
227
|
+
sudo_pip_lines = [
|
|
228
|
+
line.strip()
|
|
229
|
+
for line in build_sh.read_text().splitlines()
|
|
230
|
+
if not line.strip().startswith("#") and re.search(r"\bsudo\b.*\bpip3?\b", line)
|
|
231
|
+
]
|
|
232
|
+
assert not sudo_pip_lines, "pip called through sudo in build.sh: %s" % sudo_pip_lines
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "7.0.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/extensions.json
RENAMED
|
File without changes
|
|
File without changes
|
{travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/settings.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/entrypoint_deployv.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|