koan 3.2.1__tar.gz → 3.2.3__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 (102) hide show
  1. {koan-3.2.1 → koan-3.2.3}/.github/workflows/testing.yml +7 -2
  2. {koan-3.2.1 → koan-3.2.3}/PKG-INFO +1 -2
  3. koan-3.2.3/koan/_version.py +5 -0
  4. {koan-3.2.1 → koan-3.2.3}/koan/app.py +1 -1
  5. {koan-3.2.1 → koan-3.2.3}/koan/utils.py +1 -1
  6. {koan-3.2.1 → koan-3.2.3}/koan/virt/openvz.py +1 -1
  7. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/PKG-INFO +1 -2
  8. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/SOURCES.txt +10 -1
  9. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/requires.txt +0 -1
  10. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/scm_file_list.json +10 -1
  11. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/scm_version.json +2 -2
  12. {koan-3.2.1 → koan-3.2.3}/setup.cfg +0 -1
  13. koan-3.2.3/tests/test_app.py +1748 -0
  14. koan-3.2.3/tests/test_cexceptions.py +51 -0
  15. koan-3.2.3/tests/test_cli.py +257 -0
  16. koan-3.2.3/tests/test_configurator.py +444 -0
  17. koan-3.2.3/tests/test_register.py +240 -0
  18. koan-3.2.3/tests/test_utils.py +869 -0
  19. koan-3.2.3/tests/test_virt_image.py +47 -0
  20. koan-3.2.3/tests/test_virt_openvz.py +169 -0
  21. koan-3.2.3/tests/test_virt_qemu.py +143 -0
  22. koan-3.2.3/tests/test_virt_vmw.py +207 -0
  23. koan-3.2.3/tests/test_virt_xen.py +47 -0
  24. koan-3.2.1/tests/virtinstall.py → koan-3.2.3/tests/test_virtinstall.py +68 -34
  25. koan-3.2.1/koan/_version.py +0 -5
  26. koan-3.2.1/tests/test_app.py +0 -26
  27. koan-3.2.1/tests/test_utils.py +0 -95
  28. {koan-3.2.1 → koan-3.2.3}/.dockerignore +0 -0
  29. {koan-3.2.1 → koan-3.2.3}/.github/FUNDING.yml +0 -0
  30. {koan-3.2.1 → koan-3.2.3}/.github/ISSUE_TEMPLATE/01_bug_report.md +0 -0
  31. {koan-3.2.1 → koan-3.2.3}/.github/ISSUE_TEMPLATE/02_feature_request.md +0 -0
  32. {koan-3.2.1 → koan-3.2.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  33. {koan-3.2.1 → koan-3.2.3}/.github/dependabot.yml +0 -0
  34. {koan-3.2.1 → koan-3.2.3}/.github/pull_request_template.md +0 -0
  35. {koan-3.2.1 → koan-3.2.3}/.github/workflows/codeql-analysis.yml +0 -0
  36. {koan-3.2.1 → koan-3.2.3}/.github/workflows/lint.yml +0 -0
  37. {koan-3.2.1 → koan-3.2.3}/.github/workflows/packaging.yml +0 -0
  38. {koan-3.2.1 → koan-3.2.3}/.github/workflows/pypi.yml +0 -0
  39. {koan-3.2.1 → koan-3.2.3}/.github/workflows/release.yml +0 -0
  40. {koan-3.2.1 → koan-3.2.3}/.gitignore +0 -0
  41. {koan-3.2.1 → koan-3.2.3}/.pre-commit-config.yaml +0 -0
  42. {koan-3.2.1 → koan-3.2.3}/.readthedocs.yml +0 -0
  43. {koan-3.2.1 → koan-3.2.3}/.releaserc.json +0 -0
  44. {koan-3.2.1 → koan-3.2.3}/AGENTS.md +0 -0
  45. {koan-3.2.1 → koan-3.2.3}/AUTHORS.in +0 -0
  46. {koan-3.2.1 → koan-3.2.3}/CLAUDE.md +0 -0
  47. {koan-3.2.1 → koan-3.2.3}/CONTRIBUTING.md +0 -0
  48. {koan-3.2.1 → koan-3.2.3}/COPYING +0 -0
  49. {koan-3.2.1 → koan-3.2.3}/MANIFEST.in +0 -0
  50. {koan-3.2.1 → koan-3.2.3}/Makefile +0 -0
  51. {koan-3.2.1 → koan-3.2.3}/README.md +0 -0
  52. {koan-3.2.1 → koan-3.2.3}/bin/ovz-install +0 -0
  53. {koan-3.2.1 → koan-3.2.3}/commitlint.config.js +0 -0
  54. {koan-3.2.1 → koan-3.2.3}/debian/changelog +0 -0
  55. {koan-3.2.1 → koan-3.2.3}/debian/compat +0 -0
  56. {koan-3.2.1 → koan-3.2.3}/debian/control +0 -0
  57. {koan-3.2.1 → koan-3.2.3}/debian/copyright +0 -0
  58. {koan-3.2.1 → koan-3.2.3}/debian/koan.docs +0 -0
  59. {koan-3.2.1 → koan-3.2.3}/debian/rules +0 -0
  60. {koan-3.2.1 → koan-3.2.3}/debian/source/format +0 -0
  61. {koan-3.2.1 → koan-3.2.3}/docker/debs/build-and-install-debs.sh +0 -0
  62. {koan-3.2.1 → koan-3.2.3}/docker/debs/debian/Debian13.dockerfile +0 -0
  63. {koan-3.2.1 → koan-3.2.3}/docker/debs/install-debs.sh +0 -0
  64. {koan-3.2.1 → koan-3.2.3}/docker/rpms/Fedora/Fedora.dockerfile +0 -0
  65. {koan-3.2.1 → koan-3.2.3}/docker/rpms/RockyLinux10/RockyLinux10.dockerfile +0 -0
  66. {koan-3.2.1 → koan-3.2.3}/docker/rpms/build-and-install-rpms.sh +0 -0
  67. {koan-3.2.1 → koan-3.2.3}/docker/rpms/install-rpms.sh +0 -0
  68. {koan-3.2.1 → koan-3.2.3}/docker/rpms/openSUSE_Leap/openSUSE_Leap.dockerfile +0 -0
  69. {koan-3.2.1 → koan-3.2.3}/docker/rpms/openSUSE_Tumbleweed/openSUSE_TW.dockerfile +0 -0
  70. {koan-3.2.1 → koan-3.2.3}/docs/Makefile +0 -0
  71. {koan-3.2.1 → koan-3.2.3}/docs/cobbler-register.rst +0 -0
  72. {koan-3.2.1 → koan-3.2.3}/docs/conf.py +0 -0
  73. {koan-3.2.1 → koan-3.2.3}/docs/index.rst +0 -0
  74. {koan-3.2.1 → koan-3.2.3}/docs/installing-virtual-guests.rst +0 -0
  75. {koan-3.2.1 → koan-3.2.3}/docs/koan-on-openvz.rst +0 -0
  76. {koan-3.2.1 → koan-3.2.3}/docs/koan-with-isos.rst +0 -0
  77. {koan-3.2.1 → koan-3.2.3}/docs/koan.rst +0 -0
  78. {koan-3.2.1 → koan-3.2.3}/docs/reinstallation.rst +0 -0
  79. {koan-3.2.1 → koan-3.2.3}/docs/release-notes.rst +0 -0
  80. {koan-3.2.1 → koan-3.2.3}/docs/virtual-networking-setup.rst +0 -0
  81. {koan-3.2.1 → koan-3.2.3}/docs/vmware.rst +0 -0
  82. {koan-3.2.1 → koan-3.2.3}/koan/__init__.py +0 -0
  83. {koan-3.2.1 → koan-3.2.3}/koan/cexceptions.py +0 -0
  84. {koan-3.2.1 → koan-3.2.3}/koan/cli.py +0 -0
  85. {koan-3.2.1 → koan-3.2.3}/koan/configurator.py +0 -0
  86. {koan-3.2.1 → koan-3.2.3}/koan/register.py +0 -0
  87. {koan-3.2.1 → koan-3.2.3}/koan/virt/__init__.py +0 -0
  88. {koan-3.2.1 → koan-3.2.3}/koan/virt/image.py +0 -0
  89. {koan-3.2.1 → koan-3.2.3}/koan/virt/qemu.py +0 -0
  90. {koan-3.2.1 → koan-3.2.3}/koan/virt/vmw.py +0 -0
  91. {koan-3.2.1 → koan-3.2.3}/koan/virt/xen.py +0 -0
  92. {koan-3.2.1 → koan-3.2.3}/koan/virtinstall.py +0 -0
  93. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/dependency_links.txt +0 -0
  94. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/entry_points.txt +0 -0
  95. {koan-3.2.1 → koan-3.2.3}/koan.egg-info/top_level.txt +0 -0
  96. {koan-3.2.1 → koan-3.2.3}/koan.spec +0 -0
  97. {koan-3.2.1 → koan-3.2.3}/package-lock.json +0 -0
  98. {koan-3.2.1 → koan-3.2.3}/package.json +0 -0
  99. {koan-3.2.1 → koan-3.2.3}/pyproject.toml +0 -0
  100. {koan-3.2.1 → koan-3.2.3}/setup.py +0 -0
  101. {koan-3.2.1 → koan-3.2.3}/tests/__init__.py +0 -0
  102. {koan-3.2.1 → koan-3.2.3}/tests/conftest.py +0 -0
@@ -16,7 +16,7 @@ jobs:
16
16
  # git must be present before checkout, or the container image has none and actions/checkout silently falls back to
17
17
  # downloading a tarball via the GitHub REST API, which has no .git dir for setuptools_scm to read.
18
18
  - name: Install package deps
19
- run: zypper -n in --no-recommends git tar python3 python3-devel python3-wheel python3-pip python3-libvirt-python gcc make
19
+ run: zypper -n in --no-recommends git tar curl python3 python3-devel python3-wheel python3-pip python3-libvirt-python gcc make virt-install
20
20
  - name: Checkout repository
21
21
  # setuptools_scm needs full history (incl. tags) to derive the version
22
22
  # https://github.com/actions/checkout
@@ -26,4 +26,9 @@ jobs:
26
26
  - name: Install dependencies
27
27
  run: pip3 install --break-system-packages .[lint,test]
28
28
  - name: Run tests
29
- run: pytest --cov=./koan
29
+ run: pytest --cov=./koan --cov-report=term-missing --cov-report=xml:coverage.xml
30
+ - name: Upload coverage to Codacy
31
+ uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0
32
+ with:
33
+ project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
34
+ coverage-reports: coverage.xml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: koan
3
- Version: 3.2.1
3
+ Version: 3.2.3
4
4
  Summary: Kickstart over a Network Client for Cobbler
5
5
  Home-page: https://www.github.com/cobbler/koan
6
6
  Author: Team Cobbler
@@ -19,7 +19,6 @@ Requires-Dist: black; extra == "lint"
19
19
  Requires-Dist: isort; extra == "lint"
20
20
  Provides-Extra: test
21
21
  Requires-Dist: pytest; extra == "test"
22
- Requires-Dist: nose; extra == "test"
23
22
  Requires-Dist: pytest-cov; extra == "test"
24
23
  Requires-Dist: pytest-mock; extra == "test"
25
24
  Provides-Extra: docs
@@ -0,0 +1,5 @@
1
+ # Auto-generated by setuptools_scm — do not edit
2
+ __version__ = "3.2.3"
3
+ __gitstamp__ = "g3388cfbd9990af50c38416214ba72ad7eed11142"
4
+ __gitdate__ = "2026-07-21"
5
+ __builddate__ = "2026-12-01 09:38:44.814295+00:00"
@@ -650,7 +650,7 @@ class Koan:
650
650
  )
