Skip to content

Commit

Permalink
fix: renamed package to just dyana
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jan 14, 2025
1 parent d9aa607 commit 47e5306
Show file tree
Hide file tree
Showing 37 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ jobs:
- name: Validate version
run: |
POETRY_VERSION=$(poetry version -s)
INIT_VERSION=$(python -c "import dyana_cli; print(dyana_cli.__version__)")
INIT_VERSION=$(python -c "import dyana; print(dyana.__version__)")
if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
exit 1
fi
- name: Lint
run: poetry run ruff check --output-format=github dyana_cli
run: poetry run ruff check --output-format=github dyana

- name: Type check
run: poetry run mypy --ignore-missing-imports --no-error-summary dyana_cli
run: poetry run mypy --ignore-missing-imports --no-error-summary dyana

- name: Test
run: poetry run pytest dyana_cli
run: poetry run pytest dyana
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
POETRY_VERSION=$(poetry version -s)
INIT_VERSION=$(python -c "import dyana_cli; print(dyana_cli.__version__)")
INIT_VERSION=$(python -c "import dyana; print(dyana.__version__)")
if ! [[ $TAG_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid tag format: $TAG_VERSION. Must be vX.X.X"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ ENV VIRTUAL_ENV=/app/.venv \

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

COPY dyana_cli ./dyana_cli
COPY dyana ./dyana

ENTRYPOINT ["python", "-m", "dyana_cli"]
ENTRYPOINT ["python", "-m", "dyana"]
File renamed without changes.
2 changes: 1 addition & 1 deletion dyana_cli/__main__.py → dyana/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dyana_cli.cli import cli
from dyana.cli import cli


def run() -> None:
Expand Down
8 changes: 4 additions & 4 deletions dyana_cli/cli.py → dyana/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from rich import box, print
from rich.table import Table

import dyana_cli.loaders as loaders_pkg
from dyana_cli.loaders.loader import Loader
from dyana_cli.tracer.tracee import Tracer
from dyana_cli.view import (
import dyana.loaders as loaders_pkg
from dyana.loaders.loader import Loader
from dyana.tracer.tracee import Tracer
from dyana.view import (
view_disk_events,
view_gpus,
view_header,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions dyana_cli/loaders/loader.py → dyana/loaders/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from pydantic_yaml import parse_yaml_raw_as
from rich import print

import dyana_cli.docker as docker
import dyana_cli.loaders as loaders
from dyana_cli.loaders.settings import LoaderSettings, ParsedArgument
import dyana.docker as docker
import dyana.loaders as loaders
from dyana.loaders.settings import LoaderSettings, ParsedArgument


class GpuDeviceUsage(BaseModel):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from dyana_cli.loaders.settings import LoaderArgument, LoaderSettings, ParsedArgument
from dyana.loaders.settings import LoaderArgument, LoaderSettings, ParsedArgument


def test_parse_build_args() -> None:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions dyana_cli/tracer/tracee.py → dyana/tracer/tracee.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from pydantic import BaseModel
from rich import print

import dyana_cli.docker as docker
from dyana_cli.loaders.loader import Loader, Run
import dyana.docker as docker
from dyana.loaders.loader import Loader, Run


class Trace(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion dyana_cli/view.py → dyana/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from rich import print

from dyana_cli.tracer.tracee import Tracer
from dyana.tracer.tracee import Tracer


# https://stackoverflow.com/questions/1094841/get-a-human-readable-version-of-a-file-size
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ build-backend = "poetry.core.masonry.api"


[tool.poetry.scripts]
dyana = 'dyana_cli.__main__:run'
dyana = 'dyana.__main__:run'

[tool.poetry.plugins."pipx.run"]
dyana = 'dyana_cli.__main__:run'
dyana = 'dyana.__main__:run'

[tool.mypy]
strict = true
Expand Down

0 comments on commit 47e5306

Please sign in to comment.