Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental Python 3.11 support #731

Merged
merged 6 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
test:
name: test
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
# Allow other matrix jobs to complete if 1 fails
fail-fast: false
Expand All @@ -27,6 +28,16 @@ jobs:
- ubuntu-latest
- windows-latest
- macos-latest
include:
- python-version: "3.11.0-alpha.3"
os: ubuntu-latest
experimental: true
- python-version: "3.11.0-alpha.3"
os: windows-latest
experimental: true
- python-version: "3.11.0-alpha.3"
os: macos-latest
experimental: true

steps:
- uses: actions/checkout@v2
Expand All @@ -37,9 +48,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- uses: actions-rs/toolchain@v1
# Wheels for orjson on Python 3.10 are still spotty on MacOS or Windows. This sets up the Rust
# toolchain so we can build the orjson wheel.
if: ${{ startsWith(matrix.python-version, '3.10')}}
# Wheels for orjson are not available for Python 3.11. This sets up the Rust
# toolchain so we can build orjson wheel from source.
if: ${{ startsWith(matrix.python-version, '3.11')}}
with:
toolchain: stable
override: true
Expand Down Expand Up @@ -140,6 +151,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11.0-alpha.3"

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Added

- Experimental support for Python 3.11 ([#731](https://github.com/stac-utils/pystac/pull/731))

### Removed

### Changed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Note that while we support Python 3.10.\*, wheels for the `orjson` library are n
platforms. If you install PySTAC with the `orjson` extra, you may need to have the Rust toolchain installed (e.g. via [rustup](https://rustup.rs/)) in order to
build the package from source.

Support for Python 3.11 should be considered experimental until further notice.

PySTAC has a single required dependency (`python-dateutil`).
PySTAC can be installed from pip or the source repository.

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
project_urls={
"Tracker": "https://github.com/stac-utils/pystac/issues",
Expand Down