Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/publish-python-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Publish Infrahub Python SDK
on: # yamllint disable rule:truthy
push:
tags:
- "python-sdk-v*"
- "v*"

jobs:
publish_to_pypi:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: "Set up Python"
uses: "actions/setup-python@v5"
with:
python-version: "3.11"
python-version: "3.12"

- name: "Install Poetry"
uses: "snok/install-poetry@v1"
Expand All @@ -35,20 +35,16 @@ jobs:

- name: "Install Dependencies"
run: "poetry install"
working-directory: "./python_sdk"
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'

- name: "Add PyPI secret"
run: "poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}"

- name: "Poetry build"
run: "poetry build"
working-directory: "./python_sdk"

- name: "show output"
run: "ls -la dist/"
working-directory: "./python_sdk"

- name: "Poetry push PyPI"
run: "poetry publish"
working-directory: "./python_sdk"
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ coverage.xml
script.py
**/*.local.*
.vscode/settings.json
node_modules/*
development/docker-compose.override.yml
development/docker-compose.dev-override.yml
.DS_Store
.python-version
.ruff_cache
Expand All @@ -23,13 +20,11 @@ docs/build

storage/*
.coverage.*
python_sdk/dist/*
dist/*
.benchmarks/*

# Test reports
**/*.csv

# Generated files
generated/
query_performance_results/
sync/dist/
generated/
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the changes for the upcoming release can be found in <https://github.com/opsmill/infrahub/tree/develop/infrahub/python_sdk/changelog/>.

<!-- towncrier release notes start -->

## [0.13.1.dev0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.13.1.dev0) - 2024-09-24

### Added

- Allow id filters to be combined when executing a query ([#3](https://github.com/opsmill/infrahub-sdk-python/issues/3))

### Fixed

- Add ability to construct HFIDs from payload for upsert mutations ([#45](https://github.com/opsmill/infrahub-sdk-python/issues/45))
- Fix pytest plugin integration tests unable to run because we were not properly setting the api_token configuration setting for the SDK.
93 changes: 89 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "infrahub-sdk"
version = "0.13.1-dev0"
version = "0.13.1"
description = "Python Client to interact with Infrahub"
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down Expand Up @@ -64,6 +64,7 @@ ruff = "0.5.0"
pytest-xdist = "^3.3.1"
types-python-slugify = "^8.0.0.3"
invoke = "^2.2.0"
towncrier = "^24.8.0"

[tool.poetry.extras]
ctl = ["Jinja2", "numpy", "pyarrow", "pyyaml", "rich", "toml", "typer"]
Expand Down Expand Up @@ -346,7 +347,7 @@ max-complexity = 17

[tool.towncrier]

package = "infrahub-sdk"
package = "infrahub_sdk"
directory = "changelog"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
Expand Down