From df86169de8b387d49256382daf4ba03101a8fcd1 Mon Sep 17 00:00:00 2001 From: Andrew Vaccaro Date: Thu, 8 Dec 2022 12:23:39 -0500 Subject: [PATCH 1/2] add a couple fields for schedule backfill --- .gitignore | 1 + calitp/storage.py | 2 ++ pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 54ee26d..060c130 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_Store # Docs build folder docs-build diff --git a/calitp/storage.py b/calitp/storage.py index e790b06..7bac47a 100644 --- a/calitp/storage.py +++ b/calitp/storage.py @@ -546,6 +546,7 @@ class GTFSDownloadConfig(BaseModel, extra=Extra.forbid): schedule_url_for_validation: Optional[HttpUrl] auth_query_params: Dict[str, str] = {} auth_headers: Dict[str, str] = {} + computed: bool = False @validator("extracted_at", allow_reuse=True) def coerce_extracted_at(cls, v): @@ -648,6 +649,7 @@ class GTFSScheduleFeedExtract(GTFSFeedExtract): table: ClassVar[str] = GTFSFeedType.schedule feed_type: ClassVar[str] = GTFSFeedType.schedule partition_names: ClassVar[List[str]] = ["dt", "ts", "base64_url"] + reconstructed: bool = False @validator("config", allow_reuse=True) def is_schedule_type(cls, v: GTFSDownloadConfig): diff --git a/pyproject.toml b/pyproject.toml index 08252c6..67e8943 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "calitp" -version = "2022.12.1" +version = "2022.12.8" description = "Shared code for the Cal-ITP data codebases" authors = ["Andrew Vaccaro "] license = "GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007" From 0eeeb9f51f03f891feda51a8a19396b494e981bb Mon Sep 17 00:00:00 2001 From: Andrew Vaccaro Date: Tue, 3 Jan 2023 10:25:33 -0500 Subject: [PATCH 2/2] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 67e8943..59ce7c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "calitp" -version = "2022.12.8" +version = "2023.1.3" description = "Shared code for the Cal-ITP data codebases" authors = ["Andrew Vaccaro "] license = "GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007"