Skip to content

Commit

Permalink
Merge pull request #473 from duckontheweb/add/python-3_10
Browse files Browse the repository at this point in the history
Experimental Python 3.10 support
  • Loading branch information
Jon Duckworth authored Jun 29, 2021
2 parents d6e22ae + 15ddeca commit 164a990
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
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

0 comments on commit 164a990

Please sign in to comment.