651
651
  if not os.path.exists(os.path.dirname(save_as)):
652
652
  os.makedirs(os.path.dirname(save_as))
653
- cmd = ["/usr/bin/curl", url, "--output ", save_as]
653
+ cmd = ["/usr/bin/curl", url, "--output", save_as]
654
654
  utils.subprocess_call(cmd)
655
655
 
656
656
  return True
@@ -28,7 +28,7 @@ VIRT_STATE_NAME_MAP = {
28
28
  1: "running",
29
29
  2: "running",
30
30
  3: "paused",
31
- 4: "shutdown",
31
+ 4: "running",
32
32
  5: "shutdown",
33
33
  6: "crashed",
34
34
  }
@@ -110,7 +110,7 @@ def start_install(*args, **kwargs):
110
110
  full_config = dict(
111
111
  [
112
112
  (k, vz_meta[k] if k in vz_meta and k in keys_for_meta else min_config[k])
113
- for k in set(min_config.keys() + vz_meta.keys())
113
+ for k in set(min_config.keys()) | set(vz_meta.keys())
114
114
  ]
115
115
  )
116
116
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: koan
3
- Version: 3.2.1
3
+ Version: 3.2.3
4
4
  Summary: Kickstart over a Network Client for Cobbler
5
5
  Home-page: https://www.github.com/cobbler/koan
