Commit Graph

273 Commits

Author SHA1 Message Date
renovate[bot] 0932de3e5d
chore(deps): update dependency ruff to v0.9.3 2025-01-23 23:00:05 +00:00
renovate[bot] 47d0d54b26
fix(deps): update dependency structlog to v25 2025-01-16 18:16:24 +00:00
J. Fernández 54d6e39371
Merge branch 'main' into main 2025-01-15 10:01:42 +01:00
Bob Haddleton 8551576b1f
Merge pull request #118 from crossplane/renovate/ruff-0.x
chore(deps): update dependency ruff to v0.9.1
2025-01-14 13:55:18 -06:00
renovate[bot] f1ae43e725
chore(deps): update dependency ruff to v0.9.1 2025-01-10 21:12:29 +00:00
Bob Haddleton 192b1d0b7a
Merge pull request #117 from crossplane/renovate/ruff-0.x
chore(deps): update dependency ruff to v0.9.0
2025-01-09 11:44:55 -06:00
renovate[bot] a82962a952
chore(deps): update dependency ruff to v0.9.0 2025-01-09 17:42:43 +00:00
Bob Haddleton 0651813b59
Merge pull request #116 from crossplane/renovate/protobuf-5.x
fix(deps): update dependency protobuf to v5.29.3
2025-01-09 11:42:20 -06:00
renovate[bot] 8f57f81ea1
fix(deps): update dependency protobuf to v5.29.3 2025-01-09 01:22:39 +00:00
Bob Haddleton 2c8b642afd
Merge pull request #110 from crossplane/renovate/ipython-8.x
chore(deps): update dependency ipython to v8.31.0
2025-01-08 14:30:31 -06:00
renovate[bot] 479335d1e3
chore(deps): update dependency ipython to v8.31.0 2025-01-08 20:16:39 +00:00
Bob Haddleton 84cf34e482
Merge pull request #107 from crossplane/renovate/ruff-0.x
chore(deps): update dependency ruff to v0.8.6
2025-01-08 13:56:36 -06:00
Bob Haddleton 81df679319
Merge pull request #111 from crossplane/renovate/pypa-gh-action-pypi-publish-1.x
chore(deps): update pypa/gh-action-pypi-publish action to v1.12.3
2025-01-08 13:53:15 -06:00
renovate[bot] 773346f3f8
chore(deps): update dependency ruff to v0.8.6 2025-01-08 19:52:55 +00:00
Bob Haddleton 77f1f6e8dd
Merge pull request #105 from crossplane/renovate/grpcio-tools-1.x
chore(deps): update dependency grpcio-tools to v1.69.0
2025-01-08 13:52:21 -06:00
renovate[bot] b8dd9ec256
chore(deps): update dependency grpcio-tools to v1.69.0 2025-01-08 19:50:52 +00:00
renovate[bot] 6b3e0cbcc4
chore(deps): update pypa/gh-action-pypi-publish action to v1.12.3 2025-01-08 19:50:30 +00:00
Bob Haddleton d9e26f5b03
Merge pull request #89 from crossplane/renovate/protobuf-5.x
fix(deps): update dependency protobuf to v5.29.2
2025-01-08 13:49:57 -06:00
renovate[bot] 5139481ee5
fix(deps): update dependency protobuf to v5.29.2 2025-01-08 19:48:30 +00:00
Nic Cope a8999723f4
Merge pull request #115 from bobh66/fix_bucket_version
fix(unittests): fix bucket api version
2025-01-08 11:47:05 -08:00
Bob Haddleton 9ef55d251c fix(unittests): fix bucket api version 2025-01-08 13:33:33 -06:00
Nic Cope 064ffe7458
Merge pull request #112 from crossplane/fix_unit_tests
Bump protobuf and add defensive checks to get_* helpers
2025-01-08 11:19:46 -08:00
Nic Cope d4b3506ec7
Merge pull request #114 from haarchri/test
Pydantic, exclude_defaults=True re-add `apiVersion` and `kind`
2025-01-08 11:18:57 -08:00
Christopher Haar 70e86c0d30 fix(defaults): add apiVersion and kind
Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
2025-01-06 17:10:32 +01:00
Bob Haddleton 685918f02d Bump protobuf and add defensive checks to get_* helpers
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
2024-12-18 14:27:11 -06:00
Bob Haddleton 9c44291da2
Merge pull request #106 from crossplane/renovate/pypa-gh-action-pypi-publish-1.x
chore(deps): update pypa/gh-action-pypi-publish action to v1.12.2
2024-11-30 14:54:48 -06:00
Jesús Fernández 36e5600356
chore: stick to grpcio 1.67.0
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-11-26 20:04:55 +01:00
J. Fernández 5cf7fffbf1
bump protobuf
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-11-26 19:55:16 +01:00
Jesús Fernández c632b0c1ad
feat: use json_format.ParseDict to convert dicts to structs
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-11-25 12:08:06 +01:00
Jesús Fernández 25e49cf3bd
fix: structs containing listvalues are properly converted
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-11-13 22:23:14 +01:00
renovate[bot] 7452119ba8
chore(deps): update pypa/gh-action-pypi-publish action to v1.12.2 2024-11-07 01:51:37 +00:00
Bob Haddleton 870edfcd76
Merge pull request #104 from crossplane/renovate/ipython-8.x
chore(deps): update dependency ipython to v8.29.0
2024-10-25 07:52:00 -05:00
Bob Haddleton fc8796d42b
Merge pull request #103 from crossplane/renovate/ruff-0.x
chore(deps): update dependency ruff to v0.7.1
2024-10-25 07:51:07 -05:00
renovate[bot] 569af1d6d3
chore(deps): update dependency ipython to v8.29.0 2024-10-25 10:48:41 +00:00
renovate[bot] 41eca588a1
chore(deps): update dependency ruff to v0.7.1 2024-10-24 16:33:59 +00:00
Bob Haddleton 50086a69b2
Merge pull request #101 from crossplane/renovate/ruff-0.x
chore(deps): update dependency ruff to v0.7.0
2024-10-17 22:40:11 -05:00
Bob Haddleton 1bf5f444e4
Merge pull request #100 from crossplane/renovate/grpcio-tools-1.x
chore(deps): update dependency grpcio-tools to v1.67.0
2024-10-17 22:39:31 -05:00
renovate[bot] 5a3e1536ee
chore(deps): update dependency ruff to v0.7.0 2024-10-17 17:25:30 +00:00
renovate[bot] 6a256486e2
chore(deps): update dependency grpcio-tools to v1.67.0 2024-10-16 08:53:28 +00:00
Nic Cope fde5b7ef84
Merge pull request #93 from crossplane/renovate/ubuntu-24.x
chore(deps): update dependency ubuntu to v24
2024-10-09 20:02:22 -07:00
renovate[bot] 266dd49d93
chore(deps): update dependency ubuntu to v24 2024-10-10 03:00:53 +00:00
Nic Cope 5ceb76308d
Merge pull request #99 from negz/hatchery
Update to hatch v0.12, which includes new `hatch test` and `hatch fmt` commands
2024-10-09 20:00:23 -07:00
Nic Cope 59f8ccc62a Use latest available Python 3.11.x
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 19:58:54 -07:00
Nic Cope 8057458e36 Bump Python version
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 19:57:32 -07:00
Nic Cope 7990ab8939 Use the new hatch fmt command to run linters and formatting
Right now this defaults to a pretty old version of ruff. Hatch pins a
ruff version though, so I'm inclined to just use whatever ruff version
Hatch uses.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 19:54:19 -07:00
Nic Cope d10f084b84 Use the new hatch test command to run tests
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 19:54:19 -07:00
Nic Cope 33ee9e1c4a
Merge pull request #98 from negz/pydants
Add a `resource.update` convenience function
2024-10-09 19:11:05 -07:00
Nic Cope df655cabec Use class matches in resource.update()
This was introduced in 3.10, and seems like a much better way to handle
matching a type.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 18:04:33 -07:00
Nic Cope 5fe3b5c9e0 Don't lint (generated) testdata
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 18:04:33 -07:00
Nic Cope 974bdc45a6 Add a resource.update convenience function
This function can be used to add or update a resource.

For example, to add a desired composed bucket (assuming the "bucket"
resource doesn't yet exist):

```python
resource.update(rsp.desired.resources["bucket"], bucket)
```

Or to update the desired XR:

```python
resource.update(rsp.desired.composite.resource, partial_xr)
```

The source resource can be a dictionary, a protobuf struct, or a
Pydantic model.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 18:04:33 -07:00