Skip to content

Commit

Permalink
Merge pull request #1450 from pypa/joerick-patch-1
Browse files Browse the repository at this point in the history
add warning about `cd /d` in test-command
  • Loading branch information
joerick committed Apr 4, 2023
2 parents a2efed2 + 93e1464 commit 177cb14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,13 @@ Platform-specific environment variables are also available:<br/>

In configuration files, you can use an array, and the items will be joined with `&&`.

!!! note

It's isn't recommended to `cd` to your project directory before running tests,
because Python might resolve `import yourpackage` relative to the working dir,
and we want to test the wheel you just built. However, if you're sure that's not
an issue for you and your workflow requires it, on Windows you should do `cd /d`,
because the CWD and project dir might be on different drives.

### `CIBW_BEFORE_TEST` {: #before-test}
> Execute a shell command before testing each wheel
Expand Down

0 comments on commit 177cb14

Please sign in to comment.