6
6
  Author: Team Cobbler
@@ -19,7 +19,6 @@ Requires-Dist: black; extra == "lint"
19
19
  Requires-Dist: isort; extra == "lint"
20
20
  Provides-Extra: test
21
21
  Requires-Dist: pytest; extra == "test"
22
- Requires-Dist: nose; extra == "test"
23
22
  Requires-Dist: pytest-cov; extra == "test"
24
23
  Requires-Dist: pytest-mock; extra == "test"
25
24
  Provides-Extra: docs
@@ -85,5 +85,14 @@ koan/virt/xen.py
85
85
  tests/__init__.py
86
86
  tests/conftest.py
87
87
  tests/test_app.py
88
+ tests/test_cexceptions.py
89
+ tests/test_cli.py
90
+ tests/test_configurator.py
91
+ tests/test_register.py
88
92
  tests/test_utils.py
89
- tests/virtinstall.py
93
+ tests/test_virt_image.py
94
+ tests/test_virt_openvz.py
95
+ tests/test_virt_qemu.py
96
+ tests/test_virt_vmw.py
97
+ tests/test_virt_xen.py
98
+ tests/test_virtinstall.py
@@ -16,6 +16,5 @@ isort
16
16
 
17
17
  [test]
18
18
  pytest
19
- nose
20
19
  pytest-cov
