Skip to content

Commit fa8f675

Browse files
committed
Update one fixture to PEP-621 style pyproject.toml
So we have fixtures testing both the new and old style config.
1 parent b10ea8d commit fa8f675

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

spec/fixtures/poetry_basic/poetry.lock

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
[project]
2+
name = "poetry-basic"
3+
version = "0.0.0"
4+
requires-python = ">=3.13"
5+
dependencies = [
6+
"typing-extensions"
7+
]
8+
19
[tool.poetry]
210
package-mode = false
311

4-
[tool.poetry.dependencies]
5-
python = "^3.13"
6-
typing-extensions = "*"
7-
812
# This group shouldn't be installed due to us passing `--only main`.
9-
[tool.poetry.group.test.dependencies]
13+
[tool.poetry.group.dev.dependencies]
1014
pytest = "*"

spec/hatchet/poetry_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
end
6464

6565
context 'when the Poetry and Python versions have changed since the last build' do
66-
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v274'] }
66+
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v275'] }
6767
let(:app) { Hatchet::Runner.new('spec/fixtures/poetry_basic', buildpacks:) }
6868

6969
it 'clears the cache before installing' do
@@ -76,7 +76,7 @@
7676
remote: -----> Using Python 3.13 specified in .python-version
7777
remote: -----> Discarding cache since:
7878
remote: - The Python version has changed from 3.13.1 to #{LATEST_PYTHON_3_13}
79-
remote: - The Poetry version has changed from 1.8.5 to #{POETRY_VERSION}
79+
remote: - The Poetry version has changed from 2.0.1 to #{POETRY_VERSION}
8080
remote: -----> Installing Python #{LATEST_PYTHON_3_13}
8181
remote: -----> Installing Poetry #{POETRY_VERSION}
8282
remote: -----> Installing dependencies using 'poetry sync --only main'

0 commit comments

Comments
 (0)