File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.8-slim
2
2
3
- # build-essential is required to build a wheel for ciso8601
4
- RUN apt update && apt install -y build-essential
5
-
6
3
RUN python -m pip install --upgrade pip
7
4
RUN python -m pip install mkdocs mkdocs-material pdocs
8
5
9
6
COPY . /opt/src
10
7
11
8
WORKDIR /opt/src
12
9
13
- RUN python -m pip install -e \
10
+ RUN python -m pip install \
14
11
stac_fastapi/api \
15
12
stac_fastapi/types \
16
13
stac_fastapi/extensions \
Original file line number Diff line number Diff line change 10
10
"attrs" ,
11
11
"pydantic[dotenv]" ,
12
12
"stac_pydantic==2.0.*" ,
13
- "ciso8601 ~=2.2 .0" ,
13
+ "python-dateutil ~=2.7 .0" ,
14
14
]
15
15
16
16
extra_reqs = {
Original file line number Diff line number Diff line change 3
3
from datetime import datetime , timezone
4
4
from typing import Optional , Tuple
5
5
6
- import ciso8601
6
+ import dateutil
7
7
from pystac .utils import datetime_to_str
8
8
9
9
10
10
def rfc3339_str_to_datetime (s : str ) -> datetime :
11
11
"""Convert a string conforming to RFC 3339 to a :class:`datetime.datetime`.
12
12
13
- Uses :meth:`ciso8601.parse_rfc3339 ` under the hood.
13
+ Uses :meth:`dateutil.parser.isoparse ` under the hood.
14
14
15
15
Args:
16
16
s (str) : The string to convert to :class:`datetime.datetime`.
@@ -21,7 +21,7 @@ def rfc3339_str_to_datetime(s: str) -> datetime:
21
21
Raises:
22
22
ValueError: If the string is not a valid RFC 3339 string.
23
23
"""
24
- return ciso8601 . parse_rfc3339 (s )
24
+ return dateutil . parser . isoparse (s )
25
25
26
26
27
27
def str_to_interval (
You can’t perform that action at this time.
0 commit comments