Skip to content

Commit e8dd534

Browse files
emcdclaude
andcommitted
Migrate from internal modules to emcd-appcore package.
Replace internal application core modules (application, distribution, preparation, state) with emcd-appcore~=1.0 dependency. Remove corresponding internal module files and tests. Update imports throughout codebase to use appcore instead of internal implementations. This removes duplicate code and leverages the extracted appcore library for common application infrastructure while preserving project-specific functionality in nomina and imports modules. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a481de7 commit e8dd534

13 files changed

Lines changed: 14 additions & 921 deletions

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ dependencies = [
1818
'Jinja2',
1919
'absence~=1.1',
2020
'defusedxml',
21+
'emcd-appcore~=1.0',
2122
'frigid~=4.1',
2223
'icecream-truck~=1.4',
23-
'importlib-metadata', # TODO: Drop once we have separate appcore package.
24-
'importlib-resources', # TODO: Drop once we have separate appcore package.
2524
'packaging',
26-
'platformdirs', # TODO: Drop once we have separate appcore package.
27-
'tomli', # TODO: Drop once we have separate appcore package.
2825
'typing-extensions',
2926
# --- BEGIN: Injected by Copier ---
3027
'tyro',

sources/emcdproj/__/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@
2121
''' Common constants, imports, and utilities. '''
2222

2323

24-
from .application import Information as ApplicationInformation
25-
from .distribution import Information as DistributionInformation
2624
from .imports import *
2725
from .nomina import *
28-
from .preparation import *
29-
from .state import Globals

sources/emcdproj/__/application.py

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

sources/emcdproj/__/distribution.py

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

sources/emcdproj/__/imports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@
3939

4040
from pathlib import Path
4141

42+
import appcore
4243
import frigid as immut
4344
import typing_extensions as typx
4445
# --- BEGIN: Injected by Copier ---
4546
import tyro
4647
# --- END: Injected by Copier ---
4748

4849
from absence import Absential, absent, is_absent
49-
from platformdirs import PlatformDirs
50+
from appcore.state import Globals
5051

5152

5253
simple_tyro_class = tyro.conf.configure( )

sources/emcdproj/__/preparation.py

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

sources/emcdproj/__/state.py

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

sources/emcdproj/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Cli(
4747
):
4848
''' Various utilities for projects by Github user '@emcd'. '''
4949

50-
application: __.ApplicationInformation
50+
application: __.appcore.ApplicationInformation
5151
# configfile: __.typx.Optional[ str ] = None
5252
display: _interfaces.ConsoleDisplay
5353
command: __.typx.Union[
@@ -103,7 +103,7 @@ def execute( ) -> None:
103103

104104

105105
async def _prepare(
106-
application: __.ApplicationInformation,
106+
application: __.appcore.ApplicationInformation,
107107
# configedits: __.DictionaryEdits,
108108
# environment: bool,
109109
exits: __.ctxl.AsyncExitStack,
@@ -112,7 +112,7 @@ async def _prepare(
112112
import ictruck
113113
# TODO: Finetune Icecream truck installation from CLI arguments.
114114
ictruck.install( trace_levels = 9 )
115-
return await __.prepare(
115+
return await __.appcore.prepare(
116116
application = application,
117117
# configedits = configedits,
118118
# environment = environment,

0 commit comments

Comments
 (0)