Skip to content

Commit 164a990

Browse files
author
Jon Duckworth
authored
Merge pull request #473 from duckontheweb/add/python-3_10
Experimental Python 3.10 support
2 parents d6e22ae + 15ddeca commit 164a990

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
test:
1515
name: test
1616
runs-on: ${{ matrix.os }}
17+
continue-on-error: ${{ startsWith(matrix.python-version, '3.10')}}
1718
strategy:
1819
# Allow other matrix jobs to complete if 1 fails
1920
fail-fast: false
@@ -23,6 +24,7 @@ jobs:
2324
- "3.7"
2425
- "3.8"
2526
- "3.9"
27+
- "3.10.0-beta.3"
2628
os:
2729
- ubuntu-latest
2830
- windows-latest
@@ -36,6 +38,18 @@ jobs:
3638
with:
3739
python-version: ${{ matrix.python-version }}
3840

41+
- uses: actions-rs/toolchain@v1
42+
# No wheels exist for orjson on Python 3.10 on MacOS or Windows, and the Linux
43+
# wheels are sometimes not uploaded until after the package is initially
44+
# published. This sets up the Rust nightly toolchain so we can build the orjson
45+
# wheel.
46+
if: ${{ startsWith(matrix.python-version, '3.10')}}
47+
with:
48+
toolchain: nightly
49+
override: true
50+
default: true
51+
profile: minimal
52+
3953
- name: Cache dependencies (Linux)
4054
if: startsWith(runner.os, 'Linux')
4155
uses: actions/cache@v2

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Added
66

7+
- (Experimental) support for Python 3.10 ([#473](https://github.com/stac-utils/pystac/pull/473))
8+
79
### Changed
810

911
### Fixed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ PySTAC is a library for working with [SpatialTemporal Asset Catalog](https://sta
1010

1111
## Installation
1212

13+
PySTAC requires Python>=3.6. Support for Python>=3.10 should be considered experimental
14+
until further notice.
15+
1316
PySTAC has a single required dependency (`python-dateutil`).
1417
PySTAC can be installed from pip or the source repository.
1518

@@ -34,6 +37,10 @@ optional `orjson` requirements:
3437
> pip install pystac[orjson]
3538
```
3639

40+
> *`orjson` wheels are only available for Linux in Python 3.10. If you are using the
41+
> `orjson` extra with Python 3.10 you will need to have the Rust nightly toolchain
42+
> installed as your default toolchain in order to build the package wheel.*
43+
3744
From source repository:
3845

3946
```bash

0 commit comments

Comments
 (0)