forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "py3-parallel-ssh: remove package & deps (wolfi-dev#23756) (wo…
…lfi-dev#26270)" This reverts commit a5e4968. Restore these dependencies for py3-cassandra-medusa now that we're using wolfi-python-deps again. Signed-off-by: dann frazier <[email protected]>
- Loading branch information
Showing
6 changed files
with
239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Generated from https://pypi.org/project/parallel-ssh/ | ||
package: | ||
name: py3-parallel-ssh | ||
version: 2.12.0 | ||
epoch: 1 | ||
description: Asynchronous parallel SSH library | ||
copyright: | ||
- license: LGPL-2.1-or-later | ||
dependencies: | ||
runtime: | ||
- py3-gevent | ||
- py3-ssh2-python | ||
- py3-ssh-python | ||
- python3 | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- wolfi-base | ||
|
||
pipeline: | ||
- uses: fetch | ||
with: | ||
expected-sha256: be2c06ee8765273d204e00f82afae2dace5eebaefc5343d1dfc64513642161e0 | ||
uri: https://files.pythonhosted.org/packages/source/p/parallel-ssh/parallel-ssh-${{package.version}}.tar.gz | ||
|
||
- uses: patch | ||
with: | ||
patches: config-parser.patch | ||
|
||
- name: Python Build | ||
uses: python/build-wheel | ||
|
||
- uses: strip | ||
|
||
update: | ||
enabled: true | ||
release-monitor: | ||
identifier: 7890 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/versioneer.py b/versioneer.py | ||
index a287060..eafcdac 100644 | ||
--- a/versioneer.py | ||
+++ b/versioneer.py | ||
@@ -339,9 +339,9 @@ def get_config_from_root(root): | ||
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at | ||
# the top of versioneer.py for instructions on writing your setup.cfg . | ||
setup_cfg = os.path.join(root, "setup.cfg") | ||
- parser = configparser.SafeConfigParser() | ||
+ parser = configparser.ConfigParser() | ||
with open(setup_cfg, "r") as f: | ||
- parser.readfp(f) | ||
+ parser.read_file(f) | ||
VCS = parser.get("versioneer", "VCS") # mandatory | ||
|
||
def get(parser, name): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Generated from https://pypi.org/project/ssh-python/ | ||
package: | ||
name: py3-ssh-python | ||
version: 1.0.0 | ||
epoch: 1 | ||
description: libssh C library bindings for Python. | ||
copyright: | ||
- license: LGPL-2.1-only | ||
dependencies: | ||
runtime: | ||
- python3 | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- cmake | ||
- libssh2 | ||
- libssh2-dev | ||
- libssl3 | ||
- openssl | ||
- openssl-dev | ||
- py3.11-installer | ||
- py3.11-pip | ||
- python-3.11 | ||
- python-3.11-dev | ||
- zlib | ||
- zlib-dev | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
expected-commit: a62aaf26aa18b861242364ddf3c18bc5d8343ae6 | ||
repository: https://github.com/ParallelSSH/ssh-python | ||
tag: ${{package.version}} | ||
|
||
- uses: patch | ||
with: | ||
patches: config-parser.patch | ||
|
||
- name: Python Build | ||
runs: | | ||
pip install wheel | ||
python setup.py bdist_wheel | ||
- runs: | | ||
# Setup the virtualenv | ||
python -m venv .venv --system-site-packages | ||
# Bump pip to patch a CVE | ||
.venv/bin/pip install --upgrade pip==23.3.2 setuptools==65.5.1 | ||
- runs: | | ||
.venv/bin/pip install -I --no-compile dist/*.whl | ||
- runs: | | ||
mkdir -p ${{targets.destdir}}/usr/share/py3-ssh | ||
mv .venv ${{targets.destdir}}/usr/share/py3-ssh/ | ||
# edit the venv paths | ||
sed -i "s|/home/build|/usr/share/py3-ssh|g" ${{targets.destdir}}/usr/share/py3-ssh/.venv/bin/* | ||
# allow site-packages | ||
sed -i "s|include-system-site-packages = false|include-system-site-packages = true|g" ${{targets.destdir}}/usr/share/py3-ssh/.venv/pyvenv.cfg | ||
- uses: strip | ||
|
||
update: | ||
enabled: true | ||
ignore-regex-patterns: | ||
- (.*).post(.*) | ||
- 03.0 | ||
github: | ||
identifier: ParallelSSH/ssh-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/versioneer.py b/versioneer.py | ||
index a287060..eafcdac 100644 | ||
--- a/versioneer.py | ||
+++ b/versioneer.py | ||
@@ -339,9 +339,9 @@ def get_config_from_root(root): | ||
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at | ||
# the top of versioneer.py for instructions on writing your setup.cfg . | ||
setup_cfg = os.path.join(root, "setup.cfg") | ||
- parser = configparser.SafeConfigParser() | ||
+ parser = configparser.ConfigParser() | ||
with open(setup_cfg, "r") as f: | ||
- parser.readfp(f) | ||
+ parser.read_file(f) | ||
VCS = parser.get("versioneer", "VCS") # mandatory | ||
|
||
def get(parser, name): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Generated from https://pypi.org/project/ssh2-python/ | ||
package: | ||
name: py3-ssh2-python | ||
version: 1.0.0 | ||
epoch: 1 | ||
description: Bindings for libssh2 C library | ||
copyright: | ||
- license: LGPL-2.1-only | ||
dependencies: | ||
runtime: | ||
- python-3 | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- cmake | ||
- libssh2 | ||
- libssh2-dev | ||
- libssl3 | ||
- openssl | ||
- openssl-dev | ||
- py3.11-installer | ||
- py3.11-pip | ||
- python-3.11 | ||
- python-3.11-dev | ||
- zlib | ||
- zlib-dev | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
expected-commit: 018fd695ebadad7eed102ec3a00dcfa70cf44e83 | ||
repository: https://github.com/ParallelSSH/ssh2-python | ||
tag: ${{package.version}} | ||
|
||
- uses: patch | ||
with: | ||
patches: config-parser.patch | ||
|
||
- name: Python Build | ||
runs: | | ||
pip install wheel | ||
python setup.py bdist_wheel | ||
- runs: | | ||
# Setup the virtualenv | ||
python -m venv .venv --system-site-packages | ||
# Bump pip to patch a CVE | ||
.venv/bin/pip install --upgrade pip==23.3.2 setuptools==65.5.1 | ||
- runs: | | ||
.venv/bin/pip install -I --no-compile dist/*.whl | ||
- runs: | | ||
mkdir -p ${{targets.destdir}}/usr/share/py3-ssh2 | ||
mv .venv ${{targets.destdir}}/usr/share/py3-ssh2/ | ||
# edit the venv paths | ||
sed -i "s|/home/build|/usr/share/py3-ssh2|g" ${{targets.destdir}}/usr/share/py3-ssh2/.venv/bin/* | ||
# allow site-packages | ||
sed -i "s|include-system-site-packages = false|include-system-site-packages = true|g" ${{targets.destdir}}/usr/share/py3-ssh2/.venv/pyvenv.cfg | ||
- uses: strip | ||
|
||
update: | ||
enabled: true | ||
ignore-regex-patterns: | ||
- (.*).post(.*) | ||
github: | ||
identifier: ParallelSSH/ssh2-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/versioneer.py b/versioneer.py | ||
index a287060..eafcdac 100644 | ||
--- a/versioneer.py | ||
+++ b/versioneer.py | ||
@@ -339,9 +339,9 @@ def get_config_from_root(root): | ||
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at | ||
# the top of versioneer.py for instructions on writing your setup.cfg . | ||
setup_cfg = os.path.join(root, "setup.cfg") | ||
- parser = configparser.SafeConfigParser() | ||
+ parser = configparser.ConfigParser() | ||
with open(setup_cfg, "r") as f: | ||
- parser.readfp(f) | ||
+ parser.read_file(f) | ||
VCS = parser.get("versioneer", "VCS") # mandatory | ||
|
||
def get(parser, name): |