Skip to content

Commit 556db71

Browse files
authored
Merge pull request #9 from emcd/codex/cutover-mimeogram-package-to-appcore
refactor: adopt appcore for core utilities
2 parents 25922fb + 56405a5 commit 556db71

43 files changed

Lines changed: 189 additions & 3436 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

documentation/conf.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ def _import_version( ):
8181
( 'py:class', "Suppress" ),
8282
( 'py:class', "absence.objects.AbsentSingleton" ),
8383
( 'py:class', "accretive.dictionaries.Dictionary" ),
84+
( 'py:class', "appcore.application.Information" ),
85+
( 'py:class', "appcore.dictedits.Edit" ),
86+
( 'py:class', "appcore.inscription.Control" ),
87+
( 'py:class', "appcore.state.Globals" ),
8488
( 'py:class', "builtins.NotImplementedType" ),
8589
( 'py:class', "frigid.classes.Class" ),
8690
( 'py:class', "frigid.classes.DataclassObject" ),
@@ -89,17 +93,6 @@ def _import_version( ):
8993
( 'py:class', "frigid.classes.ProtocolClass" ),
9094
( 'py:class', "frigid.dictionaries.Dictionary" ),
9195
( 'py:class', "frigid.objects.Object" ),
92-
( 'py:class', "mimeogram.__.application.Information" ),
93-
( 'py:class', "mimeogram.__.dictedits.Edit" ),
94-
( 'py:class', "mimeogram.__.dictedits.ElementsEntryEdit" ),
95-
( 'py:class', "mimeogram.__.dictedits.SimpleEdit" ),
96-
( 'py:class', "mimeogram.__.distribution.Information" ),
97-
( 'py:class', "mimeogram.__.generics.E" ),
98-
( 'py:class', "mimeogram.__.generics.T" ),
99-
( 'py:class', "mimeogram.__.generics.U" ),
100-
( 'py:class', "mimeogram.__.inscription.Control" ),
101-
( 'py:class', "mimeogram.__.inscription.Modes" ),
102-
( 'py:class', "mimeogram.__.state.DirectorySpecies" ),
10396
( 'py:class', "mimeogram.apply.Command" ),
10497
( 'py:class', "mimeogram.fsprotect.core.Protector" ),
10598
( 'py:class', "mimeogram.fsprotect.core.Reasons" ),
@@ -112,8 +105,6 @@ def _import_version( ):
112105
( 'py:class', "typing_extensions.Self" ),
113106
( 'py:class', "typing_extensions.TypeIs" ),
114107
( 'py:class', "tyro.conf._markers.CallableType" ),
115-
( 'py:obj', "mimeogram.__.generics.E" ),
116-
( 'py:obj', "mimeogram.__.generics.T" ),
117108
]
118109
nitpick_ignore_regex = [
119110
( r'py:class', r"(?ms)mimeogram\.create\.Annotated\[.*\]" ),

documentation/devapi.rst

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -31,85 +31,13 @@ Package ``mimeogram.__``
3131
.. automodule:: mimeogram.__
3232

3333

34-
Module ``mimeogram.__.application``
35-
-------------------------------------------------------------------------------
36-
37-
.. automodule:: mimeogram.__.application
38-
39-
40-
Module ``mimeogram.__.asyncf``
41-
-------------------------------------------------------------------------------
42-
43-
.. automodule:: mimeogram.__.asyncf
44-
45-
46-
Module ``mimeogram.__.configuration``
47-
-------------------------------------------------------------------------------
48-
49-
.. automodule:: mimeogram.__.configuration
50-
51-
52-
Module ``mimeogram.__.dictedits``
53-
-------------------------------------------------------------------------------
54-
55-
.. automodule:: mimeogram.__.dictedits
56-
57-
58-
Module ``mimeogram.__.distribution``
59-
-------------------------------------------------------------------------------
60-
61-
.. automodule:: mimeogram.__.distribution
62-
63-
64-
Module ``mimeogram.__.environment``
65-
-------------------------------------------------------------------------------
66-
67-
.. automodule:: mimeogram.__.environment
68-
69-
70-
Module ``mimeogram.__.exceptions``
71-
-------------------------------------------------------------------------------
72-
73-
.. automodule:: mimeogram.__.exceptions
74-
75-
76-
Module ``mimeogram.__.generics``
77-
-------------------------------------------------------------------------------
78-
79-
.. automodule:: mimeogram.__.generics
80-
81-
8234
Module ``mimeogram.__.imports``
8335
-------------------------------------------------------------------------------
8436

8537
.. automodule:: mimeogram.__.imports
8638

8739

88-
Module ``mimeogram.__.inscription``
89-
-------------------------------------------------------------------------------
90-
91-
.. automodule:: mimeogram.__.inscription
92-
93-
94-
Module ``mimeogram.__.io``
95-
-------------------------------------------------------------------------------
96-
97-
.. automodule:: mimeogram.__.io
98-
99-
10040
Module ``mimeogram.__.nomina``
10141
-------------------------------------------------------------------------------
10242

10343
.. automodule:: mimeogram.__.nomina
104-
105-
106-
Module ``mimeogram.__.preparation``
107-
-------------------------------------------------------------------------------
108-
109-
.. automodule:: mimeogram.__.preparation
110-
111-
112-
Module ``mimeogram.__.state``
113-
-------------------------------------------------------------------------------
114-
115-
.. automodule:: mimeogram.__.state

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,16 @@ dependencies = [
1919
'absence~=1.1',
2020
'accretive~=4.1',
2121
'aiofiles',
22-
'chardet', # TODO? Remove after cutover to appcore.
22+
'chardet',
2323
'dynadoc~=1.4',
2424
'emcd-appcore~=1.4',
2525
'exceptiongroup',
2626
'frigid~=4.1',
2727
'gitignorefile',
2828
'httpx',
2929
'icecream-truck~=1.5',
30-
'importlib-metadata', # TODO? Remove after cutover to appcore.
31-
'importlib-resources', # TODO? Remove after cutover to appcore.
3230
'patiencediff',
33-
'platformdirs', # TODO: Remove after cutover to appcore.
34-
'puremagic', # TODO? Remove after cutover to appcore.
31+
'puremagic',
3532
'pyperclip',
3633
'python-dotenv', # TODO: Remove after cutover to appcore.
3734
'readchar',

sources/mimeogram/__/__init__.py

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,8 @@
11
# vim: set filetype=python fileencoding=utf-8:
22
# -*- coding: utf-8 -*-
33

4-
#============================================================================#
5-
# #
6-
# Licensed under the Apache License, Version 2.0 (the "License"); #
7-
# you may not use this file except in compliance with the License. #
8-
# You may obtain a copy of the License at #
9-
# #
10-
# http://www.apache.org/licenses/LICENSE-2.0 #
11-
# #
12-
# Unless required by applicable law or agreed to in writing, software #
13-
# distributed under the License is distributed on an "AS IS" BASIS, #
14-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15-
# See the License for the specific language governing permissions and #
16-
# limitations under the License. #
17-
# #
18-
#============================================================================#
4+
"""Common constants, imports, and utilities."""
195

20-
21-
''' Common constants, imports, and utilities. '''
22-
23-
24-
from .application import Information as ApplicationInformation
25-
from .asyncf import *
26-
from .dictedits import (
27-
Edit as DictionaryEdit,
28-
Edits as DictionaryEdits,
29-
ElementsEntryEdit as ElementsEntryDictionaryEdit,
30-
SimpleEdit as SimpleDictionaryEdit,
31-
)
32-
from .distribution import Information as DistributionInformation
33-
from .exceptions import *
34-
from .generics import *
356
from .imports import *
36-
from .inscription import (
37-
Control as InscriptionControl, Modes as InscriptionModes )
38-
from .io import *
397
from .nomina import *
40-
from .preparation import *
41-
from .state import Globals
8+

sources/mimeogram/__/application.py

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

sources/mimeogram/__/asyncf.py

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

0 commit comments

Comments
 (0)