forked from open-feature/python-sdk-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/gherkin_and_testcontainers
- Loading branch information
Showing
13 changed files
with
465 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | ||
package: | ||
- "hooks/openfeature-hooks-opentelemetry" | ||
- "providers/openfeature-provider-flagd" | ||
|
@@ -38,9 +38,10 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
|
||
- uses: bufbuild/buf-setup-action@v1.28.1 | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
github_token: ${{ github.token }} | ||
setup_only: true | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
@@ -49,8 +50,9 @@ jobs: | |
run: hatch run cov | ||
working-directory: ${{ matrix.package }} | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
- if: matrix.python-version == '3.11' | ||
name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
name: Code Coverage for ${{ matrix.package }} on Python ${{ matrix.python-version }} | ||
directory: ${{ matrix.package }} | ||
|
@@ -69,7 +71,7 @@ jobs: | |
cache: "pip" | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].1 | ||
|
||
sast: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"hooks/openfeature-hooks-opentelemetry": "0.1.3", | ||
"providers/openfeature-provider-flagd": "0.1.5" | ||
"providers/openfeature-provider-flagd": "0.1.5", | ||
"providers/openfeature-provider-ofrep": "0.1.0" | ||
} |
4 changes: 1 addition & 3 deletions
4
...s/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
providers/openfeature-provider-flagd/tests/flags/invalid-fractional-args-wrong-content.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"flags": { | ||
"basic-flag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"default": "default", | ||
"true": "true", | ||
"false": "false" | ||
}, | ||
"defaultVariant": "default", | ||
"targeting": { | ||
"fractional": [[]] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
providers/openfeature-provider-flagd/tests/flags/invalid-fractional-weights-strings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"flags": { | ||
"basic-flag": { | ||
"state": "ENABLED", | ||
"variants": { | ||
"default": "default", | ||
"true": "true", | ||
"false": "false" | ||
}, | ||
"defaultVariant": "default", | ||
"targeting": { | ||
"fractional": [ | ||
["a", "one"], | ||
["b", "one"] | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
# Changelog | ||
|
||
## 0.1.0 (2024-10-02) | ||
|
||
|
||
### ✨ New Features | ||
|
||
* add initial skeleton for OFREP provider ([#86](https://github.com/open-feature/python-sdk-contrib/issues/86)) ([00a5a18](https://github.com/open-feature/python-sdk-contrib/commit/00a5a18a76ef1435de67f312e384a97823bd185b)) | ||
* implement basic functionality of OFREP provider ([#88](https://github.com/open-feature/python-sdk-contrib/issues/88)) ([cb42cc0](https://github.com/open-feature/python-sdk-contrib/commit/cb42cc0001e19793f391351a1ce5bafe1831025f)) | ||
|
||
## Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.