21
20
  pytest-mock
@@ -78,7 +78,16 @@
78
78
  "tests/__init__.py",
79
79
  "tests/conftest.py",
80
80
  "tests/test_app.py",
81
+ "tests/test_cexceptions.py",
82
+ "tests/test_cli.py",
83
+ "tests/test_configurator.py",
84
+ "tests/test_register.py",
81
85
  "tests/test_utils.py",
82
- "tests/virtinstall.py"
86
+ "tests/test_virt_image.py",
87
+ "tests/test_virt_openvz.py",
88
+ "tests/test_virt_qemu.py",
89
+ "tests/test_virt_vmw.py",
90
+ "tests/test_virt_xen.py",
91
+ "tests/test_virtinstall.py"
83
92
  ]
84
93
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "tag": "3.2.1",
2
+ "tag": "3.2.3",
3
3
  "distance": 0,
4
- "node": "gdaf3aa672b73c24c418966133db1703131e97eb4",
4
+ "node": "g3388cfbd9990af50c38416214ba72ad7eed11142",
5
5
  "dirty": false,
6
6
  "branch": "HEAD",
7
7
  "node_date": "2026-07-21"
@@ -24,7 +24,6 @@ lint =
24
24
  isort
25
25
  test =
26
26
  pytest
27
- nose
28
27
  pytest-cov
29
28
  pytest-mock
30
29
  docs =