forked from capless/warrant
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/pip/flake8-6.0.0
- Loading branch information
Showing
17 changed files
with
533 additions
and
118 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "pycognito dev", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.8", | ||
"postStartCommand": "python3 -m pip install -e .", | ||
"postCreateCommand": "python3 -m pip install -r requirements_test.txt tox", | ||
"containerUser": "vscode", | ||
"containerEnv": { | ||
"GIT_EDITOR": "code --wait" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"esbenp.prettier-vscode", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"visualstudioexptteam.vscodeintellicode" | ||
], | ||
"settings": { | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.formatting.provider": "black", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"editor.rulers": [ | ||
88 | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "always", | ||
"source.organizeImports": "always" | ||
}, | ||
"files.trimTrailingWhitespace": true, | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "zsh" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: "Report a bug with pyCognito" | ||
description: Report an issue with pyCognito | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: The problem | ||
placeholder: >- | ||
Describe the issue you are experiencing here to communicate to the | ||
maintainers. Tell us what you were trying to do and what happened. | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: | | ||
## Environment | ||
- type: input | ||
attributes: | ||
label: Operating system | ||
validations: | ||
required: true | ||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: Python version | ||
render: txt | ||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: Problem-relevant code | ||
description: >- | ||
A minimal example to reproduce the bug | ||
render: python | ||
- type: textarea | ||
attributes: | ||
label: Traceback/Error logs | ||
description: >- | ||
If you come across any trace or error logs, please provide them. | ||
render: txt | ||
- type: textarea | ||
attributes: | ||
label: Additional information |
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 @@ | ||
blank_issues_enabled: false |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tox: | ||
runs-on: ubuntu-latest | ||
name: Tox | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.5 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install tox | ||
run: python3 -m pip install tox | ||
|
||
- name: Run Tox | ||
run: tox |
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,31 +1,59 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
types: | ||
- published | ||
|
||
jobs: | ||
deploy: | ||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4.1.5 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.x' | ||
python-version: "3.x" | ||
|
||
- name: Verify version | ||
uses: home-assistant/actions/helpers/verify-version@master | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
pip install setuptools build | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
python -m build | ||
- name: Upload dists | ||
uses: actions/upload-artifact@v4.3.3 | ||
with: | ||
name: "dist" | ||
path: "dist/" | ||
if-no-files-found: error | ||
retention-days: 5 | ||
|
||
publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
needs: "build" | ||
environment: | ||
name: release | ||
url: https://pypi.org/p/pycognito | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Download dists | ||
uses: actions/download-artifact@v4.1.7 | ||
with: | ||
name: "dist" | ||
path: "dist/" | ||
|
||
- name: Publish dists to PyPI | ||
# Pinned to a commit for security purposes | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 |
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 was deleted.
Oops, something went wrong.
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.