some changes after seeing how this renders
This commit is contained in:
+7
-8
@@ -1172,14 +1172,6 @@ The command is run in a shell, so you can write things like `cmd1 && cmd2`.
|
|||||||
Platform-specific environment variables are also available:<br/>
|
Platform-specific environment variables are also available:<br/>
|
||||||
`CIBW_TEST_COMMAND_MACOS` | `CIBW_TEST_COMMAND_WINDOWS` | `CIBW_TEST_COMMAND_LINUX`
|
`CIBW_TEST_COMMAND_MACOS` | `CIBW_TEST_COMMAND_WINDOWS` | `CIBW_TEST_COMMAND_LINUX`
|
||||||
|
|
||||||
!!! tip
|
|
||||||
|
|
||||||
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,
|
|
||||||
but 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.
|
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
|
|
||||||
!!! tab examples "Environment variables"
|
!!! tab examples "Environment variables"
|
||||||
@@ -1222,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 `&&`.
|
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}
|
### `CIBW_BEFORE_TEST` {: #before-test}
|
||||||
> Execute a shell command before testing each wheel
|
> Execute a shell command before testing each wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user