splight-cli 2.3.29__py3-none-any.whl → 2.3.31.dev0__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.
@@ -15,6 +15,7 @@ from cli.constants import (
15
15
  README_FILE_2,
16
16
  SPEC_FILE,
17
17
  SPLIGHT_IGNORE,
18
+ TESTS_FILE,
18
19
  success_style,
19
20
  )
20
21
  from cli.hub.component.exceptions import (
@@ -48,11 +49,12 @@ class HubComponentManager:
48
49
  if not force and self._exists_in_hub(name, version):
49
50
  raise ComponentAlreadyExists(name, version)
50
51
 
51
- # run test before push to hub. To run test, ctx isn't needed
52
- console.print(
53
- "Testing component before push to hub...", style=success_style
54
- )
55
- Component(context=None).test(path)
52
+ if os.path.exists(os.path.join(path, TESTS_FILE)):
53
+ # run test before push to hub. To run test, ctx isn't needed
54
+ console.print(
55
+ "Testing component before push to hub...", style=success_style
56
+ )
57
+ Component(context=None).test(path)
56
58
 
57
59
  with Loader("Pushing Component to Splight Hub"):
58
60
  self._upload_component(spec, path)
cli/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.3.29"
1
+ __version__ = "2.3.31-dev0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: splight-cli
3
- Version: 2.3.29
3
+ Version: 2.3.31.dev0
4
4
  Summary: CLI tool to build and run Splight components
5
5
  Home-page: UNKNOWN
6
6
  Author: Splight
@@ -2,7 +2,7 @@ cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  cli/cli.py,sha256=sKEQSwKs2evldei7PrmVu5Dv2xnupyhHQt9XCcnd4bg,949
3
3
  cli/constants.py,sha256=pNpSKJCiwb4nHagmZVlZegvbV4q7WsA-zsPmueWjYRQ,1539
4
4
  cli/settings.py,sha256=5Hy0YEaFRbPJM3EzyEao5N2OVbf6Yz2NQAgDQvQnntU,972
5
- cli/version.py,sha256=hBmycyLuuW2PY47VfGbqJIFgx8UAzv04Ywtx_9pnyqw,23
5
+ cli/version.py,sha256=gLbeMDcl5dsP28AIsgZKVRMrQLdIRaHHErz3helvcCQ,28
6
6
  cli/component/__init__.py,sha256=lSqAV8QycWCrhwZHAsTuqgjcMnrlOIVlWzedeAl3uCw,4144
7
7
  cli/component/component.py,sha256=NFelgIfeXaKX8iZew6DYsTEXtkaxRbFZ1lhIOwnkrRM,6005
8
8
  cli/component/exceptions.py,sha256=rf0tcFuQYCUru3DbKxPDhEkQoURAhPm7Ms4fmzISJKg,1470
@@ -46,7 +46,7 @@ cli/engine/setpoint/__init__.py,sha256=AFyCXHkY0iceAGqUbljZtHY3gdqclG7uoOkQwpWFv
46
46
  cli/hub/__init__.py,sha256=2HhGOWnGUIM0DT2iMOByfpMtGt_fQ-CrN_O1wyWeXrg,395
47
47
  cli/hub/component/__init__.py,sha256=TYckjqCQhm299bbLle6vsjI8KE_VPJ-98agIVP3oQT0,2216
48
48
  cli/hub/component/exceptions.py,sha256=4Rbcc9NLB8SXkXdQhshP3wSAwim_ktYWaWQadSE4bnc,1162
49
- cli/hub/component/hub_manager.py,sha256=9t-tlK2ATMw1tPiKH7YUSmNvqkE_q3FA5O8c7tfF_7Q,6814
49
+ cli/hub/component/hub_manager.py,sha256=pQQNYXuAxIf81X65afZ7k95iICBH-FoVzQbSEJLm58g,6909
50
50
  cli/testing/__init__.py,sha256=mApthm0YPWGMoj2mYIn5A6wPr1oVzfA9RIh8OsdG3OU,4929
51
51
  cli/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  cli/tests/test_configure.py,sha256=mqT9wXXyt3QJWjKZL2c1s1WtR7iWzSRwdu5umJgtakg,1331
@@ -60,8 +60,8 @@ cli/utils/pprint.py,sha256=q2-UizF_Zq4etoJnZKr9XUNL4Nsu6jbY_bn-QpGr8z8,1079
60
60
  cli/utils/template.py,sha256=e035kYbVp1xL-vmTFKDlWRFYPz5wrpRTdU_qrB0xV5Q,435
61
61
  cli/utils/yaml.py,sha256=jhNdQa_ExlSaXsPnlfLKKMOKbF1fJLpx0o264AdCNrg,754
62
62
  cli/workspace/__init__.py,sha256=cwEdYmi2FqBcCrt-U98G5uY7FT5gr-LqzghIOP5QMBg,2775
63
- splight_cli-2.3.29.dist-info/METADATA,sha256=18JwxgcSnspRKz-jemxx3SO8LHm8BX0O7QlR0QBvewg,1244
64
- splight_cli-2.3.29.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
65
- splight_cli-2.3.29.dist-info/entry_points.txt,sha256=IDM6zGhinztZLBDM4bx17B1Bw7Ruo2_yzEa91Fe8i2Y,41
66
- splight_cli-2.3.29.dist-info/top_level.txt,sha256=HmpDxSFAbd4V_5A36MKSqpOO_JlkyBLYDfR8F8Vjp7E,12
67
- splight_cli-2.3.29.dist-info/RECORD,,
63
+ splight_cli-2.3.31.dev0.dist-info/METADATA,sha256=ZeTrAken2-oKXpTHCGiyBdp-6IAknymxfXnhcuVYTwk,1249
64
+ splight_cli-2.3.31.dev0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
65
+ splight_cli-2.3.31.dev0.dist-info/entry_points.txt,sha256=IDM6zGhinztZLBDM4bx17B1Bw7Ruo2_yzEa91Fe8i2Y,41
66
+ splight_cli-2.3.31.dev0.dist-info/top_level.txt,sha256=HmpDxSFAbd4V_5A36MKSqpOO_JlkyBLYDfR8F8Vjp7E,12
67
+ splight_cli-2.3.31.dev0.dist-info/RECORD,,