Skip to content

Experimental Python 3.10 support #473

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

Merged
merged 4 commits into from
Jun 29, 2021
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
14 changes: 14 additions & 0 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: ${{ startsWith(matrix.python-version, '3.10')}}
strategy:
# Allow other matrix jobs to complete if 1 fails
fail-fast: false
Expand All @@ -23,6 +24,7 @@ jobs:
- "3.7"
- "3.8"
- "3.9"
- "3.10.0-beta.3"
os:
- ubuntu-latest
- windows-latest
Expand All @@ -36,6 +38,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- uses: actions-rs/toolchain@v1
# No wheels exist for orjson on Python 3.10 on MacOS or Windows, and the Linux
# wheels are sometimes not uploaded until after the package is initially
# published. This sets up the Rust nightly toolchain so we can build the orjson
# wheel.
if: ${{ startsWith(matrix.python-version, '3.10')}}
with:
toolchain: nightly
override: true
default: true
profile: minimal

- name: Cache dependencies (Linux)
if: startsWith(runner.os, 'Linux')
uses: actions/cache@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.10 ([#473](https://github.com/stac-utils/pystac/pull/473))

### Changed

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ PySTAC is a library for working with [SpatialTemporal Asset Catalog](https://sta

## Installation

PySTAC requires Python>=3.6. Support for Python>=3.10 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 All @@ -34,6 +37,10 @@ optional `orjson` requirements:
> pip install pystac[orjson]
```

> *`orjson` wheels are only available for Linux in Python 3.10. If you are using the
> `orjson` extra with Python 3.10 you will need to have the Rust nightly toolchain
> installed as your default toolchain in order to build the package wheel.*

From source repository:

```bash
Expand Down