travis2docker 6.4.15__tar.gz → 6.4.17__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-6.4.15 → travis2docker-6.4.17}/.bumpversion.cfg +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/PKG-INFO +2 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/conf.py +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/setup.py +2 -1
- travis2docker-6.4.17/src/travis2docker/__init__.py +1 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/cli.py +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/Dockerfile_deployv +0 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/build.sh +2 -22
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis2docker.py +23 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/PKG-INFO +2 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/tox.ini +1 -5
- travis2docker-6.4.15/src/travis2docker/__init__.py +0 -1
- {travis2docker-6.4.15 → travis2docker-6.4.17}/.coveragerc +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/AUTHORS.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/CHANGELOG.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/CONTRIBUTING.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/LICENSE +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/MANIFEST.in +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/README.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/authors.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/changelog.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/contributing.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/index.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/installation.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/readme.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/reference/index.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/reference/travis2docker.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/requirements.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/spelling_wordlist.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/docs/usage.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/examples/example_1.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/examples/example_2.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/examples/example_3.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/examples/example_4.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/examples/example_5.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/requirements.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/setup.cfg +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/__main__.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/docker_helper/build.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/exceptions.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/git_run.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.coveragerc +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.vscode/extensions.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.vscode/launch.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.vscode/settings.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/10-build.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/20-run.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/Dockerfile +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/entrypoint.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/entrypoint_deployv.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/rvm_env.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/.git +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/.gitignore +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/.travis.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/LICENSE +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/README.md +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/add_all.rb +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/bin/travis-add-source +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/ubuntu.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/SOURCES.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/dependency_links.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/entry_points.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/not-zip-safe +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/requires.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/top_level.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.17}/tests/test_travis2docker.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: travis2docker
|
|
3
|
-
Version: 6.4.
|
|
3
|
+
Version: 6.4.17
|
|
4
4
|
Summary: Script to generate Dockerfile from .travis.yml file
|
|
5
5
|
Home-page: https://github.com/vauxoo/travis2docker
|
|
6
6
|
Author: Vauxoo
|
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
25
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
25
26
|
Classifier: Topic :: Utilities
|
|
@@ -15,7 +15,7 @@ def read(*names, **kwargs):
|
|
|
15
15
|
|
|
16
16
|
setup(
|
|
17
17
|
name='travis2docker',
|
|
18
|
-
version='6.4.
|
|
18
|
+
version='6.4.17',
|
|
19
19
|
license='BSD',
|
|
20
20
|
description='Script to generate Dockerfile from .travis.yml file',
|
|
21
21
|
long_description='%s\n%s'
|
|
@@ -48,6 +48,7 @@ setup(
|
|
|
48
48
|
'Programming Language :: Python :: 3.9',
|
|
49
49
|
'Programming Language :: Python :: 3.10',
|
|
50
50
|
'Programming Language :: Python :: 3.11',
|
|
51
|
+
'Programming Language :: Python :: 3.12',
|
|
51
52
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
52
53
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
53
54
|
# uncomment if you test on these interpreters:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "6.4.17"
|
|
@@ -94,7 +94,7 @@ def main(return_result=False):
|
|
|
94
94
|
parser.add_argument(
|
|
95
95
|
'--root-path',
|
|
96
96
|
dest='root_path',
|
|
97
|
-
help="Root path to save scripts generated
|
|
97
|
+
help=f"Root path to save scripts generated.\nDefault: {default_root_path}",
|
|
98
98
|
default=default_root_path,
|
|
99
99
|
)
|
|
100
100
|
parser.add_argument(
|
|
@@ -55,26 +55,6 @@ EOF
|
|
|
55
55
|
# alias odoo
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
set_authorized_keys(){
|
|
59
|
-
YELLOW='\033[0;33m'
|
|
60
|
-
NC='\033[0m'
|
|
61
|
-
|
|
62
|
-
AUTH_FILE="${HOME}/.ssh/authorized_keys"
|
|
63
|
-
ED_KEY="${HOME}/.ssh/id_ed25519.pub"
|
|
64
|
-
RSA_KEY="${HOME}/.ssh/id_rsa.pub"
|
|
65
|
-
|
|
66
|
-
echo "INFO: Adding public key to ~/.ssh/authorized_keys"
|
|
67
|
-
if [ -f "${ED_KEY}" ]; then
|
|
68
|
-
tee -a "${AUTH_FILE}" < "${ED_KEY}"
|
|
69
|
-
elif [ -f "${RSA_KEY}" ]; then
|
|
70
|
-
printf "${YELLOW}WARNING: RSA keys are deprecated, consider changing to ed25519\n${NC}"
|
|
71
|
-
tee -a "${AUTH_FILE}" < "${RSA_KEY}"
|
|
72
|
-
else
|
|
73
|
-
echo "INFO: No public key found. No key added to ~/.ssh/authorized_keys"
|
|
74
|
-
fi
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
58
|
# You can add new packages here
|
|
79
59
|
install_dev_tools(){
|
|
80
60
|
apt update -qq
|
|
@@ -98,7 +78,7 @@ install_dev_tools(){
|
|
|
98
78
|
# emacs \
|
|
99
79
|
# byobu \
|
|
100
80
|
# multitail # Set the terminal with red letters build the docker
|
|
101
|
-
sudo pip install -q \
|
|
81
|
+
sudo -E pip install -q \
|
|
102
82
|
ipython \
|
|
103
83
|
py-spy \
|
|
104
84
|
virtualenv \
|
|
@@ -119,7 +99,7 @@ install_dev_tools(){
|
|
|
119
99
|
# pre install pre-commit-vauxoo?
|
|
120
100
|
# sudo su odoo -c "git init /tmp/test && cd /tmp/test && pre-commit-vauxoo -f"
|
|
121
101
|
touch /home/odoo/full_test-requirements.txt
|
|
122
|
-
sudo pip install -r /home/odoo/full_test-requirements.txt
|
|
102
|
+
sudo -E pip install -r /home/odoo/full_test-requirements.txt
|
|
123
103
|
|
|
124
104
|
# Keep alive the ssh server
|
|
125
105
|
# 60 seconds * 360 = 21600 seconds = 6 hours
|
|
@@ -306,6 +306,7 @@ class Travis2Docker(object):
|
|
|
306
306
|
copies = []
|
|
307
307
|
for copy_path, dest in self.copy_paths:
|
|
308
308
|
copies.append((self.copy_path(copy_path), dest))
|
|
309
|
+
self.set_authorized_key()
|
|
309
310
|
kwargs = {
|
|
310
311
|
'runs': [],
|
|
311
312
|
'copies': copies,
|
|
@@ -381,3 +382,25 @@ class Travis2Docker(object):
|
|
|
381
382
|
else:
|
|
382
383
|
raise UserWarning("Just directory or file is supported to copy [%s]" % src)
|
|
383
384
|
return os.path.relpath(dest_path, self.curr_work_path)
|
|
385
|
+
|
|
386
|
+
def set_authorized_key(self):
|
|
387
|
+
ssh_dir = os.path.expanduser("~/.ssh")
|
|
388
|
+
ed_key = os.path.join(ssh_dir, "id_ed25519.pub")
|
|
389
|
+
rsa_key = os.path.join(ssh_dir, "id_rsa.pub")
|
|
390
|
+
|
|
391
|
+
to_copy = False
|
|
392
|
+
if os.path.isfile(ed_key):
|
|
393
|
+
to_copy = ed_key
|
|
394
|
+
elif os.path.isfile(rsa_key):
|
|
395
|
+
print("RSA keys are deprecated, consider changing to ed25519")
|
|
396
|
+
to_copy = rsa_key
|
|
397
|
+
|
|
398
|
+
if not to_copy:
|
|
399
|
+
print("No public key found. No key added to ~/.ssh/authorized_keys. SSH login won't work.")
|
|
400
|
+
return
|
|
401
|
+
|
|
402
|
+
with open(to_copy, "r", encoding="utf-8") as key_fd:
|
|
403
|
+
pub_key = key_fd.read()
|
|
404
|
+
|
|
405
|
+
with open(os.path.join(self.curr_work_path, ".ssh", "authorized_keys"), "w", encoding="utf-8") as auth_fd:
|
|
406
|
+
auth_fd.write(pub_key)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: travis2docker
|
|
3
|
-
Version: 6.4.
|
|
3
|
+
Version: 6.4.17
|
|
4
4
|
Summary: Script to generate Dockerfile from .travis.yml file
|
|
5
5
|
Home-page: https://github.com/vauxoo/travis2docker
|
|
6
6
|
Author: Vauxoo
|
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
25
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
25
26
|
Classifier: Topic :: Utilities
|
|
@@ -74,11 +74,7 @@ commands =
|
|
|
74
74
|
|
|
75
75
|
[testenv:build]
|
|
76
76
|
skip_install = true
|
|
77
|
-
deps =
|
|
78
|
-
build
|
|
79
|
-
bump2version
|
|
80
|
-
twine
|
|
81
|
-
wheel
|
|
77
|
+
deps = -r{toxinidir}/requirements-dev.txt
|
|
82
78
|
commands =
|
|
83
79
|
python -m build --sdist --wheel --outdir dist_wo_pbr/
|
|
84
80
|
python -c "import shutil;shutil.rmtree('dist/', ignore_errors=True)"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "6.4.15"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.vscode/extensions.json
RENAMED
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.vscode/launch.json
RENAMED
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/.vscode/settings.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/templates/entrypoint_deployv.sh
RENAMED
|
File without changes
|
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker/travis-ci-apt-source-whitelist/.git
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
|
{travis2docker-6.4.15 → travis2docker-6.4.17}/src/travis2docker.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|