diff --git a/hen/__init__.py b/jg/hen/__init__.py similarity index 100% rename from hen/__init__.py rename to jg/hen/__init__.py diff --git a/hen/cli.py b/jg/hen/cli.py similarity index 94% rename from hen/cli.py rename to jg/hen/cli.py index 8cb005a..f3782a3 100644 --- a/hen/cli.py +++ b/jg/hen/cli.py @@ -5,7 +5,7 @@ import click -from hen.core import check_profile_url +from jg.hen.core import check_profile_url @click.command() diff --git a/hen/core.py b/jg/hen/core.py similarity index 99% rename from hen/core.py rename to jg/hen/core.py index 6af6f41..dc78a39 100644 --- a/hen/core.py +++ b/jg/hen/core.py @@ -80,7 +80,7 @@ async def check_profile_url( try: username = parse_username(profile_url) - import hen.rules # noqa + import jg.hen.rules # noqa response = await github.rest.users.async_get_by_username(username) user = response.parsed_data diff --git a/hen/pinned_repos.gql b/jg/hen/pinned_repos.gql similarity index 100% rename from hen/pinned_repos.gql rename to jg/hen/pinned_repos.gql diff --git a/hen/rules.py b/jg/hen/rules.py similarity index 99% rename from hen/rules.py rename to jg/hen/rules.py index 778d169..142a1f2 100644 --- a/hen/rules.py +++ b/jg/hen/rules.py @@ -5,7 +5,7 @@ from githubkit.rest import PublicUser, Repository, SocialAccount from PIL import Image -from hen.core import ( +from jg.hen.core import ( ResultType, on_avatar_response, on_pinned_repo, diff --git a/pyproject.toml b/pyproject.toml index 7288a54..8ae5936 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,10 +7,10 @@ license = "AGPL-3.0-only" readme = "README.md" homepage = "https://junior.guru/" repository = "https://github.com/juniorguru/hen" -packages = [{include = "hen", from = "."}] +packages = [{ include = "jg" }] [tool.poetry.scripts] -hen = "hen.cli:main" +hen = "jg.hen.cli:main" [tool.poetry.dependencies] python = "3.11.*" diff --git a/tests/test_core.py b/tests/test_core.py index 3332aff..09a6d8a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,6 +1,6 @@ import pytest -from hen.core import parse_username +from jg.hen.core import parse_username @pytest.mark.parametrize(