-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve RFC 3339 datetime handling (#368)
* improve RFC 3339 datetime handling * install build-essential * sudo, rearrange files * gapt -> apt * install build-essential in docker img * move ciso8601 dep * fix typing for parse_interval function * fix import of parse_interval * more changes for datetimes * get the types right * remove unnecessary parens * remove classmethod * add some interval tests * replace rfc3339_str with pystac.utils.datetime_to_str * fix search datetime parameter parsing to support empty string as open end of interval * rename methods * fix accidental method name repacement for parse_rfc3339 * update tests for double open ended temporal interval * fix handling of empty string open-ended interval * fix test that was successful with double-open-ended datetime interval to now fail * replace ciso8601 with python-dateutil * Revert "replace ciso8601 with python-dateutil" This reverts commit 9f400f4. * add pystac dependency to types * add double-open-ended tests to pgstac tests * skip mixed open-ended in pgstac * skip datetime interval empty string in pgstac * maybe just await the test * Bump black version to avoid psf/black#2964 * lint Co-authored-by: Nathan Zimmerman <[email protected]>
- Loading branch information
1 parent
c8c8819
commit 99ce774
Showing
16 changed files
with
267 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ | |
"License :: OSI Approved :: MIT License", | ||
], | ||
keywords="STAC FastAPI COG", | ||
author=u"Arturo Engineering", | ||
author="Arturo Engineering", | ||
author_email="[email protected]", | ||
url="https://github.com/stac-utils/stac-fastapi", | ||
license="MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
"License :: OSI Approved :: MIT License", | ||
], | ||
keywords="STAC FastAPI COG", | ||
author=u"Arturo Engineering", | ||
author="Arturo Engineering", | ||
author_email="[email protected]", | ||
url="https://github.com/stac-utils/stac-fastapi", | ||
license="MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
"License :: OSI Approved :: MIT License", | ||
], | ||
keywords="STAC FastAPI COG", | ||
author=u"Arturo Engineering", | ||
author="Arturo Engineering", | ||
author_email="[email protected]", | ||
url="https://github.com/stac-utils/stac-fastapi", | ||
license="MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.