commonmeta-py 0.85__py3-none-any.whl → 0.87__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.
commonmeta/__init__.py CHANGED
@@ -10,7 +10,7 @@ commonmeta-py is a Python library to convert scholarly metadata
10
10
  """
11
11
 
12
12
  __title__ = "commonmeta-py"
13
- __version__ = "0.85"
13
+ __version__ = "0.87"
14
14
  __author__ = "Martin Fenner"
15
15
  __license__ = "MIT"
16
16
 
@@ -40,9 +40,15 @@ from .writers import (
40
40
  )
41
41
  from .utils import (
42
42
  dict_to_spdx,
43
+ extract_url,
44
+ extract_urls,
45
+ extract_curie,
43
46
  from_csl,
47
+ from_json_feed,
44
48
  from_schema_org,
45
49
  get_language,
50
+ issn_as_url,
51
+ name_to_fos,
46
52
  normalize_cc_url,
47
53
  normalize_id,
48
54
  normalize_ids,
@@ -50,16 +56,11 @@ from .utils import (
50
56
  normalize_url,
51
57
  normalize_ror,
52
58
  pages_as_string,
59
+ replace_curie,
53
60
  to_csl,
54
61
  validate_orcid,
62
+ validate_ror,
55
63
  validate_url,
56
- get_language,
57
- name_to_fos,
58
- from_json_feed,
59
- extract_url,
60
- extract_urls,
61
- extract_curie,
62
- replace_curie,
63
64
  )
64
65
  from .author_utils import (
65
66
  authors_as_string,
@@ -286,7 +286,7 @@ def get_funding_references(meta: Optional[dict]) -> Optional[list]:
286
286
  if i.get("type", None) == "HasAward"
287
287
  ]
288
288
  )
289
- funding = py_.get(meta, "blog.funding", None)
289
+ funding = py_.get(meta, "blog.funding")
290
290
  if funding is not None:
291
291
  awards += [
292
292
  {
@@ -296,6 +296,9 @@ def get_funding_references(meta: Optional[dict]) -> Optional[list]:
296
296
  "awardNumber": funding.get("award_number", None),
297
297
  }
298
298
  ]
299
+ funding_references = py_.get(meta, "funding_references")
300
+ if funding_references is not None:
301
+ awards += [compact(i) for i in funding_references]
299
302
  return awards
300
303
 
301
304
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commonmeta-py
3
- Version: 0.85
3
+ Version: 0.87
4
4
  Summary: Library for conversions to/from the Commonmeta scholarly metadata format
5
5
  Project-URL: Homepage, https://python.commonmeta.org
6
6
  Project-URL: Repository, https://github.com/front-matter/commonmeta-py
@@ -1,4 +1,4 @@
1
- commonmeta/__init__.py,sha256=_mF-n3S2EhVteX6G0ocqq9fbR_mi6pOpZ9FtmIa4NA8,1894
1
+ commonmeta/__init__.py,sha256=ToXvSGATGxDBN50c9wETUrtKhpMS0J7cUJ7d5_-sA4U,1911
2
2
  commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
3
3
  commonmeta/author_utils.py,sha256=1oQQfxaq7aMQI3rLt8XMufksuBeC8Zht96aJ8vz09Ug,8459
4
4
  commonmeta/base_utils.py,sha256=AsUElA5kT2fw_Osy7Uaj2F6MKeq9yB7d5f2V-h2lh7c,3750
@@ -22,7 +22,7 @@ commonmeta/readers/csl_reader.py,sha256=ynqJeqK9TlHFsmgMREPmKGlcj6tVycpnqDN0N0Lj
22
22
  commonmeta/readers/datacite_reader.py,sha256=CdOtxhthrakBoQMsLTdPx6sUCmqtEWo5ICYE6ZsWDdo,12026
23
23
  commonmeta/readers/datacite_xml_reader.py,sha256=nhnO92fZihr1HZlbXjyem-HJXc9_DWLgJ2zeltuPMIg,13041
24
24
  commonmeta/readers/inveniordm_reader.py,sha256=uS92St68UkO4Adh3PsCu9ox81aO0kek3Y0vneBSDkts,7584
25
- commonmeta/readers/json_feed_reader.py,sha256=x29DpOXaHqtYTTow7fnx3TVBcI_585VA3OMucqlKu94,13443
25
+ commonmeta/readers/json_feed_reader.py,sha256=yMwLDBe0SUJT0hHSEIHTPLXVpstYqZ_m8E8oKEZJf0A,13596
26
26
  commonmeta/readers/kbase_reader.py,sha256=ehKXQsJyPCtaq2FmBxNb2Jb5Nktpx8pNscpmEM6N0A4,6763
27
27
  commonmeta/readers/ris_reader.py,sha256=v6qOd-i2OcMTEFy5RGd3MlYthJcYSU6yzmZ5yHDzmII,3677
28
28
  commonmeta/readers/schema_org_reader.py,sha256=78vYWCZqrYevZsSbx7oVVLm3mlNzi323WNW5E_PL9o0,17234
@@ -70,8 +70,8 @@ commonmeta/writers/datacite_writer.py,sha256=UpDp4Brg5xrmS5T3QYoNi6PPXKdRxAo254e
70
70
  commonmeta/writers/inveniordm_writer.py,sha256=yWDMYorsJJ4vFNHOmjU8d1_uAfqMwkBxzeV7jtBoC1Q,11515
71
71
  commonmeta/writers/ris_writer.py,sha256=AcnCszS3WY9lF594NbFBtLylsA8ownnYp_XLQJ84Ios,2093
72
72
  commonmeta/writers/schema_org_writer.py,sha256=5j002uCNLdlScZMNQmPjodcVWqaBh2z38zL1H4lo2hY,5741
73
- commonmeta_py-0.85.dist-info/METADATA,sha256=OUA6nGuCDxScVcQwWYlqP5fo4wc7Z26HgdUMjps-xDk,7429
74
- commonmeta_py-0.85.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
- commonmeta_py-0.85.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
76
- commonmeta_py-0.85.dist-info/licenses/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
77
- commonmeta_py-0.85.dist-info/RECORD,,
73
+ commonmeta_py-0.87.dist-info/METADATA,sha256=aBKlcvfgtgTUgW5-Z7QbncVPnyMkCkeuH0-SEBLhoxI,7429
74
+ commonmeta_py-0.87.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
+ commonmeta_py-0.87.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
76
+ commonmeta_py-0.87.dist-info/licenses/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
77
+ commonmeta_py-0.87.dist-info/RECORD,,