generated from tophat/new-project-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: drop python 3.6 support (#612)
BREAKING CHANGE: Drop Python 3.6 support due to end of life.
- Loading branch information
Showing
17 changed files
with
842 additions
and
773 deletions.
There are no files selected for viewing
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,40 @@ | ||
name: setup-env | ||
description: Setup Environment | ||
inputs: | ||
python-version: | ||
description: Version of python | ||
required: true | ||
outputs: | ||
python-version: | ||
value: ${{ steps.detect-python.outputs.version }} | ||
description: Detected Python version. | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Determine Commit Sha | ||
shell: bash | ||
run: echo COMMIT_SHA=$(jq -r ".pull_request.head.sha // .check_run.head_sha // .after" $GITHUB_EVENT_PATH) >> $GITHUB_ENV | ||
- name: Detect Python Version | ||
id: detect-python | ||
run: | | ||
if [[ -z "${{ inputs.python-version }}" ]]; then | ||
echo "::set-output name=version::$(cat .python-version | tr -d '\n')" | ||
else | ||
echo "::set-output name=version::${{ inputs.python-version }}" | ||
fi | ||
shell: bash | ||
- name: Detect Poetry Version | ||
id: detect-poetry | ||
run: | | ||
echo "::set-output name=version::$(cat .poetry-version | tr -d '\n')" | ||
shell: bash | ||
- name: Set up Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v4.2.0 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1.3.1 | ||
with: | ||
version: ${{ steps.detect-poetry.outputs.version }} | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ __pycache__/ | |
# Distribution / packaging | ||
.Python | ||
.tox | ||
.poetry | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
|
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 @@ | ||
1.2.0b3 |
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 @@ | ||
3.9.0 | ||
3.10.4 |
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.