Skip to content

Commit 059bb0c

Browse files
authored
Merge pull request #253 from pytest-dev/bump-poetry
Bump poetry to v2.2.0
2 parents 329f90c + b41b4a3 commit 059bb0c

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
with:
1515
cache: "pip"
1616
- name: Install pypa/build
17-
run: >-
18-
python3 -m pip install --user build twine
17+
# We need a recent version of `packaging`, otherwise we encounter this bug:
18+
# https://github.com/pypa/twine/issues/1216
19+
run: python3 -m pip install --user build twine "packaging>=25.0"
1920
- name: Build a binary wheel and a source tarball
2021
run: python3 -m build
2122
- name: Check the distribution files with `twine`
@@ -68,7 +69,7 @@ jobs:
6869
allow-prereleases: true
6970
- name: Install poetry
7071
run: |
71-
python -m pip install poetry==2.1.3
72+
python -m pip install poetry==2.2.0
7273
- name: Configure poetry
7374
run: |
7475
poetry config virtualenvs.in-project true
@@ -81,7 +82,7 @@ jobs:
8182
- name: Install dev dependencies
8283
if: steps.poetry-dependencies-cache.outputs.cache-hit != 'true'
8384
run: |
84-
poetry install
85+
poetry install --with=dev
8586
- name: Download artifact
8687
uses: actions/download-artifact@v4
8788
with:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: pyupgrade
2727
args: [--py39-plus]
2828
- repo: https://github.com/python-poetry/poetry
29-
rev: "84eeadc21f92a04d46ea769e3e39d7c902e44136" # frozen: 2.1.3
29+
rev: "4dba0e1b041366b3f05bec89dca82e902e6386e8" # frozen: 2.2.0
3030
hooks:
3131
- id: poetry-check
3232
args: ["--lock"]

poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "Factory Boy support for pytest."
55
authors = [ { name = "Oleg Pidsadnyi", email= "oleg.pidsadnyi@gmail.com" } ]
66
maintainers = [ { name = "Alessio Bogon", email = "778703+youtux@users.noreply.github.com" } ]
77
license = "MIT"
8+
license-files = [ "LICENSE.md" ]
89
readme = "README.rst"
910

1011
classifiers = [
@@ -44,6 +45,9 @@ repository = "https://github.com/pytest-dev/pytest-factoryboy"
4445
[tool.poetry]
4546
packages = [{include = "pytest_factoryboy", from = "src"}]
4647

48+
[tool.poetry.group.dev]
49+
optional = true
50+
4751
[tool.poetry.group.dev.dependencies]
4852
mypy = ">=1.4.1"
4953
tox = ">=4.0.8"

0 commit comments

Comments
 (0)