Skip to content

Commit 0603752

Browse files
committed
Merge branch '0.3.6' into 'main'
merge 0.3.6 See merge request osti/elink2/elink2python!5
2 parents ebaee15 + 377dc17 commit 0603752

5 files changed

Lines changed: 15 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@
2929
- fix bug in POST media uploads for files not opening properly
3030
- added Query support for pagination in response to API query_records endpoint
3131
- add documentation README for new Query pagination
32-
- fix various test cases
32+
- fix various test cases
33+
34+
## 0.3.6 - 09/27/2024
35+
- change date field names: date_metadata_added, date_metadata_updated for consistency
36+
- update requirements to include requests-toolbelt properly, and indicate python >=3.9 versioning
37+
- remove deprecated/legacy product types from Record definition
38+
- modified Person requirements to reflect only type and last_name requirements

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "elinkapi"
7-
version = "0.3.5"
7+
version = "0.3.7"
88
authors = [
99
{ name="Jacob Samar", email="samarj@osti.gov" },
1010
{ name="Neal Ensor", email="ensorn@osti.gov" }
1111
]
1212
description = "OSTI E-Link 2 API package"
1313
readme = "README.md"
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.9"
1515
classifiers = [
1616
"Programming Language :: Python :: 3",
1717
"License :: OSI Approved :: BSD License",
@@ -20,7 +20,8 @@ classifiers = [
2020
dependencies = [
2121
"requests",
2222
"pydantic",
23-
"urllib3"
23+
"urllib3",
24+
"requests_toolbelt"
2425
]
2526

2627
[project.optional-dependencies]

src/elinkapi/organization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Contribution(Enum):
3232
RightsHolder="RightsHolder"
3333
Sponsor="Sponsor"
3434
Supervisor="Supervisor"
35-
WorkfPackageLeader="WorkPackageLeader"
35+
WorkPackageLeader="WorkPackageLeader"
3636
Other="Other"
3737

3838
type:str

src/elinkapi/person.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Contribution(Enum):
2929
Researcher="Researcher"
3030
RightsHolder="RightsHolder"
3131
Supervisor="Supervisor"
32-
WorkfPackageLeader="WorkPackageLeader"
32+
WorkPackageLeader="WorkPackageLeader"
3333
Other="Other"
3434

3535
type: str

src/elinkapi/record.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,7 @@ class ProductType(Enum):
8383
SoftwareManual="SM"
8484
ThesisDissertation="TD"
8585
TechnicalReport="TR"
86-
DataCollection="DC"
87-
DataProject="DP"
88-
EngineeringDrawing="ED"
89-
LegalDocument="LD"
90-
NewsStory="NS"
9186
PatentApplication="PA"
92-
SerialPublication="SP"
9387

9488
class Record(BaseModel):
9589
model_config = ConfigDict(validate_assignment=True)
@@ -234,8 +228,8 @@ class RecordResponse(Record):
234228
added_by: int = None
235229
edited_by: int = None
236230
collection_type: str = None
237-
date_added: datetime.datetime = None
238-
date_updated: datetime.datetime = None
231+
date_metadata_added: datetime.datetime = None
232+
date_metadata_updated: datetime.datetime = None
239233
date_submitted_to_osti_first: datetime.datetime = None
240234
date_submitted_to_osti_last: datetime.datetime = None
241235
hidden_flag: str = None

0 commit comments

Comments
 (0)