diff options
| author | Trevor Gross <tgross@intrepidcs.com> | 2022-08-24 06:32:31 -0400 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2022-08-29 17:21:51 +0000 |
| commit | 7b67920fcbc5007f4177b030728a986b8fcc8d81 (patch) | |
| tree | f1145afbc045d775f7462f63aac26d3f46a036e4 /lib/sqlalchemy/testing | |
| parent | 237969087f286451aee4647a4ff5e391fc2bd8aa (diff) | |
| download | sqlalchemy-7b67920fcbc5007f4177b030728a986b8fcc8d81.tar.gz | |
Use cibuildwheel to create wheels
Using cibuildwheel the following wheels are created:
- windows x64 and x84
- macos x64 and arm
- linux x64 and arm on manylinux and mosulinux (for alpine)
- create a pure python wheel (for pypy and other archs)
Fixes: #6702
Fixes: #7607
Closes: #7992
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7992
Pull-request-sha: 61d5e24e5b76c97db73aa2507af7f5c2d3a948fa
Change-Id: If0c0b353766e0b61d421789d619eb2b940c08ad0
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/plugin/plugin_base.py | 13 | ||||
| -rw-r--r-- | lib/sqlalchemy/testing/plugin/pytestplugin.py | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py index 8e5113954..494e7d5ab 100644 --- a/lib/sqlalchemy/testing/plugin/plugin_base.py +++ b/lib/sqlalchemy/testing/plugin/plugin_base.py @@ -136,6 +136,13 @@ def setup_options(make_option): "mark expression", ) make_option( + "--nomypy", + action="callback", + zeroarg_callback=_set_tag_exclude("mypy"), + help="Don't run mypy typing tests; " + "this is now equivalent to the pytest -m 'not mypy' mark expression", + ) + make_option( "--profile-sort", type=str, default="cumulative", @@ -260,10 +267,12 @@ def restore_important_follower_config(dict_): """ -def read_config(): +def read_config(root_path): global file_config file_config = configparser.ConfigParser() - file_config.read(["setup.cfg", "test.cfg"]) + file_config.read( + [str(root_path / "setup.cfg"), str(root_path / "test.cfg")] + ) def pre_begin(opt): diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py index cea07b305..0a70f4008 100644 --- a/lib/sqlalchemy/testing/plugin/pytestplugin.py +++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py @@ -69,10 +69,10 @@ def pytest_addoption(parser): group.addoption(name, **kw) plugin_base.setup_options(make_option) - plugin_base.read_config() -def pytest_configure(config): +def pytest_configure(config: pytest.Config): + plugin_base.read_config(config.rootpath) if plugin_base.exclude_tags or plugin_base.include_tags: new_expr = " and ".join( list(plugin_base.include_tags) |
