@@ -172,12 +172,6 @@ def run(self):
172172 help = "Remote fsspec URL formatted as `protocol://dir/path`, it can contain both "
173173 "a directory or a single file. Supported protocols are: `s3`, `s3a`, `abfs`, and `az`." ,
174174)
175- @click .option (
176- "--s3-url" ,
177- default = None ,
178- help = "Prefix of s3 objects (files) to download. E.g. s3://bucket1/path/. This value may "
179- "also be a single file. To be deprecated in favor of --remote-url." ,
180- )
181175@click .option (
182176 "--s3-anonymous" ,
183177 is_flag = True ,
@@ -399,7 +393,6 @@ def run(self):
399393@click .option ("-v" , "--verbose" , is_flag = True , default = False )
400394def main (
401395 remote_url ,
402- s3_url , # TODO: deprecate this in the next minor release
403396 s3_anonymous ,
404397 azure_account_name ,
405398 azure_account_key ,
@@ -491,13 +484,6 @@ def main(
491484 cache_path = Path .home () / ".cache" / "unstructured" / "ingest"
492485 if not cache_path .exists ():
493486 cache_path .mkdir (parents = True , exist_ok = True )
494- if s3_url :
495- warnings .warn (
496- "The `--s3-url` option will be deprecated in favor of `--remote-url`"
497- " in the next minor release." ,
498- DeprecationWarning ,
499- )
500- remote_url = s3_url
501487 if remote_url :
502488 hashed_dir_name = hashlib .sha256 (remote_url .encode ("utf-8" ))
503489 elif github_url :
@@ -561,7 +547,7 @@ def main(
561547 doc_connector = S3Connector ( # type: ignore
562548 standard_config = standard_config ,
563549 config = SimpleS3Config (
564- path = s3_url ,
550+ path = remote_url ,
565551 access_kwargs = {"anon" : s3_anonymous },
566552 ),
567553 )
0 commit comments