-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
75 changed files
with
981 additions
and
3,386 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
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 @@ | ||
1 |
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,18 @@ | ||
name: pre-commit | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
env: | ||
SKIP: no-commit-to-branch | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: | | ||
3.9 | ||
3.x | ||
- uses: pre-commit/[email protected] |
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
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,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.8.1 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: https://github.com/teemtee/tmt.git | ||
rev: 1.39.0 | ||
hooks: | ||
- id: tmt-lint |
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ DESTDIR ?= | |
EPOCH_TEST_COMMIT ?= $(shell git merge-base $${DEST_BRANCH:-main} HEAD) | ||
HEAD ?= HEAD | ||
|
||
export PODMAN_VERSION ?= "5.2.0" | ||
export PODMAN_VERSION ?= "5.3.0" | ||
|
||
.PHONY: podman | ||
podman: | ||
|
@@ -19,12 +19,12 @@ podman: | |
|
||
.PHONY: lint | ||
lint: tox | ||
$(PYTHON) -m tox -e black,pylint | ||
$(PYTHON) -m tox -e format,lint | ||
|
||
.PHONY: tests | ||
tests: tox | ||
# see tox.ini for environment variable settings | ||
$(PYTHON) -m tox -e coverage,py36,py38,py39,py310,py311 | ||
$(PYTHON) -m tox -e coverage,py39,py310,py311,py312,py313 | ||
|
||
.PHONY: unittest | ||
unittest: | ||
|
@@ -39,9 +39,9 @@ integration: | |
.PHONY: tox | ||
tox: | ||
ifeq (, $(shell which dnf)) | ||
brew install python@3.8 python@3.9 python@3.10 python@3.11 | ||
brew install python@3.9 python@3.10 python@3.11 python@3.12 [email protected] | ||
else | ||
-dnf install -y python3 python3.6 python3.8 python3.9 | ||
-dnf install -y python3 python3.9 python3.10 python3.11 python3.12 python3.13 | ||
endif | ||
# ensure tox is available. It will take care of other testing requirements | ||
$(PYTHON) -m pip install --user tox | ||
|
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ reviewers: | |
- baude | ||
- rhatdan | ||
- TomSweeneyRedHat | ||
- Edward5hen |
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
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
{% for docname in docnames %} | ||
{{ docname }} | ||
{%- endfor %} | ||
|
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
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 |
---|---|---|
|
@@ -74,4 +74,4 @@ Indices and tables | |
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
* :ref:`search` |
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,56 @@ | ||
summary: Run Python Podman Tests | ||
|
||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
prepare: | ||
- name: pkg dependencies | ||
how: install | ||
package: | ||
- make | ||
- podman | ||
- python3-pip | ||
- python3.9 | ||
- python3.10 | ||
- python3.11 | ||
- python3.12 | ||
- python3.13 | ||
|
||
- name: pip dependencies | ||
how: shell | ||
script: | ||
- pip3 install -r test-requirements.txt | ||
|
||
- name: ssh configuration | ||
how: shell | ||
script: | ||
- ssh-keygen -t ecdsa -b 521 -f /root/.ssh/id_ecdsa -P "" | ||
- cp /root/.ssh/authorized_keys /root/.ssh/authorized_keys% | ||
- cat /root/.ssh/id_ecdsa.pub >>/root/.ssh/authorized_keys | ||
|
||
/upstream: | ||
/sanity: | ||
summary: Run Sanity and Coverage checks on Python Podman | ||
discover+: | ||
# we want to change this to tag:stable once all the coverage tests are fixed | ||
filter: tag:lint | ||
|
||
/tests: | ||
summary: Run Python Podman Tests on upstream PRs | ||
discover+: | ||
filter: tag:upstream | ||
|
||
adjust+: | ||
enabled: false | ||
when: initiator is not defined or initiator != packit | ||
|
||
/downstream: | ||
/tests: | ||
summary: Run Python Podman Tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
filter: tag:downstream | ||
|
||
adjust+: | ||
enabled: false | ||
when: initiator == packit |
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
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
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
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
Oops, something went wrong.