docs: fix docker run example (#694)
This commit is contained in:
@@ -18,18 +18,15 @@ env = os.environ.copy()
|
|||||||
# regenerate the constraints files
|
# regenerate the constraints files
|
||||||
env["CUSTOM_COMPILE_COMMAND"] = "bin/update_dependencies.py"
|
env["CUSTOM_COMPILE_COMMAND"] = "bin/update_dependencies.py"
|
||||||
|
|
||||||
if python_version == "36":
|
os.chdir(DIR.parent)
|
||||||
# Bug with click and Python 3.6
|
|
||||||
env["LC_ALL"] = "C.UTF-8"
|
|
||||||
env["LANG"] = "C.UTF-8"
|
|
||||||
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"pip-compile",
|
"pip-compile",
|
||||||
"--allow-unsafe",
|
"--allow-unsafe",
|
||||||
"--upgrade",
|
"--upgrade",
|
||||||
f"{RESOURCES}/constraints.in",
|
"cibuildwheel/resources/constraints.in",
|
||||||
f"--output-file={RESOURCES}/constraints-python{python_version}.txt",
|
f"--output-file=cibuildwheel/resources/constraints-python{python_version}.txt",
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
env=env,
|
env=env,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ nox -s build # Make SDist and wheel
|
|||||||
More advanced users can run the update scripts. `update_pins` should work directly, but `update_constraints` needs all versions of Python installed. If you don't want to do that locally, a fast way to run it to use docker to run nox:
|
More advanced users can run the update scripts. `update_pins` should work directly, but `update_constraints` needs all versions of Python installed. If you don't want to do that locally, a fast way to run it to use docker to run nox:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
docker run --rm -it -v $PWD:/src quay.io/pypa/manylinux2010_x86_64:latest pipx run nox -f src/noxfile.py -s update_constraints
|
docker run --rm -itv $PWD:/src -w /src quay.io/pypa/manylinux_2_24_x86_64:latest pipx run nox -s update_constraints
|
||||||
```
|
```
|
||||||
|
|
||||||
### Local testing
|
### Local testing
|
||||||
|
|||||||
Reference in New Issue
Block a user