Commit Graph

18 Commits

Author SHA1 Message Date
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
renovate[bot] 39bc3c1466
Update dependency ruff to v0.1.11 2024-01-03 01:35:45 +00: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
renovate[bot] d8f31637d7
Update dependency ipython to v8.19.0 2023-12-22 17:01:08 +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
renovate[bot] da1f484dc4
Update dependency grpcio-tools to v1.60.0 2023-12-07 19:18:51 +00:00
renovate[bot] e82539439e
Update dependency ruff to v0.1.7 2023-12-04 23:37:26 +00:00
renovate[bot] 03e7a4d93c
Update dependency ipython to v8.18.1 2023-11-27 10:16:22 +00:00
renovate[bot] 855648932d
Update dependency ipython to v8.18.0 2023-11-24 11:18:39 +00: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 d140f44d82 Use crossplane.* as known first party import
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 14:04:22 -08:00
renovate[bot] eb9636f99c
Update dependency grpcio-tools to v1.59.3 2023-11-21 02:30:53 +00: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