Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
jobs:
build:
runs-on: ubuntu-latest
env:
UV_LOCKED: 1
strategy:
fail-fast: false
matrix:
Expand All @@ -34,7 +36,7 @@
enable-cache: true
cache-suffix: "python${{ matrix.python-version }}"
- name: Install the project
run: uv sync --all-extras --dev
run: uv sync --locked --all-extras --dev

Check warning on line 39 in .github/workflows/python-package.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=fgmacedo_python-statemachine&issues=AaE28ddXp4i_BGobMxff&open=AaE28ddXp4i_BGobMxff&pullRequest=681
#----------------------------------------------
# run ruff
#----------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
release-build:
name: Build release artifacts
runs-on: ubuntu-latest
env:
UV_LOCKED: 1

permissions:
id-token: write
Expand All @@ -27,7 +29,7 @@
enable-cache: true

- name: Install the project
run: uv sync --all-extras --dev
run: uv sync --locked --all-extras --dev

Check warning on line 32 in .github/workflows/release.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=fgmacedo_python-statemachine&issues=AaE28dZJp4i_BGobMxfe&open=AaE28dZJp4i_BGobMxfe&pullRequest=681

- name: Test
run: |
Expand Down
5 changes: 4 additions & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ Ready to contribute? Here's how to set up `python-statemachine` for local develo

1. Install dependencies.
1. [graphviz](https://graphviz.org/download/#linux)
1. [uv](https://docs.astral.sh/uv/getting-started/installation/)
1. [uv](https://docs.astral.sh/uv/getting-started/installation/) 0.9.17 or newer
(older releases ignore the `[tool.uv]` settings in `pyproject.toml` and rewrite `uv.lock`).
The project resolves with a 7-day `exclude-newer` cooldown; to take a release younger
than that, use uv's `exclude-newer-package` setting.

1. Fork the `python-statemachine` repository on GitHub.

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ dev = [
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv]
exclude-newer = "7 days"

[tool.hatch.build.targets.wheel]
packages = ["statemachine/"]

Expand Down
Loading