Joe Rickerby
7c99262c00
Adds disable_host_mount suboption to container-engine
2023-11-21 22:25:20 +00:00
Joe Rickerby
29cb13893f
Merge remote-tracking branch 'origin/main' into env-order
2023-09-19 11:59:12 +01:00
Joe Rickerby
62a06d28b5
Change order of environment-pass, so environment can reference it
2023-09-18 17:08:30 +01:00
Joe Rickerby
5311f88684
Fix for missing table in option parsing
2023-08-30 09:28:47 +01:00
Joe Rickerby
297e4a6099
Add args param to build-frontend option
2023-08-26 19:37:29 +01:00
Henry Schreiner and Joe Rickerby
ce71f445de
fix: --only shouldn't require prerelease pythons setting ( #1564 )
...
* fix: --only shouldn't require prerelease pythons setting
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Add test
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
2023-08-14 12:15:53 -04:00
mayeut
4b19db8454
chore: drop python 3.7 for cibuildwheel driver
...
This drops python 3.7 for cibuildwheel.
Building python 3.6 / 3.7 packages is still supported.
2023-07-01 14:33:24 +02:00
aeb0a3ee83
[pre-commit.ci] pre-commit autoupdate ( #1536 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.272...v0.0.275 )
- [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.4.1 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore: update for better mypy lambdas
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-06-27 17:30:17 -04:00
Joe Rickerby
290a55097d
Add string and TOML-dict configuration of this param
2023-05-12 14:18:08 +01:00
Joe Rickerby
5cb0964111
Implement create_args in the oci container class
2023-05-08 21:59:11 +01:00
Henry Schreiner
aff6dd5adc
refactor: tomllib in _compat
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 23:29:54 -04:00
Henry Schreiner
31bd9c9174
refactor: restore typing for non-backports
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 23:29:01 -04:00
Henry Schreiner
d996af554a
fix: restore Python 3.7 support
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 22:02:47 -04:00
Henry Schreiner
8c5f89c035
chore: update typing to be generic on function args
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 13:06:17 -04:00
Henry Schreiner
6d038dfbdf
chore: update typing to collections.abc
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-04-18 12:38:21 -04:00
Hood Chatham
8a307031a9
Set the defualt build_frontend to be "default" (which is still "pip")
...
Instead of using pip as the default, set it to default. This way
each platform can choose independently what to do as the default
behavior.
This is intended as part of adding Pyodide support. Pyodide cannot
use pip as the build frontend. It always uses a modified pypa/build.
So if the build_frontend is explicitly set to pip we want to raise
an error. But if it's unset, then we should be able to tell and just
do what we want.
2023-04-07 15:56:17 -07:00
2c3e01287a
[pre-commit.ci] pre-commit autoupdate ( #1433 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.255](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.255 )
- [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1 )
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4 )
* clean ruff warnings
* revert C4 -> C40 rename
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com >
2023-03-14 15:22:17 -04:00
Henry Schreiner
5ab3b55378
style: run pre-commit
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-02-07 10:25:34 -05:00
Henry Schreiner
c8b037ba3e
chore: use Ruff ( #1405 )
...
chore: use ruff
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2023-01-30 15:53:44 -05:00
Joe Rickerby
9850864851
Rename 'environ' to 'env'
2022-12-05 19:18:54 +00:00
Joe Rickerby and Henry Schreiner
56359fba70
Apply suggestions from code review
...
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com >
2022-12-05 19:04:35 +00:00
Joe Rickerby
b00547cd97
Workaround the Github forgetting styles bug
2022-12-04 13:51:56 +00:00
Joe Rickerby
76e56f08f2
Use 'gray' instead of 'dim' ANSI color (github doesn't seem to support 'dim')
2022-11-26 20:12:22 +00:00
Joe Rickerby
8d05681491
Improve the formatting of the preamble
2022-11-26 17:16:54 +00:00
Henry Schreiner
7c4bbf8cb3
chore: minor cleanups from reverb ( #1293 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2022-10-07 08:47:31 -04:00
Joe Rickerby
f7669045f5
Merge pull request #1258 from henryiii/henryiii/chore/dev
...
chore: nicer tracebacks and dev improvements
2022-09-25 09:34:05 +01:00
Joe Rickerby
13fc768552
Revert to the previous quoting behaviour for environment option
2022-09-17 11:15:00 +01:00
Henry Schreiner
534cada6a5
chore: cleaner exception tracebacks
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2022-09-16 11:05:35 -04:00
Henry Schreiner and Joe Rickerby
eb39da0b10
feat: add --only ( #1098 )
...
* fix(style): use sub recommended replacement method
See https://docs.python.org/3/library/re.html#re.escape
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* feat: add --build
* refactor: switch to using --only
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: cover --only
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* docs: undo change to --plat for auditwheel
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* (unrelated) speed up running the unit tests
based on a profile run, this speeds up the unit tests by 3x
* Remove `intercepted_build_args` reliance on `platform` fixture
* Add test that checks if 'only' overrides env var options
* Ensure that the --only command line option overrides env vars
* Fix UnboundLocalError
* Test cleanups
* style: typing.cast instead of plain cast
* feat: add only: to the GHA
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
2022-09-09 08:34:47 -04:00
Henry Schreiner
3597095948
feat: support config-settings ( #1244 )
...
* feat: support config-settings
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
feat: support config-settings
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* refactor: use shlex.quote
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2022-09-06 00:56:20 -04:00
Henry Schreiner and Matthieu Darbois
c234ff5f36
fix: add suggestions to the TOML error message ( #1205 )
...
* fix: add suggestions to the TOML error message
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Update cibuildwheel/options.py
Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com >
Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com >
2022-08-02 14:43:07 -04:00
mayeut
6d27f05c7c
chore: use from __future__ import annotations
2022-07-19 07:47:45 +02:00
Joe Rickerby
7c56b98331
Merge remote-tracking branch 'origin/main' into new_podman_support
2022-06-29 20:20:36 +01:00
Joe Rickerby
d66c1e92bf
Lots more naming changes to reflect that containers are not necessarily 'docker'
2022-06-27 18:30:49 +01:00
Joe Rickerby
1d2e5d5d8f
Rename DockerContainer -> OCIContainer, and a few other things
...
OCIContainer.container_engine -> OCIContainer.engine
OCIContainer.docker_image -> OCIContainer.image
Variables that refer to 'docker_images' have been renamed to
'container_images'
2022-06-27 17:46:22 +01:00
Joe Rickerby
2457006796
Make container-engine a global option, since that's how its being used
2022-06-27 17:32:40 +01:00
Joe Rickerby
3bd759f50c
Add some type safety to the container_engine option
2022-06-27 17:26:31 +01:00
joncrall
df317a9000
Flattened podman support commits
2022-06-23 11:00:10 -04:00
Joe Rickerby
cdccbd1c46
Merge remote-tracking branch 'origin/main' into henryiii/refactor/namespace
2022-06-17 18:08:17 +01:00
Henry Schreiner
98fedb7e51
refactor: use dataclasses vs. NamedTuples
2022-04-28 11:41:47 -04:00
Henry Schreiner
35054666bb
refactor: review comments
2022-04-27 17:18:01 -04:00
Henry Schreiner
b1e8549bb1
fix: minor cleanup
2022-04-27 14:55:30 -04:00
Henry Schreiner
958a7c32c1
refactor: use single entry for SDist builds
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2022-04-27 09:37:17 -04:00
Shantanu and hauntsaninja <>
6d4431306e
chore: use tomllib on Python 3.11 ( #1047 )
...
* Use tomllib on Python 3.11
* delint
Co-authored-by: hauntsaninja <>
2022-04-16 00:00:57 -04:00
Henry Schreiner
7ef593c2ad
fix: minor touchups based on stricter mypy settings ( #1060 )
...
* fix: minor touchups based on stricter mypy settings
* refactor: address review comments
2022-04-01 22:00:07 -04:00
Henry Schreiner and Joe Rickerby
d6dc3b7cd9
chore: add PyLint and fix most issues ( #999 )
...
* chore: add PyLint and fix most issues
* fix: minor fixes after first push
* chore: remove reference to old toml lib
* chore: minor options cleanup
* ci: only fail with many pylint issues, annotate in GHA
* refactor: address review
* ci: force nox to report in CI
* refactor: use map instead of if chain
* refactor: simpler shell_with_arch
* refactor: even simpler shell_with_arch
* Restore if...elif...else blocks where guard-style is not intended
Co-authored-by: Joe Rickerby <joerick@mac.com >
2022-02-27 14:16:37 -05:00
Joe Rickerby
59b157f333
Merge pull request #926 from mattip/manylinux2014
...
always default to manylinux2014
2021-11-24 08:55:12 +00:00
Henry Schreiner and Joe Rickerby
f45de3f24e
feat: support passenv ( #914 )
...
* feat: support passenv
* refactor: environment-pass and spaces
* docs: document environment pass
* Add unit test for passing through awkward env variable values
* Remove unused as_shell_commands method from environment
* Fix passthrough edge case by avoiding bash for passthrough assignments
* Fix mypy error in test
* Fix unit test
* Apply suggestions from code review
Co-authored-by: Joe Rickerby <joerick@mac.com >
2021-11-21 15:19:45 -05:00
mattip
afd8413298
always default to manylinux2014
2021-11-21 14:37:12 +01:00
Henry Schreiner and Joe Rickerby
12c64365e2
fix: add missing config-file option to the action ( #883 )
...
* fix: add missing config-file option to the action
* feat: empty config-file triggers default behavior
* Apply suggestions from code review
Co-authored-by: Joe Rickerby <joerick@mac.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
2021-10-22 22:34:38 -04:00