Skip to content

Commit

Permalink
Fix parsing dependencies for environments when warnings are emitted
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jul 3, 2023
1 parent 2edaef3 commit b5dfbf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/history/hatchling.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

***Fixed:***

- Fix parsing dependencies for environments when warnings are emitted

## [1.18.0](https://github.com/pypa/hatch/releases/tag/hatchling-v1.18.0) - 2023-06-12 ## {: #hatchling-v1.18.0 }

***Changed:***
Expand Down
2 changes: 1 addition & 1 deletion src/hatch/utils/dep.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_project_dependencies_complex(
from packaging.requirements import Requirement

with environment.root.as_cwd(), environment.build_environment(environment.metadata.build.requires):
command = ['python', '-u', '-m', 'hatchling', 'metadata', '--app', '--compact']
command = ['python', '-u', '-W', 'ignore', '-m', 'hatchling', 'metadata', '--app', '--compact']
process = environment.platform.capture_process(command)
project_metadata = json.loads(environment.app.read_builder(process))

Expand Down

0 comments on commit b5dfbf5

Please sign in to comment.