File tree Expand file tree Collapse file tree 3 files changed +0
-45
lines changed
Expand file tree Collapse file tree 3 files changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -320,18 +320,6 @@ jobs:
320320 run : poetry init --name=pet-test --python=^3.11 -q -n
321321 shell : bash
322322
323- - name : Post
324- if : startsWith( matrix.feature, 'ci-poetry')
325- # We want to have 2 envs for this poetry project 3.12 and 3.11.
326- run : pwd
327- shell : bash
328-
329- - name : Post
330- if : startsWith( matrix.feature, 'ci-poetry')
331- # We want to have 2 envs for this poetry project 3.12 and 3.11.
332- run : ls
333- shell : bash
334-
335323 - name : Poetry virtual env setup 3.12
336324 if : startsWith( matrix.feature, 'ci-poetry') && startsWith( matrix.os, 'ubuntu')
337325 run : poetry env use 3.12
Original file line number Diff line number Diff line change @@ -34,19 +34,8 @@ pub fn list_environments(
3434
3535 let workspace_dirs = workspace_dirs
3636 . iter ( )
37- . inspect ( |workspace_dir| {
38- trace ! (
39- "Inspecting workspace directory for pyproject.toml: {:?}" ,
40- workspace_dir
41- )
42- } )
4337 . map ( |workspace_dir| ( workspace_dir, PyProjectToml :: find ( workspace_dir) ) )
4438 . filter_map ( |( workspace_dir, pyproject_toml) | {
45- trace ! (
46- "Found pyproject.toml in workspace directory: {:?} and pyproject.toml: {:?}" ,
47- workspace_dir,
48- pyproject_toml
49- ) ;
5039 pyproject_toml. map ( |pyproject_toml| ( workspace_dir, pyproject_toml) )
5140 } )
5241 . collect :: < Vec < _ > > ( ) ;
Original file line number Diff line number Diff line change @@ -26,33 +26,11 @@ impl PyProjectToml {
2626
2727fn parse ( file : & Path ) -> Option < PyProjectToml > {
2828 trace ! ( "Parsing poetry file: {:?}" , file) ;
29- match fs:: read_to_string ( file) {
30- Ok ( contents) => {
31- trace ! (
32- "Parsed contents of poetry file: {:?} is {:?}" ,
33- file,
34- & contents
35- ) ;
36- }
37- Err ( e) => {
38- error ! ( "Error reading poetry file: {:?}" , e) ;
39- }
40- } ;
4129 let contents = fs:: read_to_string ( file) . ok ( ) ?;
42- trace ! (
43- "Parsed contents of poetry file: {:?} is {:?}" ,
44- file,
45- & contents
46- ) ;
4730 parse_contents ( & contents, file)
4831}
4932
5033fn parse_contents ( contents : & str , file : & Path ) -> Option < PyProjectToml > {
51- trace ! (
52- "Parsing contents of poetry file: {:?} with contents {:?}" ,
53- file,
54- contents
55- ) ;
5634 match toml:: from_str :: < toml:: Value > ( contents) {
5735 Ok ( value) => {
5836 let mut name = None ;
You can’t perform that action at this time.
0 commit comments