datakit-data 0.6.3__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: datakit-data
3
- Version: 0.6.3
3
+ Version: 0.7.0
4
4
  Summary: A datakit plugin to manage data assets on AWS S3.
5
5
  Author: Larry Fenn
6
6
  Author-email: Larry Fenn <lfenn@ap.org>
7
7
  License: ISC
8
8
  Requires-Dist: boto3
9
9
  Requires-Dist: cliff
10
- Requires-Dist: datakit-core>=0.2.1
10
+ Requires-Dist: datakit-core>=0.5.0
11
11
  Requires-Python: >=3.10
12
12
  Project-URL: Homepage, https://github.com/associatedpress/datakit-data
@@ -1,6 +1,6 @@
1
1
  __author__ = """Larry Fenn"""
2
2
  __email__ = 'lfenn@ap.org'
3
- __version__ = '0.6.3'
3
+ __version__ = '0.7.0'
4
4
 
5
5
  from .commands.init import Init
6
6
  from .commands.push import Push
@@ -1,5 +1,6 @@
1
1
  import os
2
2
 
3
+ from datakit import ConfigField
3
4
  from datakit.utils import read_json
4
5
 
5
6
 
@@ -7,6 +8,19 @@ class ProjectMixin:
7
8
 
8
9
  plugin_slug = 'datakit-data'
9
10
 
11
+ config_spec = [
12
+ ConfigField('s3_bucket', required=True,
13
+ help='S3 bucket name where project data is archived'),
14
+ ConfigField('aws_user_profile', default='default',
15
+ help='AWS credentials profile to use'),
16
+ ConfigField('sync_status_location', default='.sync_status/',
17
+ help='S3 key prefix where sync status is recorded'),
18
+ ConfigField('s3_path_prefix',
19
+ help='Optional prefix prepended to the project S3 path'),
20
+ ConfigField('s3_path_suffix',
21
+ help='Optional suffix appended to the project S3 path'),
22
+ ]
23
+
10
24
  @property
11
25
  def default_configs(self):
12
26
  return {
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "datakit-data"
7
- version = "0.6.3"
7
+ version = "0.7.0"
8
8
  description = "A datakit plugin to manage data assets on AWS S3."
9
9
  authors = [
10
10
  {name = "Larry Fenn", email = "lfenn@ap.org"},
@@ -14,7 +14,7 @@ requires-python = ">=3.10"
14
14
  dependencies = [
15
15
  "boto3",
16
16
  "cliff",
17
- "datakit-core>=0.2.1",
17
+ "datakit-core>=0.5.0",
18
18
  ]
19
19
 
20
20
  [project.urls]