Skip to content

Commit

Permalink
Update one fixture to PEP-621 style pyproject.toml
Browse files Browse the repository at this point in the history
So we have fixtures testing both the new and old style config.
  • Loading branch information
edmorley committed Feb 25, 2025
1 parent b10ea8d commit fa8f675
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
15 changes: 11 additions & 4 deletions spec/fixtures/poetry_basic/poetry.lock

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

14 changes: 9 additions & 5 deletions spec/fixtures/poetry_basic/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[project]
name = "poetry-basic"
version = "0.0.0"
requires-python = ">=3.13"
dependencies = [
"typing-extensions"
]

[tool.poetry]
package-mode = false

[tool.poetry.dependencies]
python = "^3.13"
typing-extensions = "*"

# This group shouldn't be installed due to us passing `--only main`.
[tool.poetry.group.test.dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "*"
4 changes: 2 additions & 2 deletions spec/hatchet/poetry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end

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

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

0 comments on commit fa8f675

Please sign in to comment.