Skip to content

Commit e24b062

Browse files
committed
Remove deprecated code structure located under python_gardenlinux_lib
Signed-off-by: Tobias Wolf <[email protected]>
1 parent 835fdb8 commit e24b062

File tree

22 files changed

+22
-1573
lines changed

22 files changed

+22
-1573
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33

44
sys.path.insert(0, os.path.abspath("../src"))
5-
import python_gardenlinux_lib
65

76

87
# Configuration file for the Sphinx documentation builder.

docs/index.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44
contain the root `toctree` directive.
55
66
python-gardenlinux-lib documentation
7-
================================
8-
.. automodule:: python_gardenlinux_lib.parse_features
7+
====================================
8+
.. automodule:: gardenlinux
99
:members:
10-
.. automodule:: python_gardenlinux_lib.package_repo_info
10+
.. automodule:: gardenlinux.apt
11+
:members:
12+
.. automodule:: gardenlinux.features
13+
:members:
14+
.. automodule:: gardenlinux.flavors
15+
:members:
16+
.. automodule:: gardenlinux.git
17+
:members:
18+
.. automodule:: gardenlinux.oci
1119
:members:
1220
.. toctree::
13-
:maxdepth: 2
21+
:maxdepth: 3
1422
:caption: Contents:
1523

1624
Indices and tables

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Contains tools to work with the features directory of gardenlinux
55
authors = ["Garden Linux Maintainers <[email protected]>"]
66
license = "Apache-2.0"
77
readme = "README.md"
8-
packages = [{include = "gardenlinux", from="src"}, {include = "python_gardenlinux_lib", from="src"}]
8+
packages = [{include = "gardenlinux", from="src"}]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.13"

src/gardenlinux/flavors/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# -*- coding: utf-8 -*-
33

44
from argparse import ArgumentParser
5-
from git import Git
65
import json
76
import os
87
import sys
98

9+
from ..git import Git
10+
1011
from .parser import Parser
1112

1213

@@ -93,8 +94,7 @@ def parse_args():
9394
def main():
9495
args = parse_args()
9596

96-
repo_path = Git(".").rev_parse("--show-superproject-working-tree")
97-
flavors_file = os.path.join(repo_path, "flavors.yaml")
97+
flavors_file = os.path.join(Git().root, "flavors.yaml")
9898

9999
if not os.path.isfile(flavors_file):
100100
sys.exit(f"Error: {flavors_file} does not exist.")

src/python_gardenlinux_lib/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/python_gardenlinux_lib/features/__init__.py

Whitespace-only changes.

src/python_gardenlinux_lib/features/package_repo_info.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/python_gardenlinux_lib/features/parse_features.py

Lines changed: 0 additions & 229 deletions
This file was deleted.

src/python_gardenlinux_lib/flavors/__init__.py

Whitespace-only changes.

src/python_gardenlinux_lib/oras/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)