dcicutils 8.7.0__py3-none-any.whl → 8.7.0.1b1__py3-none-any.whl

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.
dcicutils/portal_utils.py CHANGED
@@ -258,6 +258,9 @@ class Portal:
258
258
  return to_camel_case(name if not name.endswith(".json") else name[:-5]) if isinstance(name, str) else ""
259
259
 
260
260
  def is_file_schema(self, schema_name: str) -> bool:
261
+ """
262
+ Returns True iff the given schema name isa File type, i.e. has an ancestor which is of type File.
263
+ """
261
264
  if super_type_map := self.get_schemas_super_type_map():
262
265
  if file_super_type := super_type_map.get(Portal.FILE_SCHEMA_NAME):
263
266
  return self.schema_name(schema_name) in file_super_type
@@ -266,8 +269,9 @@ class Portal:
266
269
  def get_schemas_super_type_map(self) -> dict:
267
270
  """
268
271
  Returns the "super type map" for all of the known schemas (via /profiles).
269
- This is a dictionary of all types which have (one or more) sub-types whose value is
270
- an array of all of those sub-types (direct and all descendents), in breadth first order.
272
+ This is a dictionary with property names which are all known schema type names which
273
+ have (one or more) sub-types, and the value each such property name is an array of
274
+ all of those sub-types (direct and all descendents), in breadth first order.
271
275
  """
272
276
  def list_breadth_first(super_type_map: dict, super_type_name: str) -> dict:
273
277
  result = []
dcicutils/s3_utils.py CHANGED
@@ -49,6 +49,7 @@ class HealthPageKey: # This is moving here from cgap-portal.
49
49
  FILE_UPLOAD_BUCKET = 'file_upload_bucket' # = s3Utils.RAW_BUCKET_HEALTH_PAGE_KEY
50
50
  FOURSIGHT = 'foursight'
51
51
  FOURSIGHT_BUCKET_PREFIX = 'foursight_bucket_prefix'
52
+ GIT = 'git'
52
53
  HIGLASS = 'higlass'
53
54
  IDENTITY = 'identity'
54
55
  INDEXER = 'indexer'
@@ -243,6 +243,9 @@ def get_untracked_files() -> list:
243
243
  # Ignore any __pycache__ directories as they are already ignored by poetry publish.
244
244
  if os.path.isdir(untracked_file) and os.path.basename(untracked_file.rstrip("/")) == "__pycache__":
245
245
  continue
246
+ # Ignore gitinfo.json which may exist if the repo wants to create this via GitHub Actions.
247
+ if os.path.basename(untracked_file) == "gitinfo.json":
248
+ continue
246
249
  untracked_files.append(untracked_file)
247
250
  return untracked_files
248
251
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcicutils
3
- Version: 8.7.0
3
+ Version: 8.7.0.1b1
4
4
  Summary: Utility package for interacting with the 4DN Data Portal and other 4DN resources
5
5
  Home-page: https://github.com/4dn-dcic/utils
6
6
  License: MIT
@@ -43,15 +43,15 @@ dcicutils/log_utils.py,sha256=7pWMc6vyrorUZQf-V-M3YC6zrPgNhuV_fzm9xqTPph0,10883
43
43
  dcicutils/misc_utils.py,sha256=bMRWWxdbhuF3PKdCZEH-H4U1ecgT3Nag3EL92D9XGoY,100973
44
44
  dcicutils/obfuscation_utils.py,sha256=fo2jOmDRC6xWpYX49u80bVNisqRRoPskFNX3ymFAmjw,5963
45
45
  dcicutils/opensearch_utils.py,sha256=V2exmFYW8Xl2_pGFixF4I2Cc549Opwe4PhFi5twC0M8,1017
46
- dcicutils/portal_utils.py,sha256=lqsfcGPWd4PZpJyv_2wvXOUPaBUn0Tjh1yIrKyw8KwU,21014
46
+ dcicutils/portal_utils.py,sha256=sNr2nlSFZ6TSXC8vOFr82fjUbvIFG9s4-m-VzxIn8pA,21224
47
47
  dcicutils/project_utils.py,sha256=qPdCaFmWUVBJw4rw342iUytwdQC0P-XKpK4mhyIulMM,31250
48
48
  dcicutils/qa_checkers.py,sha256=cdXjeL0jCDFDLT8VR8Px78aS10hwNISOO5G_Zv2TZ6M,20534
49
49
  dcicutils/qa_utils.py,sha256=TT0SiJWiuxYvbsIyhK9VO4uV_suxhB6CpuC4qPacCzQ,160208
50
50
  dcicutils/redis_tools.py,sha256=qkcSNMtvqkpvts-Cm9gWhneK523Q_oHwhNUud1be1qk,7055
51
51
  dcicutils/redis_utils.py,sha256=VJ-7g8pOZqR1ZCtdcjKz3-6as2DMUcs1b1zG6wSprH4,6462
52
- dcicutils/s3_utils.py,sha256=eN8lfDI8Yxqga7iuy_eOlmUJUEjewHho0szLmj2YmYI,28852
52
+ dcicutils/s3_utils.py,sha256=LauLFQGvZLfpBJ81tYMikjLd3SJRz2R_FrL1n4xSlyI,28868
53
53
  dcicutils/schema_utils.py,sha256=3Gd9QboOjQ3FHFawerylvYYU8Lor1Ma2pFv4JmezCdg,5501
54
- dcicutils/scripts/publish_to_pypi.py,sha256=qmWyjrg5bNQNfpNKFTZdyMXpRmrECnRV9VmNQddUPQA,13576
54
+ dcicutils/scripts/publish_to_pypi.py,sha256=QriqcnqeLd9zQZwE5pwEMxagR5HGr7M1I0OjkI6Cp6o,13795
55
55
  dcicutils/scripts/run_license_checker.py,sha256=z2keYnRDZsHQbTeo1XORAXSXNJK5axVzL5LjiNqZ7jE,4184
56
56
  dcicutils/secrets_utils.py,sha256=8dppXAsiHhJzI6NmOcvJV5ldvKkQZzh3Fl-cb8Wm7MI,19745
57
57
  dcicutils/sheet_utils.py,sha256=VlmzteONW5VF_Q4vo0yA5vesz1ViUah1MZ_yA1rwZ0M,33629
@@ -64,8 +64,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
64
64
  dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
65
65
  dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
66
66
  dcicutils/zip_utils.py,sha256=rnjNv_k6L9jT2SjDSgVXp4BEJYLtz9XN6Cl2Fy-tqnM,2027
67
- dcicutils-8.7.0.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
68
- dcicutils-8.7.0.dist-info/METADATA,sha256=Q5Xwur92mUFkOX5eXwqWtNTNNMdMEZPXrD9Te6Who3Y,3310
69
- dcicutils-8.7.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
70
- dcicutils-8.7.0.dist-info/entry_points.txt,sha256=8wbw5csMIgBXhkwfgsgJeuFcoUc0WsucUxmOyml2aoA,209
71
- dcicutils-8.7.0.dist-info/RECORD,,
67
+ dcicutils-8.7.0.1b1.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
68
+ dcicutils-8.7.0.1b1.dist-info/METADATA,sha256=ySO6_vG5SPHNlCvxkNCBjeDuKcmhcThC1HoCkTZeHk0,3314
69
+ dcicutils-8.7.0.1b1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
70
+ dcicutils-8.7.0.1b1.dist-info/entry_points.txt,sha256=8wbw5csMIgBXhkwfgsgJeuFcoUc0WsucUxmOyml2aoA,209
71
+ dcicutils-8.7.0.1b1.dist-info/RECORD,,