toml-combine 0.3.0__tar.gz → 0.4.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toml-combine
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: A tool for combining complex configurations in TOML format.
5
5
  Author-email: Joachim Jablon <ewjoachim@gmail.com>
6
6
  License-Expression: MIT
@@ -201,7 +201,7 @@ container.env.ENABLE_EXPENSIVE_MONITORING = false
201
201
  This produces the following configs:
202
202
 
203
203
  ```console
204
- $ uv run toml-combine example.toml --environment=production --service=frontend
204
+ $ toml-combine example.toml --environment=production --service=frontend
205
205
  registry = "gcr.io/my-project/"
206
206
  service_account = "my-service-account"
207
207
  name = "service-frontend"
@@ -182,7 +182,7 @@ container.env.ENABLE_EXPENSIVE_MONITORING = false
182
182
  This produces the following configs:
183
183
 
184
184
  ```console
185
- $ uv run toml-combine example.toml --environment=production --service=frontend
185
+ $ toml-combine example.toml --environment=production --service=frontend
186
186
  registry = "gcr.io/my-project/"
187
187
  service_account = "my-service-account"
188
188
  name = "service-frontend"
@@ -22,6 +22,6 @@ def dumps(config: dict) -> str:
22
22
  # features. The easiest way to turn tomlkit objects into plain dicts and strings
23
23
  # is through a json round-trip.
24
24
  try:
25
- return tomlkit.dumps(json.loads(json.dumps(config)))
25
+ return tomlkit.dumps(json.loads(json.dumps(config)), sort_keys=False)
26
26
  except tomlkit.exceptions.TOMLKitError as e:
27
27
  raise exceptions.TomlEncodeError from e
File without changes