create-dara-app 1.17.5__py3-none-any.whl → 1.18.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- create_dara_app/__init__.py +1 -0
- create_dara_app/cli.py +3 -1
- create_dara_app/default_command_group.py +7 -5
- {create_dara_app-1.17.5.dist-info → create_dara_app-1.18.0.dist-info}/METADATA +2 -2
- {create_dara_app-1.17.5.dist-info → create_dara_app-1.18.0.dist-info}/RECORD +8 -8
- {create_dara_app-1.17.5.dist-info → create_dara_app-1.18.0.dist-info}/LICENSE +0 -0
- {create_dara_app-1.17.5.dist-info → create_dara_app-1.18.0.dist-info}/WHEEL +0 -0
- {create_dara_app-1.17.5.dist-info → create_dara_app-1.18.0.dist-info}/entry_points.txt +0 -0
create_dara_app/__init__.py
CHANGED
|
@@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
14
14
|
See the License for the specific language governing permissions and
|
|
15
15
|
limitations under the License.
|
|
16
16
|
"""
|
|
17
|
+
|
|
17
18
|
from importlib.metadata import version
|
|
18
19
|
|
|
19
20
|
__version__ = version('create-dara-app')
|
create_dara_app/cli.py
CHANGED
|
@@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
14
14
|
See the License for the specific language governing permissions and
|
|
15
15
|
limitations under the License.
|
|
16
16
|
"""
|
|
17
|
+
|
|
17
18
|
import logging
|
|
18
19
|
import pathlib
|
|
19
20
|
import shutil
|
|
@@ -21,10 +22,11 @@ import sys
|
|
|
21
22
|
from importlib.metadata import version
|
|
22
23
|
from typing import Literal
|
|
23
24
|
|
|
24
|
-
import click
|
|
25
25
|
from cookiecutter.exceptions import FailedHookException, OutputDirExistsException
|
|
26
26
|
from cookiecutter.main import cookiecutter
|
|
27
27
|
|
|
28
|
+
import click
|
|
29
|
+
|
|
28
30
|
from create_dara_app.default_command_group import DefaultCommandGroup
|
|
29
31
|
|
|
30
32
|
logger = logging.getLogger('create-dara-app')
|
|
@@ -14,6 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
14
14
|
See the License for the specific language governing permissions and
|
|
15
15
|
limitations under the License.
|
|
16
16
|
"""
|
|
17
|
+
# ruff: noqa
|
|
18
|
+
|
|
17
19
|
import click
|
|
18
20
|
|
|
19
21
|
|
|
@@ -44,7 +46,7 @@ class DefaultCommandGroup(click.Group):
|
|
|
44
46
|
def get_command(self, ctx, cmd_name):
|
|
45
47
|
if cmd_name not in self.commands:
|
|
46
48
|
# No command name matched.
|
|
47
|
-
ctx.arg0 = cmd_name
|
|
49
|
+
ctx.arg0 = cmd_name # pyright: ignore
|
|
48
50
|
cmd_name = self.default_cmd_name
|
|
49
51
|
return super().get_command(ctx, cmd_name)
|
|
50
52
|
|
|
@@ -52,15 +54,15 @@ class DefaultCommandGroup(click.Group):
|
|
|
52
54
|
base = super()
|
|
53
55
|
cmd_name, cmd, args = base.resolve_command(ctx, args)
|
|
54
56
|
if hasattr(ctx, 'arg0'):
|
|
55
|
-
args.insert(0, ctx.arg0)
|
|
56
|
-
cmd_name = cmd.name
|
|
57
|
+
args.insert(0, ctx.arg0) # pyright: ignore
|
|
58
|
+
cmd_name = cmd.name # pyright: ignore
|
|
57
59
|
return cmd_name, cmd, args
|
|
58
60
|
|
|
59
61
|
def format_commands(self, ctx, formatter):
|
|
60
62
|
formatter = DefaultCommandFormatter(self, formatter, mark='*')
|
|
61
|
-
return super().format_commands(ctx, formatter)
|
|
63
|
+
return super().format_commands(ctx, formatter) # pyright: ignore
|
|
62
64
|
|
|
63
|
-
def command(self, *args, **kwargs):
|
|
65
|
+
def command(self, *args, **kwargs): # pyright: ignore
|
|
64
66
|
default = kwargs.pop('default', False)
|
|
65
67
|
decorator = super().command(*args, **kwargs)
|
|
66
68
|
if not default:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: create-dara-app
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.18.0
|
|
4
4
|
Summary: CLI to quickly bootstrap a Dara app
|
|
5
5
|
Home-page: https://dara.causalens.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
|
|
22
22
|
# Create Dara App
|
|
23
23
|
|
|
24
|
-
<img src="https://github.com/causalens/dara/blob/v1.
|
|
24
|
+
<img src="https://github.com/causalens/dara/blob/v1.18.0/img/dara_light.svg?raw=true">
|
|
25
25
|
|
|
26
26
|

|
|
27
27
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
create_dara_app/__init__.py,sha256=
|
|
2
|
-
create_dara_app/cli.py,sha256=
|
|
3
|
-
create_dara_app/default_command_group.py,sha256=
|
|
1
|
+
create_dara_app/__init__.py,sha256=Q4w44q2CIpoUqXWFLGtH6nTaaoydnnUnncd0afqZch4,659
|
|
2
|
+
create_dara_app/cli.py,sha256=eWxPnc1A4ZD2_QdML5NlszhXc-91Y9KwMgu3zbZ7ZiI,3737
|
|
3
|
+
create_dara_app/default_command_group.py,sha256=6WLJS40MOQafj_YuyWF_Q4Cm6UJKqX3lKBpFD3P8zOw,3291
|
|
4
4
|
create_dara_app/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
create_dara_app/templates/default/cookiecutter.json,sha256=q7HRrihrVAhYIvllP4FUKrSoUxBVHFR9e4Dbm4oZ2eI,318
|
|
6
6
|
create_dara_app/templates/default/hooks/post_gen_project.py,sha256=Z82RxRP5C2GsnmqFS4mrwbC1oN0x6pBQlaQXsKaQH1Q,1285
|
|
@@ -15,8 +15,8 @@ create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecut
|
|
|
15
15
|
create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/pages/intro_page.py,sha256=_G4z_9N66t6eMhIenzIFbIM-p_EzJM8LPGiJ_emRI8k,1590
|
|
16
16
|
create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/utils/components.py,sha256=xAjhKxPC1cgMda5tpLyCwZEEJTVOALR4C7V3REUpxbo,65462
|
|
17
17
|
create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/utils/template.py,sha256=R8EgjNKD5bou9HkT7CEEISAcO5H7R-sSWFtifFJyK5M,737
|
|
18
|
-
create_dara_app-1.
|
|
19
|
-
create_dara_app-1.
|
|
20
|
-
create_dara_app-1.
|
|
21
|
-
create_dara_app-1.
|
|
22
|
-
create_dara_app-1.
|
|
18
|
+
create_dara_app-1.18.0.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
19
|
+
create_dara_app-1.18.0.dist-info/METADATA,sha256=ZY0yY9mqTkaFoLtUHfiaih4itVMYG0S_qTugwJVF0S8,1984
|
|
20
|
+
create_dara_app-1.18.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
21
|
+
create_dara_app-1.18.0.dist-info/entry_points.txt,sha256=RZETW6Q9lb0vM1gptGnobZGlD2qvU-0ZgztNoboRRTk,59
|
|
22
|
+
create_dara_app-1.18.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|