-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Changes ## ci,pkg: poetry -> uv uv: - https://pypi.org/project/uv/ - https://github.com/astral-sh/uv - https://docs.astral.sh/uv poetry: - https://pypi.org/project/poetry/ - https://github.com/python-poetry/poetry - https://python-poetry.org/ # Commands ``` uv sync --all-extras --dev ```
- Loading branch information
Showing
12 changed files
with
1,464 additions
and
1,465 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 |
---|---|---|
|
@@ -27,38 +27,37 @@ jobs: | |
- 'examples/**' | ||
python_files: | ||
- 'src/libtmux/**' | ||
- poetry.lock | ||
- uv.lock | ||
- pyproject.toml | ||
- name: Should publish | ||
if: steps.changes.outputs.docs == 'true' || steps.changes.outputs.root_docs == 'true' || steps.changes.outputs.python_files == 'true' | ||
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV | ||
|
||
- name: Install poetry | ||
- name: Install uv | ||
if: env.PUBLISH == 'true' | ||
run: pipx install "poetry==1.8.4" | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
if: env.PUBLISH == 'true' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
run: uv python install ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies [w/ docs] | ||
if: env.PUBLISH == 'true' | ||
run: poetry install --with=docs,lint | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Print python versions | ||
if: env.PUBLISH == 'true' | ||
run: | | ||
python -V | ||
poetry run python -V | ||
uv run python -V | ||
- name: Build documentation | ||
if: env.PUBLISH == 'true' | ||
run: | | ||
pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd | ||
pushd docs; make SPHINXBUILD='uv run sphinx-build' html; popd | ||
- name: Push documentation to S3 | ||
uses: jakejarvis/[email protected] | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
poetry 1.8.4 | ||
uv 0.5.4 | ||
python 3.13.0 3.12.7 3.11.10 3.10.15 3.9.20 3.8.20 3.7.17 |
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.