-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
218 additions
and
766 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
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 |
---|---|---|
|
@@ -16,12 +16,12 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Set up uv | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Get version | ||
id: version | ||
uses: actions/github-script@v7 | ||
|
@@ -33,17 +33,14 @@ jobs: | |
} | ||
return context.ref.split('/').pop() | ||
- name: Install dependencies | ||
run: | | ||
poetry install -n | ||
poetry run pip install -U twine wheel | ||
run: uv sync --extra check --dev | ||
- name: Bump version | ||
env: | ||
VERSION: ${{ steps.version.outputs.result }} | ||
run: | | ||
echo "Bumping version to ${VERSION}" | ||
poetry version ${VERSION} | ||
rm -rf *.egg-info || true | ||
poetry install -n | ||
sed -i 's/^version = ".*"$/version = "'$VERSION'"/' pyproject.toml | ||
uv pip install . | ||
- name: Setup git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -60,5 +57,5 @@ jobs: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
poetry build | ||
poetry run twine upload --non-interactive dist/* | ||
uvx --from build pyproject-build --installer uv | ||
uvx twine upload --non-interactive 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 |
---|---|---|
|
@@ -14,14 +14,13 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
ref: docs | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python | ||
id: python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "poetry" | ||
- name: Set up uv | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Setup git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -33,16 +32,17 @@ jobs: | |
git rebase main | ||
- name: Install dependencies | ||
run: | | ||
poetry install -n | ||
poetry run pip install -r requirements.mkdocs.txt | ||
uv sync --dev | ||
uv run pip install -r requirements.mkdocs.txt | ||
- name: Build docs | ||
run: | | ||
poetry run handsdown --external `git config --get remote.origin.url` -o docsmd --cleanup --theme material --branch main | ||
uv run pip install handsdown | ||
uv run handsdown --external `git config --get remote.origin.url` -o docsmd --cleanup --theme material --branch main | ||
- name: Build html docs | ||
run: | | ||
rm -rf docs | ||
echo `ls -lh` | ||
poetry run mkdocs build | ||
uv run mkdocs build | ||
- name: Commit docs | ||
run: | | ||
git add docs docsmd | ||
|
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,23 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: lint | ||
name: lint | ||
language: system | ||
pass_filenames: false | ||
entry: uvx ruff check --fix | ||
- id: format | ||
name: format | ||
language: system | ||
pass_filenames: false | ||
entry: uvx ruff format | ||
- id: pyright | ||
name: pyright | ||
language: system | ||
pass_filenames: false | ||
entry: uvx pyright | ||
- id: pytest | ||
name: pytest | ||
language: system | ||
pass_filenames: false | ||
entry: uvx pytest |
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 @@ | ||
include awscliv2/py.typed |
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
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
Oops, something went wrong.