Skip to content

Commit

Permalink
chore(deployer): migrate to dependency groups (#12516)
Browse files Browse the repository at this point in the history
* chore(deployer): replace the deprecated "poetry.dev-dependencies" section

* chore(deployer): make dev dependencies optional

* run poetry lock

* docs(deployer): add option for installing poetry dependencies

* update content-hash
  • Loading branch information
yin1999 authored Jan 30, 2025
1 parent 8abdb13 commit 57d1385
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Install deployer
run: |
cd deployer
poetry install
poetry install --with dev
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'

- name: Lint Python code
Expand Down
2 changes: 1 addition & 1 deletion deployer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ You need to have

```sh
cd deployer
poetry install
poetry install --with dev
```

That should have installed the CLI:
Expand Down
51 changes: 48 additions & 3 deletions deployer/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion deployer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ selectolax = "^0.3.27"
PyGithub = "^1.59"
unidiff = "^0.7.5"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
black = "^24.10"
flake8 = "^7.1.1"
pytest = "^8.3.4"
Expand Down

0 comments on commit 57d1385

Please sign in to comment.