Skip to content

Commit 7a9d8e4

Browse files
authored
Merge branch 'main' into patch-1
2 parents 7db11e1 + 61f62b1 commit 7a9d8e4

File tree

325 files changed

+17414
-11427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+17414
-11427
lines changed

.flake8

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
[flake8]
2-
max-line-length = 100
3-
4-
## IGNORES
5-
6-
# E126: yapf conflicts with "continuation line over-indented for hanging indent"
7-
8-
# E127: flake8 reporting incorrect continuation line indent errors
9-
# on multi-line and multi-level indents
10-
11-
# W503: flake8 reports this as incorrect, and scripts/format_code
12-
# changes code to it, so let format_code win.
13-
14-
ignore = E126,E127,W503
2+
max-line-length = 88
3+
extend-ignore = E203, W503, E731, E722

.github/workflows/continuous-integration.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ name: CI
33
on:
44
push:
55
branches:
6-
- develop
7-
- master
6+
- main
87
pull_request:
98

109
jobs:
1110
build:
1211
name: build
13-
runs-on: ubuntu-latest
12+
runs-on: ${{ matrix.os }}
1413
strategy:
14+
# Allow other matrix jobs to complete if 1 fails
15+
fail-fast: false
1516
matrix:
1617
python-version: ["3.6", "3.7", "3.8"]
18+
os: [ubuntu-latest, windows-latest, macos-latest]
1719
steps:
1820
- uses: actions/checkout@v2
1921

@@ -26,16 +28,28 @@ jobs:
2628
uses: actions/cache@v2
2729
with:
2830
path: ~/.cache/pip
29-
key: pip-${{ hashFiles('requirements-dev.txt') }}
30-
restore-keys: pip-
31+
# Cache based on OS, Python version, and dependency hash
32+
key: pip-${{ runner.os }}-python${{ matrix.python-version }}-${{ hashFiles('requirements-dev.txt') }}
3133

3234
- name: Execute linters and test suites
3335
run: ./scripts/cibuild
34-
35-
36+
3637
- name: Upload All coverage to Codecov
3738
uses: codecov/codecov-action@v1
39+
# Only upload this once...
40+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'}}
3841
with:
3942
token: ${{ secrets.CODECOV_TOKEN }}
4043
file: ./coverage.xml
4144
fail_ci_if_error: false
45+
vanilla:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: actions/setup-python@v2
50+
with:
51+
python-version: "3.8"
52+
- name: Install without orjson
53+
run: pip install '.[validation]'
54+
- name: Run unittests
55+
run: python -m unittest discover tests

.style.yapf

Lines changed: 0 additions & 2 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
11
# Changelog
22

3-
## unreleased
3+
## [Unreleased]
44

55
### Added
66

7+
### Changed
8+
79
### Fixed
810

