Commit Graph

47 Commits

Author SHA1 Message Date
Nic Cope 9c7a3eba5d
Merge pull request #29 from negz/like-a-version
Only run publish step once build is done
2024-01-03 18:51:59 -08:00
Nic Cope 85783c6fb9 Only run publish step once build is done
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-01-03 18:50:27 -08:00
Nic Cope b143432472
Merge pull request #28 from negz/like-a-version
Push to PyPI
2024-01-03 18:41:42 -08:00
Nic Cope c1e5e20bef Use Python-compatible versions
See https://packaging.python.org/en/latest/specifications/version-specifiers/#examples-of-compliant-version-schemes

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-01-03 18:37:34 -08:00
Nic Cope 29edf77d58 Push to PyPI
I _think_ this should push to PyPI only when the CI workflow is run with
a version input, similar to how builds work for functions.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-01-03 18:13:21 -08:00
Nic Cope aa3e0e2c64
Merge pull request #27 from crossplane/renovate/ruff-0.x
Update dependency ruff to v0.1.11
2024-01-03 16:30:45 -08:00
renovate[bot] 39bc3c1466
Update dependency ruff to v0.1.11 2024-01-03 01:35:45 +00:00
Bob Haddleton 77c2b3d084
Merge pull request #26 from crossplane/renovate/ruff-0.x
Update dependency ruff to v0.1.10
2024-01-02 13:32:45 -06:00
renovate[bot] 2b8e7f99cd
Update dependency ruff to v0.1.10 2024-01-02 19:31:30 +00:00
Bob Haddleton 3cb8b1fd0f
Merge pull request #25 from crossplane/renovate/ipython-8.x
Update dependency ipython to v8.19.0
2023-12-22 11:09:34 -06:00
Bob Haddleton 132ec15d3d
Merge pull request #23 from crossplane/renovate/actions-upload-artifact-4.x
Update actions/upload-artifact action to v4
2023-12-22 11:09:03 -06:00
Bob Haddleton 26e022dc96
Merge pull request #22 from crossplane/renovate/ruff-0.x
Update dependency ruff to v0.1.9
2023-12-22 11:04:04 -06:00
renovate[bot] d8f31637d7
Update dependency ipython to v8.19.0 2023-12-22 17:01:08 +00:00
renovate[bot] 8e6b7ac198
Update actions/upload-artifact action to v4 2023-12-22 17:00:37 +00:00
renovate[bot] cce2c9455a
Update dependency ruff to v0.1.9 2023-12-22 17:00:22 +00:00
Bob Haddleton 1e63db2926
Merge pull request #24 from joelddiaz/fix-build
fix hatch build
2023-12-22 10:57:41 -06:00
Joel Diaz b336926f62 fix hatch build
without this change, running 'hatch build' in my environment (Ubuntu LTS
22.04) fails with:

  File
"/home/jo.diaz/.local/share/hatch/env/virtual/function-sdk-python/wwDZoZBv/function-sdk-python-build/lib/python3.11/site-packages/hatchling/builders/wheel.py",
line 231, in default_only_include
    return self.default_file_selection_options.only_include
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/jo.diaz/.pyenv/versions/3.11.6/lib/python3.11/functools.py", line
1001, in __get__
    val = self.func(instance)
          ^^^^^^^^^^^^^^^^^^^
  File
"/home/jo.diaz/.local/share/hatch/env/virtual/function-sdk-python/wwDZoZBv/function-sdk-python-build/lib/python3.11/site-packages/hatchling/builders/wheel.py",
line 219, in default_file_selection_options
    raise ValueError(message)
ValueError: Unable to determine which files to ship inside the wheel
using the following heuristics:
https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection

At least one file selection option must be defined in the
`tool.hatch.build.targets.wheel` table, see:
https://hatch.pypa.io/latest/config/build/

As an example, if you intend to ship a directory named `foo` that
resides within a `src` directory located at the root of your project,
you can define the following:

[tool.hatch.build.targets.wheel]
packages = ["src/foo"]

with the change, the build succeeds

