Skip to content

Commit

Permalink
fix: print errors on failed build_python
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Oct 16, 2024
1 parent d80bcb6 commit 38e45fa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@ jobs:
version: v1.61.0
working-directory: provider
skip-pkg-cache: true
build_python:
name: Python build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: pip install build setuptools
- name: Build Python packages
run: cd sdk/python/ && cp ../../README.md . && python3 setup.py clean --all
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ build_python:: install_plugins tfgen # build the python sdk
$(WORKING_DIR)/bin/$(TFGEN) python --overlays provider/overlays/python --out sdk/python/
cd sdk/python/ && \
cp ../../README.md . && \
python3 setup.py clean --all 2>/dev/null && \
python3 setup.py clean --all && \
rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \
sed -i.bak -e 's/^VERSION = .*/VERSION = "$(PYPI_VERSION)"/g' -e 's/^PLUGIN_VERSION = .*/PLUGIN_VERSION = "$(VERSION)"/g' ./bin/setup.py && \
rm ./bin/setup.py.bak && \
Expand Down
14 changes: 10 additions & 4 deletions sdk/python/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
> [!WARNING]
> This project is in development. Suitable for testing usage at the moment. Instructions, package names and URLs have not been updated.
> This project is in development. Suitable for testing usage at the moment. All instructions, package names and URLs might not have been updated.
# UpCloud Resource Provider

Expand All @@ -9,6 +9,7 @@ The UpCloud Resource Provider lets you manage [UpCloud](https://upcloud.com/) re

This package is available for several languages/platforms:

<!--
### Node.js (JavaScript/TypeScript)
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
Expand All @@ -22,6 +23,7 @@ or `yarn`:
```bash
yarn add @pulumi/foo
```
-->

### Python

Expand All @@ -31,6 +33,7 @@ To use from Python, install using `pip`:
pip install pulumi_foo
```

<!--
### Go
To use from Go, use `go get` to grab the latest version of the library:
Expand All @@ -46,14 +49,17 @@ To use from .NET, install using `dotnet add package`:
```bash
dotnet add package Pulumi.Foo
```
-->

## Configuration

The following configuration points are available for the `foo` provider:
The following configuration points are available for the `upcloud` provider:

- `foo:apiKey` (environment: `FOO_API_KEY`) - the API key for `foo`
- `foo:region` (environment: `FOO_REGION`) - the region in which to deploy resources
- `UPCLOUD_USERNAME` (environment variable) - the username of the account to use
- `UPCLOUD_PASSWORD` (environment variable) - the password of the account to use

<!--
## Reference
For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/foo/api-docs/).
-->

0 comments on commit 38e45fa

Please sign in to comment.