Skip to content

Commit 0dbb3c5

Browse files
authored
Merge pull request #227 from tuttle-dev/dev-packaging
Packaging
2 parents 4c21968 + b7090a9 commit 0dbb3c5

File tree

117 files changed

+370
-391
lines changed

Some content is hidden

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

117 files changed

+370
-391
lines changed

app/app.py renamed to app.py

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,33 @@
1111
app,
1212
)
1313

14-
from auth.view import ProfileScreen, SplashScreen
15-
from contracts.view import ContractEditorScreen, ViewContractScreen
16-
from core.abstractions import TView, TViewParams
17-
from core.client_storage_impl import ClientStorageImpl
18-
from core.database_storage_impl import DatabaseStorageImpl
19-
from core.models import RouteView
20-
from core.utils import AlertDialogControls
21-
from core.views import THeading
22-
from error_views.page_not_found_screen import Error404Screen
23-
from home.view import HomeScreen
2414
from loguru import logger
2515
from pandas import DataFrame
26-
from preferences.intent import PreferencesIntent
27-
from preferences.model import PreferencesStorageKeys
28-
from preferences.view import PreferencesScreen
29-
from projects.view import ProjectEditorScreen, ViewProjectScreen
30-
from res.colors import BLACK_COLOR_ALT, ERROR_COLOR, PRIMARY_COLOR, WHITE_COLOR
31-
from res.dimens import MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
32-
from res.fonts import APP_FONTS, HEADLINE_4_SIZE, HEADLINE_FONT
33-
from res.res_utils import (
16+
17+
18+
from tuttle.app.auth.view import ProfileScreen, SplashScreen
19+
from tuttle.app.contracts.view import ContractEditorScreen, ViewContractScreen
20+
from tuttle.app.core.abstractions import TView, TViewParams
21+
from tuttle.app.core.client_storage_impl import ClientStorageImpl
22+
from tuttle.app.core.database_storage_impl import DatabaseStorageImpl
23+
from tuttle.app.core.models import RouteView
24+
from tuttle.app.core.utils import AlertDialogControls
25+
from tuttle.app.core.views import THeading
26+
from tuttle.app.error_views.page_not_found_screen import Error404Screen
27+
from tuttle.app.home.view import HomeScreen
28+
from tuttle.app.preferences.intent import PreferencesIntent
29+
from tuttle.app.preferences.model import PreferencesStorageKeys
30+
from tuttle.app.preferences.view import PreferencesScreen
31+
from tuttle.app.projects.view import ProjectEditorScreen, ViewProjectScreen
32+
from tuttle.app.res.colors import (
33+
BLACK_COLOR_ALT,
34+
ERROR_COLOR,
35+
PRIMARY_COLOR,
36+
WHITE_COLOR,
37+
)
38+
from tuttle.app.res.dimens import MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
39+
from tuttle.app.res.fonts import APP_FONTS, HEADLINE_4_SIZE, HEADLINE_FONT
40+
from tuttle.app.res.res_utils import (
3441
CONTRACT_DETAILS_SCREEN_ROUTE,
3542
CONTRACT_EDITOR_SCREEN_ROUTE,
3643
HOME_SCREEN_ROUTE,
@@ -40,8 +47,8 @@
4047
PROJECT_EDITOR_SCREEN_ROUTE,
4148
SPLASH_SCREEN_ROUTE,
4249
)
43-
from res.theme import APP_THEME, THEME_MODES, get_theme_mode_from_value
44-
from timetracking.intent import TimeTrackingIntent
50+
from tuttle.app.res.theme import APP_THEME, THEME_MODES, get_theme_mode_from_value
51+
from tuttle.app.timetracking.intent import TimeTrackingIntent
4552

4653

4754
class TuttleApp:

scripts/pack_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
import tuttle
1010

11-
app_path = "app/app.py"
11+
app_path = "app.py"
1212
app_name = "Tuttle"
13-
icon_path = "app/assets/icon/macos/AppIcon.icns"
13+
icon_path = "tuttle/app/assets/icon/macos/AppIcon.icns"
1414

1515
# files to be added to the app bundle
1616
added_files = [

tuttle/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
]
77
__version__ = "1.0.1"
88

9+
from . import app
910
from . import (
1011
banking,
1112
calendar,

0 commit comments

Comments
 (0)