Skip to content

Commit

Permalink
Skip componentize-py tests on older Python (#256)
Browse files Browse the repository at this point in the history
* Skip componentize-py tests on older Python

Try to fix CI

* Try updating minimum Python version
  • Loading branch information
alexcrichton authored Oct 30, 2024
1 parent 157e307 commit 5defad4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.x', '3.8']
python-version: ['3.x', '3.9']
exclude:
# Looks like pypy on Windows is 32-bit, so don't test it since we
# only work with 64-bit builds
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To install `wasmtime-py`, run this command in your terminal:
$ pip install wasmtime
```

The package currently supports 64-bit builds of Python 3.8+ on x86\_64 Windows,
The package currently supports 64-bit builds of Python 3.9+ on x86\_64 Windows,
macOS, and Linux, as well as on arm64 macOS and Linux.

## Versioning
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
install_requires=['importlib_resources>=5.10'],
include_package_data=True,
package_data={"wasmtime": ["py.typed"]},
python_requires='>=3.8',
python_requires='>=3.9',
test_suite="tests",
extras_require={
'testing': [
Expand All @@ -48,10 +48,11 @@
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Compilers',
Expand Down
6 changes: 6 additions & 0 deletions tests/bindgen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import sys
import pytest

# componentize-py requires Python 3.10
if sys.version_info < (3, 10):
pytest.skip("skipping componentize-py tests", allow_module_level=True)

0 comments on commit 5defad4

Please sign in to comment.