-
Notifications
You must be signed in to change notification settings - Fork 31
Pypi publish #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Pypi publish #22
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bd85483
pypi-packaging: install python build
ajhelsby 6c5a5c5
Merge branch 'main' into pypi-publish
ajhelsby b139eb9
pypi-packaging: Rename open feature python package
ajhelsby a94d540
Merge branch 'main' into pypi-publish
ajhelsby f87448c
pypi-packaging: Add code coverage to pipeline
ajhelsby a81672a
pypi-packaging: Update actions to match other sdks
ajhelsby 4a272ae
pypi-packaging: Update readme with relevant badges
ajhelsby 484dc6b
pypi-packaging: Update readme with relevant badges
ajhelsby 5ed9d9f
pypi-packaging: Fix merge pipeline to add all linting and tests
ajhelsby 7d2736b
pypi-packaging: Use python 3.10 in release step
ajhelsby 521cf06
pypi-packaging: Use python 3.10 in requirements.txt
ajhelsby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,22 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| name: "Lint PR" | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - synchronize | ||
|
|
||
| jobs: | ||
| main: | ||
| name: Validate PR title | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: amannn/action-semantic-pull-request@v5 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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 hidden or 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,71 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| name: PR | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ master, main ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| container: [ "python:3.8", "python:3.9", "python:3.10" ] | ||
| container: | ||
| image: ${{ matrix.container }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Cache virtualenvironment | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.venv | ||
| key: ${{ hashFiles('requirements.txt', 'requirements-dev.txt') }} | ||
|
|
||
| - name: Upgrade pip | ||
| run: pip install --upgrade pip | ||
|
|
||
| - name: Create and activate Virtualenv | ||
| run: | | ||
| pip install virtualenv | ||
| [ ! -d ".venv" ] && virtualenv .venv | ||
| . .venv/bin/activate | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v2 | ||
| with: | ||
| languages: python | ||
|
|
||
| - name: Install dependencies | ||
| run: pip install -r requirements-dev.txt | ||
|
|
||
| - name: Run black formatter check | ||
| run: black --check . | ||
|
|
||
| - name: Run flake8 formatter check | ||
| run: flake8 . | ||
|
|
||
| - name: Run isort formatter check | ||
| run: isort . | ||
|
|
||
| - name: Test with pytest | ||
| run: coverage run --omit="*/test*" -m pytest | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@e0fbd592d323cb2991fb586fdd260734fcb41fcb | ||
| with: | ||
| flags: unittests # optional | ||
| name: coverage # optional | ||
| fail_ci_if_error: true # optional (default = false) | ||
| verbose: true # optional (default = false) | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v2 | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -4,11 +4,11 @@ requires = ["setuptools>=61.0.0", "wheel"] | |
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "python_open_feature_sdk" | ||
| name = "openfeature_sdk" | ||
| version = "0.0.1" | ||
| description = "Standardizing Feature Flagging for Everyone" | ||
| readme = "README.md" | ||
| authors = [{ name = "Open Feature", email = "[email protected]" }] | ||
| readme = "readme.md" | ||
| authors = [{ name = "OpenFeature", email = "[email protected]" }] | ||
| license = { file = "LICENSE" } | ||
| classifiers = [ | ||
| "License :: OSI Approved :: Apache Software License", | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -5,4 +5,5 @@ black | |
| pip-tools | ||
| pre-commit | ||
| flake8 | ||
| pytest-mock | ||
| pytest-mock | ||
| coverage | ||
This file contains hidden or 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 hidden or 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,6 @@ | ||
| # | ||
| # This file is autogenerated by pip-compile with python 3.10 | ||
| # To update, run: | ||
| # | ||
| # pip-compile requirements.in | ||
| # |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.