11+
- Reading json without orjson ([#348](https://github.com/stac-utils/pystac/pull/348))
12+
13+
### Remove
14+
15+
## [1.0.0-beta.1]
16+
17+
### Added
18+
19+
- Added type annotations across the library ([#309](https://github.com/stac-utils/pystac/pull/309))
20+
- Added assets to collections ([#309](https://github.com/stac-utils/pystac/pull/309))
21+
- `item_assets` extension ([#309](https://github.com/stac-utils/pystac/pull/309))
22+
- `datacube` extension ([#309](https://github.com/stac-utils/pystac/pull/309))
23+
- Added specific errors: `ExtensionAlreadyExistsError`, `ExtensionTypeError`, and `RequiredPropertyMissing`; moved custom exceptions to `pystac.errors` ([#309](https://github.com/stac-utils/pystac/pull/309))
24+
25+
### Fixed
26+
27+
- Validation checks in a few tests ([#346](https://github.com/stac-utils/pystac/pull/346))
28+
929
### Changed
1030

31+
- API change: The extension API changed significantly. See ([#309](https://github.com/stac-utils/pystac/pull/309)) for more details.
32+
- API change: Refactored the global STAC_IO object to an instance-specific `StacIO` implementation. STAC_IO is deprecated and will be removed next release. ([#309](https://github.com/stac-utils/pystac/pull/309))
33+
- Asset.get_absolute_href returns None if no absolute href can be inferred (previously the relative href that was passed in was returned) ([#309](https://github.com/stac-utils/pystac/pull/309))
34+
1135
### Removed
1236

37+
- Removed `properties` from Collections ([#309](https://github.com/stac-utils/pystac/pull/309))
38+
- Removed `LinkMixin`, and implemented those methods on `STACObject` directly. STACObject was the only class using LinkMixin and this should not effect users ([#309](https://github.com/stac-utils/pystac/pull/309)
39+
- Removed `single-file-stac` extension; this extension is being removed in favor of ItemCollection usage ([#309](https://github.com/stac-utils/pystac/pull/309)
40+
1341
## [v0.5.6]
1442

1543
### Added
@@ -271,18 +299,19 @@ use `Band.create`
271299

272300
Initial release.
273301

274-
[Unreleased]: <https://github.com/stac-utils/pystac/compare/v0.5.6...main>
302+
[Unreleased]: <https://github.com/stac-utils/pystac/compare/v1.0.0-beta.1..main>
303+
[v1.0.0-beta.1]: <https://github.com/stac-utils/pystac/compare/v0.5.6..v1.0.0-beta.1>
275304
[v0.5.6]: <https://github.com/stac-utils/pystac/compare/v0.5.5..v0.5.6>
276305
[v0.5.5]: <https://github.com/stac-utils/pystac/compare/v0.5.4..v0.5.5>
277306
[v0.5.4]: <https://github.com/stac-utils/pystac/compare/v0.5.3..v0.5.4>
278-
[v0.5.3]: <https://github.com/stac-utils/pystac/compare/v0.5.2...v0.5.3>
279-
[v0.5.2]: <https://github.com/stac-utils/pystac/compare/v0.5.1...v0.5.2>
280-
[v0.5.1]: <https://github.com/stac-utils/pystac/compare/v0.5.0...v0.5.1>
281-
[v0.5.0]: <https://github.com/stac-utils/pystac/compare/v0.4.0...v0.5.0>
282-
[v0.4.0]: <https://github.com/stac-utils/pystac/compare/v0.3.4...v0.4.0>
283-
[v0.3.4]: <https://github.com/stac-utils/pystac/compare/v0.3.3...v0.3.4>
284-
[v0.3.3]: <https://github.com/stac-utils/pystac/compare/v0.3.2...v0.3.3>
285-
[v0.3.2]: <https://github.com/stac-utils/pystac/compare/v0.3.1...v0.3.2>
286-
[v0.3.1]: <https://github.com/stac-utils/pystac/compare/v0.3.0...v0.3.1>
307+
[v0.5.3]: <https://github.com/stac-utils/pystac/compare/v0.5.2..v0.5.3>
308+
[v0.5.2]: <https://github.com/stac-utils/pystac/compare/v0.5.1..v0.5.2>
309+
[v0.5.1]: <https://github.com/stac-utils/pystac/compare/v0.5.0..v0.5.1>
310+
[v0.5.0]: <https://github.com/stac-utils/pystac/compare/v0.4.0..v0.5.0>
311+
[v0.4.0]: <https://github.com/stac-utils/pystac/compare/v0.3.4..v0.4.0>
312+
[v0.3.4]: <https://github.com/stac-utils/pystac/compare/v0.3.3..v0.3.4>
313+
[v0.3.3]: <https://github.com/stac-utils/pystac/compare/v0.3.2..v0.3.3>
314+
[v0.3.2]: <https://github.com/stac-utils/pystac/compare/v0.3.1..v0.3.2>
315+
[v0.3.1]: <https://github.com/stac-utils/pystac/compare/v0.3.0..v0.3.1>
287316
[v0.3.0]: <https://github.com/stac-utils/pystac/tree/v0.3.0>
288317

LICENSE

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
This software is licensed under the Apache 2 license, quoted below.
1+
Copyright 2019, 2020, 2021 the authors
22

3-
Copyright 2020 Azavea [http://www.azavea.com]
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
46

5-
Licensed under the Apache License, Version 2.0 (the "License"); you may not
6-
use this file except in compliance with the License. You may obtain a copy of
7-
the License at
8-
9-
[http://www.apache.org/licenses/LICENSE-2.0]
7+
http://www.apache.org/licenses/LICENSE-2.0
108

119
Unless required by applicable law or agreed to in writing, software
12-
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13-
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14-
License for the specific language governing permissions and limitations under
15-
the License.
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ The table below shows the corresponding versions between pystac and STAC:
4444

4545
| pystac | STAC |
4646
| ------ | ----- |
47-
| 0.5.x | 1.0.x |
47+
| 1.x | 1.0.x |
48+
| 0.5.x | 1.0.0-beta.* |
4849
| 0.4.x | 0.9.x |
4950
| 0.3.x | 0.8.x |
5051

@@ -114,6 +115,14 @@ To build and develop the documentation locally, make sure sphinx is available (w
114115
> make livehtml
115116
```
116117

118+
> Note: You will see some warnings along the lines of
119+
> ```
120+
> WARNING: duplicate object description of pystac.Collection.id,
121+
> other instance in api, use :noindex: for one of them
122+
> ```
123+
> for some of the
124+
> classes. This is expected due to [sphinx-doc/sphinx#8664](https://github.com/sphinx-doc/sphinx/issues/8664).
125+
117126
Use 'make' without arguments to see a list of available commands.
118127
119128
__Note__: `nbsphinx` requires that a local `pystac` is installed; use `pip install -e .`.

0 commit comments

Comments
 (0)