commonmeta-py 0.122__py3-none-any.whl → 0.123__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.122"
13
+ __version__ = "0.123"
14
14
  __author__ = "Martin Fenner"
15
15
  __license__ = "MIT"
16
16
 
@@ -19,7 +19,7 @@ from ..constants import (
19
19
  Commonmeta,
20
20
  )
21
21
  from ..date_utils import get_iso8601_date
22
- from ..doi_utils import doi_from_url, normalize_doi
22
+ from ..doi_utils import doi_as_url, doi_from_url, normalize_doi
23
23
  from ..utils import (
24
24
  FOS_MAPPINGS,
25
25
  get_language,
@@ -589,7 +589,6 @@ def update_draft_record(record, host, token, inveniordm_data):
589
589
  )
590
590
  response.raise_for_status()
591
591
  data = response.json()
592
- record["created"] = data.get("created", None)
593
592
  record["updated"] = data.get("updated", None)
594
593
  record["status"] = "updated"
595
594
  return record
@@ -622,6 +621,7 @@ def publish_draft_record(record, host, token):
622
621
  return record
623
622
  data = response.json()
624
623
  record["uuid"] = py_.get(data, "metadata.identifiers.0.identifier")
624
+ record["doi"] = doi_as_url(py_.get(data, "pids.doi.identifier")),
625
625
  record["created"] = data.get("created", None)
626
626
  record["updated"] = data.get("updated", None)
627
627
  record["status"] = "published"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commonmeta-py
3
- Version: 0.122
3
+ Version: 0.123
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=fyxBqzJ7zieudPfK0XMHzZNoQxSdDQOzAMj5O5rPVqU,2098
1
+ commonmeta/__init__.py,sha256=X_mzqU-r9CtyULs66FmHskXoSh9s5lyZVR2mmzTOoV0,2098
2
2
  commonmeta/api_utils.py,sha256=y5KLfIOWOjde7LXZ36u-eneQJ-Q53yXUZg3hWpCBS2E,2685
3
3
  commonmeta/author_utils.py,sha256=3lYW5s1rOUWNTKs1FP6XLfEUY3yCLOe_3L_VdJTDMp0,8585
4
4
  commonmeta/base_utils.py,sha256=-MGy9q2uTiJEkPWQUYOJMdq-3tRpNnvBwlLjvllQ5g8,11164
@@ -80,11 +80,11 @@ commonmeta/writers/commonmeta_writer.py,sha256=QpfyhG__7o_XpsOTCPWxGymO7YKwZi2LQ
80
80
  commonmeta/writers/crossref_xml_writer.py,sha256=cGrX9vacNwDdK7TbH1RWig68SH8hg5VusuqkI9gU1DY,33931
81
81
  commonmeta/writers/csl_writer.py,sha256=4gDYs1EzK4_L2UIRTfs25wgHmYRwdRP2zmfxF9387oU,2779
82
82
  commonmeta/writers/datacite_writer.py,sha256=bcinpwhq7XnVthKHH8-sdXA34dSlvFH4ImYH768iaQU,6428
83
- commonmeta/writers/inveniordm_writer.py,sha256=eLllddYulFqg8qfRIScpYpnAJ82NCHXotCFJb09mHX8,25739
83
+ commonmeta/writers/inveniordm_writer.py,sha256=Bm0gSNndX-jbGwd0O162Bq_C97QNegRZbTdP_tXxzVc,25772
84
84
  commonmeta/writers/ris_writer.py,sha256=3SdyEvMRaPRP1SV1MB-MXBlunE7x6og7RF1zuWtetPc,2094
85
85
  commonmeta/writers/schema_org_writer.py,sha256=s18_x0ReXwAGBoEAwp2q-HCgFQ-h5qRg6JyAlqCoSFE,5871
86
- commonmeta_py-0.122.dist-info/METADATA,sha256=b_2hi3K4fN7myJ6K0EzSivSHHrTP22iEpFLeFEPGe4Y,7656
87
- commonmeta_py-0.122.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
88
- commonmeta_py-0.122.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
89
- commonmeta_py-0.122.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
90
- commonmeta_py-0.122.dist-info/RECORD,,
86
+ commonmeta_py-0.123.dist-info/METADATA,sha256=-lwvx310XyyLy8ZHJfrkraQmCdbf7kao6vsnwyX57e4,7656
87
+ commonmeta_py-0.123.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
88
+ commonmeta_py-0.123.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
89
+ commonmeta_py-0.123.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
90
+ commonmeta_py-0.123.dist-info/RECORD,,