Skip to content

Commit f2a19e0

Browse files
authored
Merge pull request #44 from opsmill/dga-20240924-ci-publish
Update GHA to publish release to pypi
2 parents ba76af1 + 1f77af2 commit f2a19e0

File tree

5 files changed

+107
-19
lines changed

5 files changed

+107
-19
lines changed

.github/workflows/publish-python-sdk.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Publish Infrahub Python SDK
44
on: # yamllint disable rule:truthy
55
push:
66
tags:
7-
- "python-sdk-v*"
7+
- "v*"
88

99
jobs:
1010
publish_to_pypi:
@@ -14,7 +14,7 @@ jobs:
1414
- name: "Set up Python"
1515
uses: "actions/setup-python@v5"
1616
with:
17-
python-version: "3.11"
17+
python-version: "3.12"
1818

1919
- name: "Install Poetry"
2020
uses: "snok/install-poetry@v1"
@@ -35,20 +35,16 @@ jobs:
3535

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

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

4443
- name: "Poetry build"
4544
run: "poetry build"
46-
working-directory: "./python_sdk"
4745

4846
- name: "show output"
4947
run: "ls -la dist/"
50-
working-directory: "./python_sdk"
5148

5249
- name: "Poetry push PyPI"
5350
run: "poetry publish"
54-
working-directory: "./python_sdk"

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ coverage.xml
66
script.py
77
**/*.local.*
88
.vscode/settings.json
9-
node_modules/*
10-
development/docker-compose.override.yml
11-
development/docker-compose.dev-override.yml
129
.DS_Store
1310
.python-version
1411
.ruff_cache
@@ -23,13 +20,11 @@ docs/build
2320

2421
storage/*
2522
.coverage.*
26-
python_sdk/dist/*
23+
dist/*
2724
.benchmarks/*
2825

2926
# Test reports
3027
**/*.csv
3128

3229
# Generated files
33-
generated/
34-
query_performance_results/
35-
sync/dist/
30+
generated/

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1010
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/>.
1111

1212
<!-- towncrier release notes start -->
13+
14+
## [0.13.1.dev0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.13.1.dev0) - 2024-09-24
15+
16+
### Added
17+
18+
- Allow id filters to be combined when executing a query ([#3](https://github.com/opsmill/infrahub-sdk-python/issues/3))
19+
20+
### Fixed
21+
22+
- Add ability to construct HFIDs from payload for upsert mutations ([#45](https://github.com/opsmill/infrahub-sdk-python/issues/45))
23+
- Fix pytest plugin integration tests unable to run because we were not properly setting the api_token configuration setting for the SDK.

poetry.lock

Lines changed: 89 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "infrahub-sdk"
3-
version = "0.13.1-dev0"
3+
version = "0.13.1"
44
description = "Python Client to interact with Infrahub"
55
authors = ["OpsMill <info@opsmill.com>"]
66
readme = "README.md"
@@ -64,6 +64,7 @@ ruff = "0.5.0"
6464
pytest-xdist = "^3.3.1"
6565
types-python-slugify = "^8.0.0.3"
6666
invoke = "^2.2.0"
67+
towncrier = "^24.8.0"
6768

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

347348
[tool.towncrier]
348349

349-
package = "infrahub-sdk"
350+
package = "infrahub_sdk"
350351
directory = "changelog"
351352
filename = "CHANGELOG.md"
352353
start_string = "<!-- towncrier release notes start -->\n"

0 commit comments

Comments
 (0)