snapctl 0.49.3__py3-none-any.whl → 0.49.4__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.
Potentially problematic release.
This version of snapctl might be problematic. Click here for more details.
- snapctl/commands/byows.py +4 -2
- snapctl/config/constants.py +1 -1
- snapctl/data/releases/beta-0.49.4.mdx +8 -0
- {snapctl-0.49.3.dist-info → snapctl-0.49.4.dist-info}/METADATA +1 -1
- {snapctl-0.49.3.dist-info → snapctl-0.49.4.dist-info}/RECORD +8 -7
- {snapctl-0.49.3.dist-info → snapctl-0.49.4.dist-info}/LICENSE +0 -0
- {snapctl-0.49.3.dist-info → snapctl-0.49.4.dist-info}/WHEEL +0 -0
- {snapctl-0.49.3.dist-info → snapctl-0.49.4.dist-info}/entry_points.txt +0 -0
snapctl/commands/byows.py
CHANGED
|
@@ -99,11 +99,12 @@ class Byows:
|
|
|
99
99
|
def _get_export_commands(snap_ids, port):
|
|
100
100
|
'''
|
|
101
101
|
Generate export commands for the given snap IDs and port.
|
|
102
|
+
Replace hyphens with underscores in environment variable names.
|
|
102
103
|
'''
|
|
103
104
|
env_vars = []
|
|
104
105
|
|
|
105
106
|
for snap_id in snap_ids:
|
|
106
|
-
upper_id = snap_id.upper()
|
|
107
|
+
upper_id = snap_id.upper().replace("-", "_")
|
|
107
108
|
env_vars.append(f"SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
|
|
108
109
|
env_vars.append(
|
|
109
110
|
f"SNAPEND_{upper_id}_HTTP_URL=http://localhost:{port}")
|
|
@@ -121,11 +122,12 @@ class Byows:
|
|
|
121
122
|
def _generate_env_file(snap_ids, port):
|
|
122
123
|
'''
|
|
123
124
|
Generate an environment file with the given snap IDs and port.
|
|
125
|
+
Replace hyphens with underscores in environment variable names.
|
|
124
126
|
'''
|
|
125
127
|
env_lines = []
|
|
126
128
|
|
|
127
129
|
for snap_id in snap_ids:
|
|
128
|
-
upper_id = snap_id.upper()
|
|
130
|
+
upper_id = snap_id.upper().replace("-", "_")
|
|
129
131
|
env_lines.append(
|
|
130
132
|
f"export SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
|
|
131
133
|
env_lines.append(
|
snapctl/config/constants.py
CHANGED
|
@@ -3,13 +3,13 @@ snapctl/__main__.py,sha256=43jKoTk8b85hk_MT6499N3ruHdEfM8WBImd_-3VzjI8,116
|
|
|
3
3
|
snapctl/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
snapctl/commands/byogs.py,sha256=WumLZRriCVF0SSnMn8TUL--iWhh3Yub3yQ-jz30faI0,19486
|
|
5
5
|
snapctl/commands/byosnap.py,sha256=9Xe75VAi-KPFALSleUyMJsrvDJEG6cxBiGiF267PSJA,76897
|
|
6
|
-
snapctl/commands/byows.py,sha256=
|
|
6
|
+
snapctl/commands/byows.py,sha256=xmvTsWGjp3CkIvMj3LdVJO02P5W0-HfWqsP2pf9tsXE,18519
|
|
7
7
|
snapctl/commands/game.py,sha256=lAABIWIibrwcqvpKvTy_7UzzLtbiP6gdk4_qPBHFKOI,5248
|
|
8
8
|
snapctl/commands/generate.py,sha256=9-NlZVQllBT2LZT_t9S3ztwtHzTbM-C8_x0f6z70U3g,5606
|
|
9
9
|
snapctl/commands/release_notes.py,sha256=QlhBlywLiRTKBs3SlaxHf-0E0OEU_47Xjld9gGtj4Zw,1943
|
|
10
10
|
snapctl/commands/snapend.py,sha256=4hY4ffLtZ2mxbKRgwDPi8erc78nGl-6kxmCf56HODpk,39382
|
|
11
11
|
snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
snapctl/config/constants.py,sha256=
|
|
12
|
+
snapctl/config/constants.py,sha256=CTUzo_jPrVtXe7MrhiNESTTyQ4nHdRmTg2VHhaSsTVA,3716
|
|
13
13
|
snapctl/config/endpoints.py,sha256=jD0n5ocJBbIkrb97F2_r9hqAHzUuddAqzqqBAPUKDTI,477
|
|
14
14
|
snapctl/config/hashes.py,sha256=3OKAyOxQPnn--_hvPIzFJnhC8NVfQK4WT-RH4PHEV1w,5242
|
|
15
15
|
snapctl/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -28,14 +28,15 @@ snapctl/data/releases/beta-0.49.0.mdx,sha256=pqJP7NfM3ZMxs4SoeANCdDqTxjR9IBGbBI3
|
|
|
28
28
|
snapctl/data/releases/beta-0.49.1.mdx,sha256=4EXupEegYffnL5bu_XWxGbzIPp9xOzl7t4xbmhq52fU,200
|
|
29
29
|
snapctl/data/releases/beta-0.49.2.mdx,sha256=Vv_OIQyPieEGI9FgTUT0v5Gm0PC2JWa2FqcCUhnvx6s,176
|
|
30
30
|
snapctl/data/releases/beta-0.49.3.mdx,sha256=XmSfpiH-LqvKS2REJ5FGDcLgyEN-OcSzwrXNI_EhiGc,234
|
|
31
|
+
snapctl/data/releases/beta-0.49.4.mdx,sha256=olSEvzwrBgp6TfVYehYslhGrjLXz1EcybTmbXUmtA18,161
|
|
31
32
|
snapctl/main.py,sha256=6EDEQlcF3GPSqH3-Ezl7bkI33ZKaFR_c55B0Dkt0pDM,25212
|
|
32
33
|
snapctl/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
34
|
snapctl/types/definitions.py,sha256=EQzLeiXkJ8ISRlCqHMviNVsWWpmhWjpKaOBLdlvOTmY,644
|
|
34
35
|
snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
36
|
snapctl/utils/echo.py,sha256=V0qgjqqGXRiueMkq31enmNmdqciC8S90qGRcK8UupXA,1090
|
|
36
37
|
snapctl/utils/helper.py,sha256=7ugGs1GE7Rywf1-tQxrgqXUU97EQYFjS3JUDpk9SX_Q,6850
|
|
37
|
-
snapctl-0.49.
|
|
38
|
-
snapctl-0.49.
|
|
39
|
-
snapctl-0.49.
|
|
40
|
-
snapctl-0.49.
|
|
41
|
-
snapctl-0.49.
|
|
38
|
+
snapctl-0.49.4.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
|
|
39
|
+
snapctl-0.49.4.dist-info/METADATA,sha256=LDD9RPdA6elzjHoCx4qVnGl1YtVtOUtev61U2jvFU6k,36275
|
|
40
|
+
snapctl-0.49.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
41
|
+
snapctl-0.49.4.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
|
|
42
|
+
snapctl-0.49.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|