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.
Files changed (52) hide show
  1. {travis2docker-7.0.3 → travis2docker-7.0.4}/.bumpversion.cfg +1 -1
  2. {travis2docker-7.0.3 → travis2docker-7.0.4}/PKG-INFO +1 -1
  3. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/conf.py +1 -1
  4. {travis2docker-7.0.3 → travis2docker-7.0.4}/setup.py +1 -1
  5. travis2docker-7.0.4/src/travis2docker/__init__.py +1 -0
  6. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/build.sh +2 -2
  7. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/PKG-INFO +1 -1
  8. {travis2docker-7.0.3 → travis2docker-7.0.4}/tests/test_travis2docker.py +15 -0
  9. travis2docker-7.0.3/src/travis2docker/__init__.py +0 -1
  10. {travis2docker-7.0.3 → travis2docker-7.0.4}/.coveragerc +0 -0
  11. {travis2docker-7.0.3 → travis2docker-7.0.4}/AUTHORS.rst +0 -0
  12. {travis2docker-7.0.3 → travis2docker-7.0.4}/CHANGELOG.rst +0 -0
  13. {travis2docker-7.0.3 → travis2docker-7.0.4}/CONTRIBUTING.rst +0 -0
  14. {travis2docker-7.0.3 → travis2docker-7.0.4}/LICENSE +0 -0
  15. {travis2docker-7.0.3 → travis2docker-7.0.4}/MANIFEST.in +0 -0
  16. {travis2docker-7.0.3 → travis2docker-7.0.4}/README.rst +0 -0
  17. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/authors.rst +0 -0
  18. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/changelog.rst +0 -0
  19. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/contributing.rst +0 -0
  20. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/index.rst +0 -0
  21. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/installation.rst +0 -0
  22. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/readme.rst +0 -0
  23. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/reference/index.rst +0 -0
  24. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/reference/travis2docker.rst +0 -0
  25. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/requirements.txt +0 -0
  26. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/spelling_wordlist.txt +0 -0
  27. {travis2docker-7.0.3 → travis2docker-7.0.4}/docs/usage.rst +0 -0
  28. {travis2docker-7.0.3 → travis2docker-7.0.4}/requirements.txt +0 -0
  29. {travis2docker-7.0.3 → travis2docker-7.0.4}/setup.cfg +0 -0
  30. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/__main__.py +0 -0
  31. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/cli.py +0 -0
  32. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/docker_helper/build.py +0 -0
  33. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/exceptions.py +0 -0
  34. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/git_run.py +0 -0
  35. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/logging_colored.py +0 -0
  36. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.coveragerc +0 -0
  37. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/extensions.json +0 -0
  38. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/launch.json +0 -0
  39. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/.vscode/settings.json +0 -0
  40. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/10-build.sh +0 -0
  41. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/20-run.sh +0 -0
  42. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/Dockerfile_deployv +0 -0
  43. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/devcontainer.json +0 -0
  44. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/templates/entrypoint_deployv.sh +0 -0
  45. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker/travis2docker.py +0 -0
  46. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/SOURCES.txt +0 -0
  47. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/dependency_links.txt +0 -0
  48. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/entry_points.txt +0 -0
  49. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/not-zip-safe +0 -0
  50. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/requires.txt +0 -0
  51. {travis2docker-7.0.3 → travis2docker-7.0.4}/src/travis2docker.egg-info/top_level.txt +0 -0
  52. {travis2docker-7.0.3 → travis2docker-7.0.4}/tox.ini +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 7.0.3
2
+ current_version = 7.0.4
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: 7.0.3
3
+ Version: 7.0.4
4
4
  Summary: Script to generate a development Dockerfile from the deployv image of a repository
5
5
  Home-page: https://github.com/vauxoo/travis2docker
6
6
  Author: Vauxoo
@@ -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'7.0.3'
29
+ version = release = u'7.0.4'
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="7.0.3",
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
- sudo -E pip install -q \
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
- sudo -E pip install -r /home/odoo/full_test-requirements.txt
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: travis2docker
3
- Version: 7.0.3
3
+ Version: 7.0.4
4
4
  Summary: Script to generate a development Dockerfile from the deployv image of a repository
5
5
  Home-page: https://github.com/vauxoo/travis2docker
6
6
  Author: Vauxoo
@@ -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