Signed-off-by: Joel Diaz <jo.diaz@celonis.com>
2023-12-20 16:15:08 -05:00
Bob Haddleton 8f6e9c20fc
Merge pull request #21 from crossplane/renovate/grpcio-tools-1.x
Update dependency grpcio-tools to v1.60.0
2023-12-07 20:16:48 -06:00
renovate[bot] da1f484dc4
Update dependency grpcio-tools to v1.60.0 2023-12-07 19:18:51 +00:00
Bob Haddleton 22aef487a7
Merge pull request #20 from crossplane/renovate/actions-setup-python-5.x
Update actions/setup-python action to v5
2023-12-06 07:26:58 -06:00
renovate[bot] 293c27d1c4
Update actions/setup-python action to v5 2023-12-06 12:27:19 +00:00
Bob Haddleton e9294b48bb
Merge pull request #19 from crossplane/renovate/ruff-0.x
Update dependency ruff to v0.1.7
2023-12-04 17:38:45 -06:00
renovate[bot] e82539439e
Update dependency ruff to v0.1.7 2023-12-04 23:37:26 +00:00
Bob Haddleton 9a2735fa1c
Merge pull request #18 from crossplane/renovate/ipython-8.x
Update dependency ipython to v8.18.1
2023-11-27 08:06:30 -06:00
renovate[bot] 03e7a4d93c
Update dependency ipython to v8.18.1 2023-11-27 10:16:22 +00:00
Bob Haddleton 2f56d73b39
Merge pull request #17 from crossplane/renovate/ipython-8.x
Update dependency ipython to v8.18.0
2023-11-25 13:33:11 -06:00
renovate[bot] 855648932d
Update dependency ipython to v8.18.0 2023-11-24 11:18:39 +00:00
Nic Cope 2c9e248f03
Merge pull request #16 from negz/grandmaster-flash
Add license headers
2023-11-21 19:10:08 -08:00
Nic Cope 502f567d4a Add license headers
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-21 19:06:10 -08:00
Nic Cope 09c6bb991e
Merge pull request #14 from negz/resulting
Add convenience functions for returning results
2023-11-21 18:20:10 -08:00
Nic Cope 667a56db88 Add convenience functions for returning results
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-21 18:11:26 -08:00
Nic Cope 07a7b82847
Merge pull request #12 from negz/one-lint
Use a single lint command
2023-11-21 00:46:06 -08:00
Nic Cope 902ae12774
Merge pull request #9 from negz/what-mouse
Remove dependency on click
2023-11-20 18:52:51 -08:00
Nic Cope b776582698
Merge pull request #8 from negz/known
Use crossplane.* as known first party import
2023-11-20 18:42:45 -08:00
Nic Cope 8e19a23e47
Merge pull request #6 from crossplane/renovate/grpcio-tools-1.x
Update dependency grpcio-tools to v1.59.3
2023-11-20 18:32:01 -08:00
renovate[bot] eb9636f99c
Update dependency grpcio-tools to v1.59.3 2023-11-21 02:30:53 +00:00
Nic Cope c37d7d8349
Merge pull request #3 from crossplane/renovate/configure
Configure Renovate
2023-11-20 18:30:41 -08:00
renovate[bot] 7ac20d3b86
Add renovate.json 2023-11-21 02:22:01 +00:00
Nic Cope de43be5543
Merge pull request #2 from negz/main
Remove copy-pasta in CI workflow
2023-11-20 18:21:51 -08:00
Nic Cope f9fbf328c4 Use a single lint command
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 18:00:36 -08:00
Nic Cope 85305e4d3c Remove dependency on click
The SDK doesn't depend on this, but I think functions will

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 14:10:06 -08:00
Nic Cope 383783c0f9 Remove stale TODO WRT insecure port
It appears that it does override secure port

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 14:06:29 -08:00
Nic Cope d140f44d82 Use crossplane.* as known first party import
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 14:04:22 -08:00
Nic Cope 704eea558f Remove copy-pasta in CI workflow
The build job builds, not tests. :)

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 13:46:58 -08:00
Nic Cope 7bb33ae97f Link to the protobuf generated code guide
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 13:44:37 -08:00
Nic Cope e247d8766e Break the SDK out into its own repo
I prototyped this in https://github.com/negz/function-auto-python.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 13:37:50 -08:00
Nic Cope e930e1ddf8
Initial commit 2023-11-20 15:00:23 -08:00